Yoko

All sides of Injection
It is currently 2026-01-18 16:49:19

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2005-03-29 01:09:38 
Offline
User avatar

Joined: 2004-09-05 04:23:32
Posts: 10
Народ можете сказать как сделать следующий скрипт таким образом чтоб когда кидают Poison чар сразу кидал Cure

Code:
Sub test()
VAR ManaNeed=9
   VAR ScrollManaNeed=4
   UO.Set('self')
   If UO.InJournal("You have been poisoned!") then
      UO.FindType('0x1F40',-1,'my')
      If UO.GetQuantity('finditem')>0 Then
         If UO.Mana>=ScrollManaNeed Then
            UO.WaitTargetObject('self')
            UO.UseObject('finditem')
            UO.Print("Scroll")
         Else
            UO.Print("Low mana!!! Scroll!")
         Endif
      Else
         If UO.Mana>=ManaNeed Then
            UO.Cast('Cure','self')
      Endif
End sub


только чтоб не самому на кнопку тыкать а чтоб он постоянно включенный был :roll:
Заранее благодарен


Top
   
PostPosted: 2005-03-29 07:31:54 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Phoenix wrote:
Code:
Sub test()
VAR ManaNeed=9
VAR ScrollManaNeed=4
while not UO.Dead()
   If UO.Poisoned() then
      UO.FindType('0x1F40','0x0000','my')
      If UO.FindCount()>0 Then
         If UO.Mana>=ScrollManaNeed Then
            UO.WaitTargetObject('self')
            UO.UseObject('finditem')
            UO.Print("Scroll")
         Else
            UO.Print("Low mana!!! Scroll!")
         Endif
      Else
         If UO.Mana>=ManaNeed Then
            UO.Cast('Cure','self')
      Endif
   end if
   wait(1000)
wend
End sub
будет проверять твоё состояние каждую секунду


Top
   
 Post subject:
PostPosted: 2005-03-29 17:24:45 
Offline
User avatar

Joined: 2004-09-05 04:23:32
Posts: 10
Спасибо все вроде ок ну все равно когда тебя пропойсонили надо на кнопку нажимать я имл в виду
Выбераешь скрипт и делаешь рун он у тебя запущеным стоит. Если в тебя кинули Poison то он сразу Cure и потом ставиться по новому.
Это надо както чтоб он проверял Journal


Top
   
 Post subject:
PostPosted: 2005-03-30 07:45:35 
Offline
Expert!
User avatar

Joined: 2004-07-04 00:14:58
Posts: 1284
Phoenix wrote:
Выбераешь скрипт и делаешь рун он у тебя запущеным стоит. Если в тебя кинули Poison то он сразу Cure и потом ставиться по новому.
Это надо както чтоб он проверял Journal
именно так и есть, а журнал не обязателен ;)
тестил?


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: No registered users and 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited