help with targeting

Ask for help

Moderators: Murderator+, Murderator

Post Reply
crazy1
Posts: 12
Joined: 2008-01-31 17:43:42

help with targeting

Post by crazy1 »

For the free shard I play on I have to type a command to get experience points and click on the monster I killed. I was wondering how can I make it auto target the dead body and click without me doing anything?
thank you
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

Code: Select all

sub corpseclick()
uo.waittargetobject("lastcorpse")
uo.msg(".command")
end sub
crazy1
Posts: 12
Joined: 2008-01-31 17:43:42

Post by crazy1 »

thank you
crazy1
Posts: 12
Joined: 2008-01-31 17:43:42

Post by crazy1 »

I seem to have to run the script everytime I want it to click how can I make it just click everytime I kill something?
Nmy
Expert!
Posts: 2152
Joined: 2005-09-14 15:31:58
Location: Latvia

Post by Nmy »

crazy1 wrote:I seem to have to run the script everytime I want it to click how can I make it just click everytime I kill something?


Code: Select all

sub corpseclick()
while true
if uo.injournal("body") then
uo.waittargetobject("lastcorpse")
uo.msg(".command")
uo.deletejournal()
endif
wait(1000)
wend
end sub
Post Reply