Перейти к содержанию
Форум шарда Middle-Earth
Авторизация  
MeSSiR

Alchemy [Injection]

Рекомендуемые сообщения

Прокачка алхимии с 33х до 120

 

# Create by MeSSiR
##################### MIDDLE-EARTH.RU ##########################
# Скрипт для прокачки скилла Alchemy. Варит необходимое зелье  
# из книги рецептов. Варит по одному зелью.                    
# Для работы скрипта необходимо:                               
# - Пустые бутылки                                             
# - Ступка (a mortart)                                         
# - Книга рецептов.                                            
# - Необходимые для этого рецепта реагенты                     
# Желательно:                                                  
# - Еда                                                        
# - Бинты                                                      
# - Одеться так чтоб было 120+ жизней.                         
################################################################
# Для работы скрипта необходимо указать ниже код необходимого  
# зелья.                                                       
###################### Настройка переменных ####################

var food='0x097B'    # Тип еды, которую будем кушать в процессе.
                    # '0x097B' - жаренная рыба
                    # '0x09F2' - жаренное мясо
                    # '0x171F' - бананы
                    
var code= 26        # Код зелья, которое собираетесь варить.
                    # 1 - Lesser Heal Potion
                    # 2 - Heal Potion
                    # 3 - Greater Heal Potion
                    # 4 - Lesser Poison Potion
                    # 5 - Poison Potion
                    # 6 - Greater Poison Potion
                    # 7 - Deadly Poison Potion
                    # 8 - Lesser Explosion Potion
                    # 9 - Explosion Potion
                    # 10 - Greater Explosion Potion
                    # 11 - Lesser Agility Potion
                    # 12 - Agility Potion
                    # 13 - Greater Agility Potion
                    # 14 - Refresh Potion
                    # 15 - Full Refresh Potion
                    # 16 - Lesser Strength Potion
                    # 17 - Strength Potion
                    # 18 - Greater Strength Potion
                    # 19 - Nightvision Potion
                    # 20 - Lesser Cure Potion
                    # 21 - Cure Potion
                    # 22 - Greater Cure Potion
                    # 23 - Lesser Mana Potion
                    # 24 - Mana Potion
                    # 25 - Greater Mana Potion
                    # 26 - Lesser Invisibility Potion
                    # 27 - Invisibility Potion
                    # 28 - Greater Invisibility Potion
                    # 29 - Lesser Intelligence Potion
                    # 30 - Intelligence Potion
                    # 31 - Greater Intelligence Potion

sub Alchemy()
var time=0
uo.set('norbcheck',1)
uo.set('norbcalc',1)
uo.msg(".pray")

if uo.str < 120 then
    uo.print("У Вас менее 120 хп! Для варки сложных зелий желательно иметь 120+ хп")
endif

while uo.count(0x0F0E) > 0
    uo.deletejournal()
    uo.findtype(0x0FBD)
    if uo.findcount() then
        uo.recall('finditem',code)
        CheckLag()
        uo.say("1")
        repeat
            wait(1000)
            time=time+1
        until uo.injournal("You don't have bottles|You don't have a mortar|You don't have enough reagents|You pour out the useless mixture|You create the potion and put it in your backpack|Cancelled|That mixture sends off a choking gas") OR uo.Life < uo.Str or time>30
        time=0
    else
        uo.print("Не нахожу книгу рецептов!")
        wait(3000)
    endif
    text()
    recharge()
    eda()
wend

end sub

Sub text()
if uo.injournal("You don't have bottles") then
    uo.print("Нехватает бутылок")
    uo.msg("не могу варить")
endif
if uo.injournal("You don't have a mortar") then
    uo.print("Нехватает ступки (mortar)")
    uo.msg("не могу варить")
endif
if uo.injournal("You don't have enough reagents") then
    uo.print("Нехватает регов")
    uo.msg("не могу варить")
endif
if uo.injournal("You don't have enough reagents") then
    uo.print("Нехватает регов")
    uo.msg("не могу варить")
endif
end sub


Sub recharge()
while uo.str > uo.life
uo.msg('.v')
uo.findtype(0x0E21)
if uo.findcount() then
    uo.msg(".bandage self")
else
    uo.print("Нет Бинтов.")
endif
wait(1000)
wend
end sub

Sub eda()
uo.findtype(food)
if uo.findcount() then
    uo.usetype(food)
else
    uo.print("Нет еды!")
endif
wait(100)
end sub

Sub CheckLag() 
UO.Click('backpack') 
repeat 
wait(500) 
until UO.InJournal('ackpack') 
uo.deletejournal()
end sub

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

Загрузка...
Авторизация  

×
×
  • Создать...