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.
Any Injection expert could help me?
Moderators: Murderator+, Murderator
Re: Any Injection expert could help me?
uo.GetDistance([object])
try to use this function for
and when targets outside the screen add this
uo.GetGraphic([object])
or other one which returns object exists
try to use this function for
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: Select all
if uo.GetGraphic(SomeTarget) <> '0x0000' and uo.GetDistance(SomeTarget) <= 2 then
...
endif
///