Yoko

All sides of Injection
It is currently 2025-12-24 21:19:10

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2005-03-12 00:35:25 
Offline

Joined: 2004-06-30 22:21:58
Posts: 28
Code:
sub launch()
      uo.deletejournal()
      stopbattle2()
      stopbattle1()
end sub

sub stopwar()
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
end sub

sub stopbattle1()
   while not uo.injournal('ALL STOP')
      wait(100)
   wend
   stopwar()
   heal()
   waitingforbattlethenstart()
end sub

sub stopbattle2()
      repeat
      if uo.life<60 then
         uo.msg('ALL STOP')
         wait(1000)
      endif
      until uo.injournal('ALL STOP')
end sub

sub heal()
   repeat
      UO.SetArm('CWeapon')
      UO.Exec("bandageself")
      wait(500)
      UO.Arm('CWeapon')
      wait(4000)
   until uo.life==uo.str
end sub

sub waitingforbattlethenstart()
   while not uo.injournal('FIRST CHAR OK')
      wait(100)
   wend
   while uo.life<uo.str
      wait(100)
   wend
   uo.msg('SECOND CHAR OK')
   uo.deletejournal()
   uo.msg('LETS THE FIGHT BEGIN')
   uo.warmode(1)
   UO.Attack('lastattack')
   launch()
end sub


вот скрипт но помойму он не законченный просто когда чары останавливаються чтоб похиляться то потом скрипт не стартует заного
почему понять не могу

Смысал скрипта таков запускаешь его и по достижению 60 или 70 хитов атака прекращаеться и чары начинают лечиться как вылечелись продолжают бой помогите плиз


Top
   
PostPosted: 2005-03-12 19:42:08 
Offline

Joined: 2004-09-08 13:09:13
Posts: 127
Stranger[BV] wrote:
Code:
sub launch()
      uo.deletejournal()
      stopbattle2()
      stopbattle1()
end sub

sub stopwar()
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
end sub

sub stopbattle1()
   while not uo.injournal('ALL STOP')
      wait(100)
   wend
   stopwar()
   heal()
   waitingforbattlethenstart()
end sub

sub stopbattle2()
      repeat
      if uo.life<60 then
         uo.msg('ALL STOP')
         wait(1000)
      endif
      until uo.injournal('ALL STOP')
end sub

sub heal()
   repeat
      UO.SetArm('CWeapon')
      UO.Exec("bandageself")
      wait(500)
      UO.Arm('CWeapon')
      wait(4000)
   until uo.life==uo.str
end sub

sub waitingforbattlethenstart()
   while not uo.injournal('FIRST CHAR OK')
      wait(100)
   wend
   while uo.life<uo.str
      wait(100)
   wend
   uo.msg('SECOND CHAR OK')
   uo.deletejournal()
   uo.msg('LETS THE FIGHT BEGIN')
   uo.warmode(1)
   UO.Attack('lastattack')
   launch()
end sub


вот скрипт но помойму он не законченный просто когда чары останавливаються чтоб похиляться то потом скрипт не стартует заного
почему понять не могу

Смысал скрипта таков запускаешь его и по достижению 60 или 70 хитов атака прекращаеться и чары начинают лечиться как вылечелись продолжают бой помогите плиз


Code:
##Попробуй так .. нетестил!

sub launch()
      uo.deletejournal()
      stopbattle2()
      stopbattle1()
end sub

sub stopwar()
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
   uo.warmode(0)
   wait(200)
end sub

sub stopbattle1()
   while not uo.injournal('ALL STOP')
      wait(100)
   wend
   stopwar()
   heal()
   waitingforbattlethenstart()
end sub

sub stopbattle2()
      repeat
      if uo.life<60 then
         uo.msg('ALL STOP')
         wait(1000)
      endif
      until uo.injournal('ALL STOP')
end sub

sub heal()
   repeat
      UO.SetArm('CWeapon')
      UO.Exec("bandageself")
      wait(500)
      UO.Arm('CWeapon')
      wait(4000)
   until uo.life==uo.str
waitingforbattlethenstart()
end sub

sub waitingforbattlethenstart()
   while not uo.injournal('FIRST CHAR OK')
      wait(100)
   wend
   while uo.life<uo.str
      wait(100)
   wend
   uo.msg('SECOND CHAR OK')
   uo.deletejournal()
   uo.msg('LETS THE FIGHT BEGIN')
   uo.warmode(1)
   UO.Attack('lastattack')
   launch()
end sub


Top
   
 Post subject:
PostPosted: 2005-03-13 00:55:37 
Offline

Joined: 2004-06-30 22:21:58
Posts: 28
слетает после 3-го запуска скрипта (автоматического)
чары перестают говорить all stop & lets fight begin


Top
   
 Post subject:
PostPosted: 2005-03-13 23:21:20 
Offline

Joined: 2004-06-30 22:21:58
Posts: 28
Ветер а ты что скажешь ?
или ты в этом топике редкий гость


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] 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