Page 1 of 1

Loosing last target when MAing explosion pot

Posted: 2011-11-18 23:45:05
by gflip
Hi, i loosing last target when i MA (Magic Arrow) explosion pot

The script is this way:

sub maexplo()
uo.waittargettype("ExplosionPot")
uo.cast("Magic Arrow")
end sub

When i execute it, the target change from last to myself

Any one got a clue how to make not loose last target?

Re: Loosing last target when MAing explosion pot

Posted: 2011-11-18 23:59:35
by ZeroDX
uo.waittargetground(type,[color])

Re: Loosing last target when MAing explosion pot

Posted: 2011-11-19 00:51:56
by gflip
ZeroDX wrote:uo.waittargetground(type,[color])


Could you post full code?

Re: Loosing last target when MAing explosion pot

Posted: 2011-11-19 07:15:03
by Mirage
if the object is destroyed, what you are doing a target?

Re: Loosing last target when MAing explosion pot

Posted: 2011-11-19 17:24:02
by gflip
Mirage wrote:if the object is destroyed, what you are doing a target?


The explosion pot is not destroyed...

It's a WarShard

Re: Loosing last target when MAing explosion pot

Posted: 2011-11-19 17:49:11
by Mirage

Code: Select all

sub maexplo()
    uo.waittargetground('ExplosionPot')
    uo.cast("Magic Arrow")
end sub

ExplosionPotn on the ground