Any Injection expert could help me?

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
thatboys1ckz
Posts: 1
Joined: 2010-12-10 18:15:16

Any Injection expert could help me?

Post by thatboys1ckz »

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.
DreadLord
Posts: 42
Joined: 2009-02-28 15:02:09
Location: Украина
Contact:

Re: Any Injection expert could help me?

Post by DreadLord »

uo.GetDistance([object])
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
///
Post Reply