Yoko

All sides of Injection
It is currently 2025-12-28 19:13:27

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2005-08-27 20:55:01 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
Вот есть такой скрипт на автохил бинтами
Code:
sub Heal() 
   While UO.Life > UO.Dead()
      If UO.Life < UO.GetMaxHp()  Then
         UO.Bandageself()
         wait(4500)
      Else
         wait(50)
      Endif
   Wend
endsub

Очень нужно, чтобы задержка (wait(4500)) была не фиксирована!! Тоесть хиляюсь я бинтом и как только бинт наложило, а жизни еще не полные , сразу наматывало следующий бинт!!! Я играю на АоС (shard "Nightday")


Top
   
 Post subject:
PostPosted: 2005-08-27 21:06:45 
Offline
Expert!
User avatar

Joined: 2005-01-15 19:15:05
Posts: 791
Location: Dragon World
Code:
sub Heal() 
   While UO.Life > UO.Dead()
      If UO.Life < UO.GetMaxHp()  Then
         UO.Bandageself()
         Repeat
            UO.DeleteJournal()
                 wait(100)
         Until UO.InJournal("You sucessfully") OR UO.InJournal("You bandage")       
      Else
         wait(50)
      Endif
   Wend
endsub


Сообщения поставь свои, при физле и при успешном приминении бинта.


Top
   
 Post subject:
PostPosted: 2005-08-27 21:20:11 
Offline
Expert!
User avatar

Joined: 2004-08-11 23:56:17
Posts: 746
Location: The Citadel
Лучше так:

Code:
sub Heal() 
   While UO.Life > UO.Dead()
      If UO.Life < UO.GetMaxHp()  Then
         UO.DeleteJournal()
         UO.Bandageself()
         Repeat             
                 wait(100)
         Until UO.InJournal("You sucessfully") OR UO.InJournal("You bandage")       
      Else
         wait(50)
      Endif
   Wend
endsub


Top
   
 Post subject:
PostPosted: 2005-08-27 22:41:46 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
Огромное спасибо!! Были некоторые нюансы, но из-за моей не очень хорошей внимательности!!Еще раз спасибо вы мне очень помогли.


Top
   
 Post subject:
PostPosted: 2005-08-28 00:04:32 
Offline

Joined: 2005-08-19 16:12:23
Posts: 182
Между прочим!! Если этот топик будут читать ламеры типа меня!! То знайте , что кроме хильнулся и не хильнулся, НУЖНО ЕЩЕ ДОБАВЛЯТЬ такие как вылечил себя от яда , снял кровотечение, цель уже и так здороваи т.п. На каждом шарде свое , иначе скрипт может перестать работать в совсем неподходящий момент!!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited