Перейти к содержанию
Форум шарда Middle-Earth

Поиск сообщества

Показаны результаты для тегов '8.12.x'.

  • Поиск по тегам

    Введите теги через запятую.
  • Поиск по автору

Тип контента


Форумы

  • Административный
    • Важная информация + новости
    • Middle-Earth Development
    • Предложения и пожелания
  • Игровой
    • Основной форум
    • FAQ
    • Болталка
    • Рынок
    • Турнирный раздел
    • РПГ и квесты
  • Скрипты для вспомогательных програм
    • Общий
    • Injection
    • Stealth
    • Orion
  • Проблемы и наказания
    • Технические вопросы
    • Баны, jail и наказания
    • Жалобы на стафф

Поиск результатов в...

Поиск результатов, которые содержат...


Дата создания

  • Начало

    Конец


Дата обновления

  • Начало

    Конец


Фильтр по количеству...

Регистрация

  • Начало

    Конец


Группа


AIM


MSN


Сайт


ICQ


Yahoo


Jabber


Skype


Город


Интересы

Найдено: 2 результата

  1. stealth version 8.12.7 Копка песка и глины Как запустить: читать тут Что делает: копает песок копает глину\торф жрёт фиш стейки (можно поменять) реконектит Инструкция по применению: одеваем чара и даём в лапы ствол, так как есть шанс выкопать элементаля или слизня отводим на место копки кидаем в пак лопату (Shovel) кидаем в пак еду FOOD = 0x097B # Type еды, сейчас фишстейки запускаем скрипт from datetime import datetime, timedelta from time import sleep from py_stealth import * ############################## info ################################ # # Скрипт для копки песка или глины\торфа # Устанавливаем радиус поиска тайлов - RADIUS # Ставим чара на место добычи # * еду в пак - FOOD # * в бекпак кидаем лопату - Shovel # Одеваем чара и даём в руки какой нибудь ствол, # так как есть шанс выкопать элементаля или слизняка # ################################################################### ############################ settings ############################## # RADIUS = 4 # FOOD = 0x097B # тип еды, сейчас фишь-стейки \ type food, now fish steaks # ################################################################### def msg(args): print(args) ClientPrintEx(0, 60, 2, args) def CheckConnect(waitTimeReconnected=5): """ waitTimeReconnected: wait reconnected time, int >= 1 """ if int(waitTimeReconnected) <= 0: waitTimeReconnected = 5 waitTimeReconnected *= 1000 if GetARStatus(): SetARStatus(False) if Connected() and not Hidden() and not CheckLag(): Disconnect() Wait(5000) if not Connected(): print('# Not connected to server!') print('# Reconnected...') while not Connected(): Connect() Wait(3000) if Connected() and Hidden(): UOSay(" ") if Connected() and not CheckLag(5000): Disconnect() Wait(waitTimeReconnected) Wait(5000) print('# Server connection restored.') def WaitTarget(sec=5): for i in range(sec): if not Connected() or Dead() or TargetPresent(): break Wait(1000) if not Connected() or Dead() or not TargetPresent(): return False return True def evSpeech(_text, _senderName, _senderID): # Check Save World if _senderID == 16843009 and _text == 'Saving World State': eventTime = datetime.now() msg(f"{_senderName}: {_text}") for i in range(15): if InJournalBetweenTimes('Saving World State complete.', eventTime, datetime.now()) != 1: break sleep(1) class Hungry: def __init__(self, food=0x097B, timer=10): """ Ищем еду в бекпаке, если не нашли, ищем в банке, потом на полу (при поиске в банке, бонк должен быть предварительно открыт) food: сейчас фишстейки или указать тип еды timer: через сколько докармливать чара """ self._food = food self._nextTime = datetime.now() self._timer = timer def __call__(self): if datetime.now() >= self._nextTime: place = [Backpack(), ObjAtLayer(BankLayer()), Ground()] ct = datetime.now() f = False while InJournalBetweenTimes("Я объелся|You are full", ct, datetime.now()) == -1: if Connected() and not Dead(): for i in place: if f := FindType(self._food, i): if TargetPresent(): CancelTarget() ct = datetime.now() UseObject(f) Wait(300) break if not f: msg("Attention!: Food not found!") break else: return self._nextTime = datetime.now() + timedelta(minutes=self._timer) class Processed: def __init__(self, _range=4): self._range = _range self._sand = [22, 23, 24, 25, 26, 27, 28, 35, 39, 52, 53, 54, 56, 57, 58, 59, 60, 61, 88, 92, 95, 96, 100] self._peat = [15810, 15811, 15825, 15832, 15835, 15836, 15837, 15838, 15839, 15840, 15841, 15842, 15843, 15844, 15845, 15846, 15848, 15849, 15850, 15851, 15852, 15853, 15854, 15855, 15856] self._arrWorkTile = [] # dict {'x': x, 'y': y, 'z': z} self._shovel = None self._lastIndex = None def __call__(self): CheckConnect() if not Hidden() and not CheckLag(): Disconnect() Wait(5000) if Connected(): if Dead(): msg('Character is dead!') return False if LastContainer() != Backpack(): for i in range(5): UseObject(Backpack()) if LastContainer() == Backpack(): break Wait(1000) if LastContainer() != Backpack(): msg("I can't open my backpack") return False if not self.__CheckShovel(): msg('Not found tool (SHovel)!') return False if not len(self._arrWorkTile): if not self.__GetTile(): print(f'Not found tiles!') return False msg(f'Found {len(self._arrWorkTile)} tiles.') if not WarMode(): SetWarMode(True) return True def __CheckShovel(self): if f := FindType(0x0F39, Backpack()): self._shovel = f return True return False def __GetTile(self): _allTypeTile = self._sand + self._peat for x in range(GetX(Self()) - self._range, GetX(Self()) + self._range + 1): for y in range(GetY(Self()) - self._range, GetY(Self()) + self._range + 1): if cell := GetCell(x, y, WorldNum()): try: if _allTypeTile.index(cell['Tile']): cell['x'] = x cell['y'] = y self._arrWorkTile.append({'x': cell['x'], 'y': cell['y'], 'z': cell['Z'], 't': cell['Tile']}) pass except ValueError: pass if len(self._arrWorkTile): return True return False def Mining(self): if Connected() and not Dead(): ct = datetime.now() if not TargetPresent(): UseObject(self._shovel) if WaitTarget(): if self._lastIndex is None: self._lastIndex = 0 _i = self._lastIndex x, y, z = self._arrWorkTile[_i]['x'], self._arrWorkTile[_i]['y'], self._arrWorkTile[_i]['z'] if not newMoveXY(x, y, False, 2, True): self._arrWorkTile.pop(_i) return TargetToXYZ(x, y, z) for i in range(15): Wait(2000) UseObject(self._shovel) if not Connected() or Dead() or TargetPresent(): break if InJournalBetweenTimes('There is nothing to dig here|' 'You fail to|' 'There is no brimstone', ct, datetime.now()) != -1: if FoundedParamID() == 0: msg(f'DELETE type "{self._arrWorkTile[_i]["t"]} in script! 118 or 120 line!"') if self._lastIndex >= len(self._arrWorkTile) - 1: self._lastIndex = 0 else: self._lastIndex += 1 if __name__ == '__main__': SetMoveCheckStamina(0) SetMoveThroughNPC(0) SetEventProc('evSpeech', evSpeech) _p = Processed(RADIUS) _hungry = Hungry(FOOD) while _p(): _p.Mining() _hungry() msg("End script") Disconnect() Mining_SAND_or_PEAT.py
  2. nepret

    [Stealth] Meditation(свежий)

    stealth version 8.12.7 Прокачка Meditation с dragon шмотками. Новый! Как запустить: читать тут Что делает: снимает-одевает dragon шмот (кнут в том числе) медитирует жрёт фиш стейки (можно поменять) реконектит Инструкция по применению: кидаем в пак еду FOOD = 0x097B # Type еды, сейчас фишстейки одеваем в dragon вещи + кнут(если есть) запускаем скрипт from py_stealth import * from datetime import datetime, timedelta """ Устанавливаем настройки ниже, одеваем чара в драгон, запускаем скрипт """ SKILL = 100 # Предел прокачки скила FOOD = 0x097B # Type еды, сейчас фишстейки DELAY = 150 # Задерка после снятия\одевания вещи (в мс) # include start def msg(Message): print(Message) ClientPrintEx(0, 60, 2, Message) def CheckConnect(WaitTime=15000): if Connected() and Hidden(): for i in range(0, 10): if Hidden(): UOSay(' ') Wait(500) else: break if Connected() and not Hidden() and not CheckLag(WaitTime): Disconnect() Wait(5000) if not Connected(): print('CheckConnect.py : Not connected to server!') print('CheckConnect.py : Reconnected...') while not Connected(): Connect() for i in range(0, 10): if Hidden(): UOSay(' ') Wait(500) else: break CheckLag(5000) if Connected() and not Hidden() and not CheckLag(8000): Disconnect() print('CheckConnect.py : Server connection restored.') return False return True def CheckSave(): Time = datetime.now() - timedelta(0, 30) if InJournalBetweenTimes('Saving World State', Time, datetime.now()) >= 0: Wait(30000) def OpenPack(Container=None): """ :param Container: if "None": Backpack self, or set ID Container :return: if open True, else not False """ if Container is None: Container = Backpack() while LastContainer() != Container: if not Connected() or Dead(): msg("#ERROR: {OpenPack} not connected or you dead") return False CheckSave() UseObject(Container) for i in range(5): if LastContainer() == Container: break Wait(1000) return True class Hungry: def __init__(self, food=0x097B, place=None, timer=10): """ food: сейчас фишстейки или указать тип еды place: место поиска еды timer: через сколько докармливать чара """ if place is None: self._place = Backpack() else: self._place = place self._food = food self._nextTime = datetime.now() self._timer = timer def Hungry(self): if datetime.now() >= self._nextTime: OpenPack() while f := FindType(self._food, self._place): CheckConnect() CheckSave() td = datetime.now() UseObject(f) if WaitJournalLineSystem(td, "Я объелся|You are full, and can't eat nothing more.", 750): self._nextTime = datetime.now() + timedelta(minutes=self._timer) break else: msg("Warning: Food not found!") # include finish class Layer: def __init__(self): self._layer = [1, 5, 23, 4, 19, 10, 6, 7, 13, 3] self.__CheckEquip() @property def Equip(self): return len(self._layer) def __CheckEquip(self): CheckConnect() for i in self._layer.copy(): if f := ObjAtLayer(i): if "Dragon" not in GetTooltip(f): self._layer.remove(i) else: self._layer.remove(i) if len(self._layer): SetDress() else: msg("На чаре нет одежды...") def CheckSkill(): CheckConnect() if GetSkillValue("Meditation") >= SKILL: msg(f"Стоп-отметка! Скилл 'Meditation' прокачен до: {SKILL}") return True return False def Meditation(): while Mana() < MaxMana(): CheckConnect() CheckSave() ct = datetime.now() UseSkill("Meditation") if WaitJournalLineSystem(ct, "You begin to meditate|Вы уже медитируете|You are already meditating", 5000): WaitJournalLineSystem(ct, "You are unable to concentrate.|You stop meditating", 30000) def Main(): while not Dead() and not CheckSkill(): h.Hungry() Meditation() if not Undress(): Disconnect() CheckConnect() CheckSave() EquipDressSet() if __name__ == '__main__': SetARStatus(False) SetPauseScriptOnDisconnectStatus(False) SetDressSpeed(DELAY) SKILL_VALUE = 100 h = Hungry(food=FOOD) l = Layer() if l.Equip: Main() msg("End script.") Disconnect() Meditation.py
×
×
  • Создать...