Yoko

All sides of Injection
It is currently 2025-10-15 17:21:49

All times are UTC+02:00




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 2010-12-10 18:18:08 
Offline

Joined: 2010-12-10 18:15:16
Posts: 1
Hello there Injection script experts, I would like to ask you some help.

I have a script to use bandage on my friends, that is included in my script with their ID"s.
sub bandagefriend()
UO.Exec("usetype 0x0e2c")
uo.waittargetobject('0x00027842') ## Test1
UO.InJournal("You can't see the target")
wait(250)
uo.waittargetobject('0x00007a61') ## Test
end sub


But somehow it doesnt work, it only uses bandage on Test1 character, but it doesnt use on Test, when the test1 is not near me.

Would need some help.


Top
   
PostPosted: 2010-12-11 10:09:58 
Offline

Joined: 2009-02-28 15:02:09
Posts: 42
Location: Украина
uo.GetDistance([object])
try to use this function for
Quote:
when the test1 is not near

and when targets outside the screen add this
uo.GetGraphic([object])
or other one which returns object exists

Code:
if uo.GetGraphic(SomeTarget) <> '0x0000' and uo.GetDistance(SomeTarget) <= 2 then
...
endif

_________________
///


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