Loosing last target when MAing explosion pot

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
gflip
Posts: 12
Joined: 2011-11-16 21:04:11

Loosing last target when MAing explosion pot

Post 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?
ZeroDX
Posts: 718
Joined: 2006-12-08 10:51:50
Location: Москва
Contact:

Re: Loosing last target when MAing explosion pot

Post by ZeroDX »

uo.waittargetground(type,[color])
gflip
Posts: 12
Joined: 2011-11-16 21:04:11

Re: Loosing last target when MAing explosion pot

Post by gflip »

ZeroDX wrote:uo.waittargetground(type,[color])


Could you post full code?
Mirage
Posts: 2802
Joined: 2009-05-28 09:58:28
Location: Иваново
Contact:

Re: Loosing last target when MAing explosion pot

Post by Mirage »

if the object is destroyed, what you are doing a target?
gflip
Posts: 12
Joined: 2011-11-16 21:04:11

Re: Loosing last target when MAing explosion pot

Post 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
Mirage
Posts: 2802
Joined: 2009-05-28 09:58:28
Location: Иваново
Contact:

Re: Loosing last target when MAing explosion pot

Post by Mirage »

Code: Select all

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

ExplosionPotn on the ground
Post Reply