Param issues with combat text
Posted: Mon Apr 19, 2010 10:25 am
I'm having issues with detecting combat in my macro. It seems to all be stemming from the params in this event.
It seems to only take the first word of the attacker-name as #1# and lumps all the other info into #2#. Is there a way I could just do:
and remove the "punches/slashes/pierces" from the string?
This is making my brain hurt. Thanks in advance.
Other snippet included for reference... the main thing is I need the mob's name so I can have my character target it.
Code: Select all
#event hit "#1# #2# YOU for #3# points of damage."
Code: Select all
#event hit "#1# YOU for #2# points of damage."
This is making my brain hurt. Thanks in advance.
Code: Select all
#event hit "#1# tries to #2# YOU, but misses!"
#event hit "#1# #2# YOU for #3# points of damage."
#event hit "#1# tries to #2# YOU, but YOUR magical skin absorbs the blow!"
|---getting hit--------------------|
Sub Event_hit
/if (${assist}==0) /return
/if (${fol}==1) {
/g Canceling follow, Master. I'm being attacked.
/varset fol 0
}
/if (${hita}==0) {
/varset hitarg ${Param1}
/varset hita 1
/varset hitb 1
/target ${hitarg}
/delay 10
/if (${sil}==0) /g %t is attacking me, Master
/varset atktarg ${Param1}
/doevents
/return
}
/doevents
/return