ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Paulonius on April 27, 2011, 03:11:43 PM

Title: Heal Target
Post by: Paulonius on April 27, 2011, 03:11:43 PM
I can't figure out why this won't work for me.  I am sending this sub a toon ID and it is supposed to cycle through party members until it finds the ID, assign it as last target, and then apply bandages.  

My toons are partied
There are only two of them, so even if I don't send the id, it picks the ID and attempts to apply the bandages
I pulled the sub out and ran it as a stand alone and it selects the other toon on the first loop and applies the bandage
When I run it in my script that sends it the id, I get a bunch of can't find party member error messages, then it tries to apply the bandage and gets an error back saying that it can't locate a party member.

If I double click the heal target first, which I think is manually bringing up the target, it works fine.  

Code: [Select]
Start_CrossHeal:
Set %LoopNumber 0
Repeat
      {
      Event macro 50 2
      Set %loopnumber %loopnumber + 1
      }
Until #ltargetid = %1 || %Loopnumber > 4
event sysmessage target is #ltargetid loop number is %Loopnumber
If %loopnumber > 6
   Return
event macro 59
Title: Re: Heal Target
Post by: Endless Night on April 27, 2011, 03:20:19 PM
So maybe its our old friend #lTargetKind,   but im guess as ive not used that macro myself
Title: Re: Heal Target
Post by: Scrripty on April 27, 2011, 04:25:58 PM
I was gonna reply here Paul, but this isn't private.  I'll send you a PM.