Yoko

All sides of Injection
It is currently 2025-11-23 12:58:54

All times are UTC+02:00




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2004-10-03 20:43:41 
Offline
User avatar

Joined: 2004-06-27 19:59:56
Posts: 34
Помогите переделать такой значит сцп:
Code:
sub horse() 
while 1==1
wait(100)
UO.FindType('0x00D2',-1,'ground')
If UO.FindCount('finditem')>0 Then
UO.UseObject('finditem')
Endif
wend
end sub

На шарде при касте маг падает с лошадки. А этот сцп пытается запрыгнуть на любую лошадку такого же типа находящуюся рядом. А надо чтобы на чужих лошадок не обращал внимание и пытался залезть токо на свою...


Top
   
 Post subject:
PostPosted: 2004-10-04 00:13:09 
Offline
User avatar

Joined: 2004-04-03 18:39:28
Posts: 173
Lasthorse

_________________
11


Top
   
 Post subject:
PostPosted: 2004-10-04 10:47:35 
Offline
User avatar

Joined: 2004-06-27 19:59:56
Posts: 34
Мне бы чтобы сцп проверял на транспорте ли я и делал lastobject lasthorse если я на ногах.


Top
   
 Post subject:
PostPosted: 2004-10-07 16:19:58 
Offline
User avatar

Joined: 2004-06-27 19:59:56
Posts: 34
Code:
sub horse ()
while uo.GetGraphic(uo.ObjAtLayer('horse'))<>"0x00CC" then
uo.useobject("lasthorse")
wait(500)
wend
end sub
Исправте чё не так.


Top
   
 Post subject:
PostPosted: 2004-10-07 16:41:49 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
Lobster wrote:
Code:
sub horse ()
while uo.GetGraphic(uo.ObjAtLayer('horse'))<>"0x00CC" then
uo.useobject("lasthorse")
wait(500)
wend
end sub
Исправте чё не так.


Может так?

Code:
sub horse()
while NOT UO.Dead()
   if uo.GetGraphic(uo.ObjAtLayer('horse'))<>"0x00CC" then
      uo.useobject("lasthorse")
      wait(500)
   else
      wait(500)
   endif
wend
end sub


Top
   
 Post subject:
PostPosted: 2004-10-07 20:32:10 
Offline
User avatar

Joined: 2004-06-27 19:59:56
Posts: 34
Всё круто, но всеравно не то 8). Как бы тогда сделать чтобы если я кастую любой спелл, то инжект делает uo.useobject("lasthorse")? Если так нельзя, можно чтобы реагировал на какой-то определённый спелл.


Top
   
 Post subject:
PostPosted: 2004-10-08 04:47:42 
Offline
User avatar

Joined: 2004-04-03 18:39:28
Posts: 173
Code:
UO.Cast('Magic Arrow','laststatus')
wait(150)
UO.UseObject("Lasthorse")

_________________
11


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


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