Yoko
http://forum.yoko.com.ua/

Any Injection expert could help me?
http://forum.yoko.com.ua/viewtopic.php?f=17&t=16004
Page 1 of 1

Author:  thatboys1ckz [ 2010-12-10 18:18:08 ]
Post subject:  Any Injection expert could help me?

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.

Author:  DreadLord [ 2010-12-11 10:09:58 ]
Post subject:  Re: Any Injection expert could help me?

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

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/