Yoko

All sides of Injection
It is currently 2025-10-22 22:12:01

All times are UTC+02:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Healing
PostPosted: 2009-04-24 22:50:08 
Offline

Joined: 2008-03-20 18:09:07
Posts: 10
Вот быстренько накатал скрипт, не могу понять почему WarMode постоянно спадает и он начинает бить лошадь %(

Пробывал прописать, чтобы была проверка, но тогда тоже не работает.

Code:
sub Healing()
While not UO.Dead()
   UO.WarMode(0)
   Wait(100)
   If UO.Life < 149 Then
      UO.Say('.bs')
         UO.DeleteJournal()
           While not (UO.InJournal('successfully') or UO.InJournal('barely help') or UO.InJournal('wanna make'))
              Wait(100)
           Wend
   Endif
   Wait(100)
Wend
End Sub


И так пробывал

Code:
sub Healing()
While not UO.Dead()
   If UO.WarMode(1) Then
      UO.WarMode(0)
      Wait(100)
   Endif
   If UO.Life < 149 Then
      UO.Say('.bs')
      UO.DeleteJournal()
           While not (UO.InJournal('successfully') or UO.InJournal('barely help') or UO.InJournal('wanna make'))
              Wait(100)
           Wend
   Endif
   Wait(100)
Wend
End Sub


Помогите разобраться %(


Top
   
 Post subject:
PostPosted: 2009-04-24 23:01:47 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Code:
if uo.warmode() == 1 then
    uo.warmode( 0 )
endif


Непонятно, что вам нужно.

_________________
YokoInjection CodeSweeper
Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Skype: d119060


Top
   
 Post subject:
PostPosted: 2009-04-24 23:06:59 
Offline

Joined: 2008-03-20 18:09:07
Posts: 10
Ну, мне нужно, чтобы лошадь била игрока, а он не отвечал, тупо стоял и лечился. Но он сначала не отвечает, а патом когда полечиться начинает бить лошадь.

Вбил как ты написал, все равно бьет лошадь %(


Top
   
 Post subject:
PostPosted: 2009-04-25 00:15:43 
Offline
User avatar

Joined: 2009-03-21 10:03:06
Posts: 165
Location: Одесса-Мама
Destruction, на сколько я понял, то одно = - это присвоение, а два == - это сравнение ?

Никогда с подобным не сталкивался.

_________________
Спасибо всем, у кого учился!

Меня трудно найти, легко потерять, и невозможно забыть. Я - рабочий исходник!


Top
   
 Post subject:
PostPosted: 2009-04-25 00:42:28 
Offline
User avatar

Joined: 2006-11-06 21:45:23
Posts: 137
А если в руки взять лук или арбалет?


Top
   
 Post subject:
PostPosted: 2009-04-25 01:14:48 
Offline

Joined: 2008-03-20 18:09:07
Posts: 10
Всем спасибо. Разобрался .)


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

All times are UTC+02:00


Who is online

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