Yoko

All sides of Injection
It is currently 2025-12-25 08:58:28

All times are UTC+02:00




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Спаринг
PostPosted: 2008-03-02 15:43:14 
Offline

Joined: 2005-08-25 23:35:29
Posts: 96
Вот у меня скрипт он почему то глючит чуть, отходит через определеное время а не когда у одного из чаров 35 хп. Я думаю тут глюк
Quote:
Until (UO.InJournal("Do you wanna"))
как вставить место этих слов until хп ис фулл?
Code:
sub fight() 
while 1
   gotoxy(3422,437,0) # куда подходить чтоб драться
   wait (300)
   UO.Exec("attack 0x000991F7") #2-й чар кого бить
   Repeat
      wait (500)
   if uo.injournal("")then
   UO.usetype("") # оружие
   uo.deletejournal()
   endif
   Until ((UO.GetHP("0x0008E9D0") <35)or (UO.GetHP("0x000991F7")  <35)) #
#проверка хп у первого и вторго чара
   repeat
   UO.Exec("warmode 0") # вармод
   UO.Press(35) # отходим End
   UO.Press(35) # отходим End
   until (gotoxy(3422,439,0)) # куда отходить лечиться 
   Repeat
      UO.Usetype("0x0E21") #Bandages
      UO.Exec("waittargetobject 0x0008E9D0")  # 1-й чар
      wait(3500)
   Until (UO.InJournal("Do you wanna"))
   wait(5000)
wend
end sub


Top
   
 Post subject:
PostPosted: 2008-03-03 20:36:21 
Offline

Joined: 2005-08-25 23:35:29
Posts: 96
а можно как то заменить проверку хп ? вместо ((UO.GetHP


Top
   
 Post subject:
PostPosted: 2008-03-03 20:42:59 
Offline
User avatar

Joined: 2006-09-14 10:38:08
Posts: 39
а чем оно тебя неустраивает?

_________________
все что нас не убивает - делает нас крепче!


Top
   
 Post subject:
PostPosted: 2008-03-04 11:29:10 
Offline

Joined: 2005-08-25 23:35:29
Posts: 96
Ты что читать неумеешь ? Я же обясняю что глючит, отходит рано. Крит проходит и он отходит!


Top
   
 Post subject:
PostPosted: 2008-03-04 14:52:24 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
UO.GetHP получает значение о хп от сервера. по этому довереть ему не стоит...
если оба чара твои так почему бы от ходилку не в клчить на обоих?


Top
   
 Post subject:
PostPosted: 2008-03-04 15:01:20 
Offline

Joined: 2005-08-25 23:35:29
Posts: 96
Да отходит он все нормасно по координатам НО он в хп теряется отходит рано и поетому я прошу изменить мне проверку на хп что бы не через сервер проверял а как то подругому, поточнее!


Top
   
 Post subject:
PostPosted: 2008-03-04 15:08:13 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
я тебе говорю что он плохо отходит?;)
Решения:
1. Пусть каждый смотрит СВОИ хп и отходит в случа если они низкие...
2. Пусть чар КУКЛА(0x0008E9D0) сам говорит когда унего мало хп, или сообщене или швырнуть чтонить на пол...


Top
   
 Post subject:
PostPosted: 2008-03-04 15:55:37 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
юзайте мой корявый спаринг.. там ппц как хорошо отходит ;)

_________________
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: 2008-03-04 19:56:18 
Offline

Joined: 2005-08-25 23:35:29
Posts: 96
а что значит while 1 в начале скрипта ?


Top
   
 Post subject:
PostPosted: 2008-03-04 20:02:09 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
viewtopic.php?t=805

_________________
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: 2008-03-04 22:51:36 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
Shadowdancer wrote:
а что значит while 1 в начале скрипта ?

условие всегда ИСТИНО цикл будет бесконечный;)


Top
   
 Post subject:
PostPosted: 2008-03-04 22:57:21 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
А отсутствие wend в конце скрипта обычно говорит о криворукости автора.. :roll:

_________________
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
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 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