Yoko

All sides of Injection
It is currently 2025-12-24 00:24:41

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2005-06-30 19:35:10 
Offline

Joined: 2005-06-30 18:02:31
Posts: 1
Code:
sub Archery()
while true
If UO.Mana >= UO.Int then
UO.usetype('luk')
UO.exec("waittargetself")
UO.Exec("attack 0x00464D0C") #ID 2 4ara
Repeat
wait (500)
Until (UO.GetHP("0x00464D0C") < 40) #ID 2 4ara / 130-HP
UO.Exec("warmode 0")
UO.DeleteJournal()
Repeat
UO.Usetype("0x0E21") #Bandages
UO.Exec("waittargetobject 0x00464D0C") #ID 2 4ara
wait(3500)
Until (UO.InJournal("not need"))
Endif

If UO.Mana < UO.Int Then
While UO.Mana < UO.Int
UO.DeleteJournal()
Meditation()
Repeat
wait(100)
until UO.InJournal("You are") OR UO.InJournal("You lose")
Wend
Endif

wend
end sub

sub Meditation()
UO.Exec("useskill 'Meditation'")
wait(100)
end sub


Вроде неплохо работает, но тут одна проблемка - надо часто лечить иначе возникает ситуаця, когда жизней определенное колличество не потрачено и маны на стрельбу нету и чар ждет, когда мана выростет сама собой. Подскажите как это обойти.
Удалил подобный топик из ХЕЛПА. KrafteR
[Даже несмотрел спать хочу но вспомнил Теги I'm]


Top
   
 Post subject:
PostPosted: 2005-07-01 07:50:50 
Offline
User avatar

Joined: 2005-02-25 13:31:26
Posts: 62
Location: DRW, [Hussars]
Code:
sub Archery()
   var Min_mana=20 # нижний предел маны
   UO.usetype('luk')
   UO.exec("waittargetself")
   UO.Exec("attack 0x00464D0C") #ID 2 4ara
   while not uo.dead()
      If (UO.GetHP("0x00464D0C") < 40) then
         UO.Exec("warmode 0")
         UO.DeleteJournal()
         Repeat
            UO.Exec("warmode 0")
            UO.Usetype("0x0E21") #Bandages
            UO.Exec("waittargetobject 0x00464D0C") #ID 2 4ara
            CheckLag()
            wait(3500)
         Until (UO.InJournal("not need"))
         UO.usetype('luk')
         UO.exec("waittargetself")
         UO.Exec("attack 0x00464D0C") #ID 2 4ara
      Endif
      If UO.Mana < Min_mana Then
         repeat
            UO.DeleteJournal()
            CheckLag()
            UO.Exec("warmode 0")
            UO.Exec("useskill 'Meditation'")
            Repeat
               wait(100)
            until UO.InJournal("You are") OR UO.InJournal("You lose")
         until uo.injournal("You are") or uo.mana>=uo.int
         UO.Exec("attack 0x00464D0C") #ID 2 4ara
      Endif
      CheckLag()
   wend
end sub

Sub CheckLag()
   UO.DeleteJournal()
   UO.Click('backpack')
   repeat
      wait(50)
   until UO.InJournal('backpack')
end sub


Тести и докладовывай о результатах. :wink: :)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 13 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