Page 1 of 1

Possible bug.

Posted: Fri Jan 09, 2004 6:52 am
by skysurf
/target Player
/delay 2
/if $target(hp,pct)<=35 /call BlaBla






Sub BlaBla
/stand
/tell Player AUTOHEAL ACTIVATED!
/delay 2
/target Player
/delay 2
/call Spellsub "Chloroblast"
/sit
/return










What I just posted works fine UNLESS the target "Player" is at 100% health. When he is, then it just keeps casting chloroblast till out of mana.

I suppose I could be doing something wrong, but its such a simple statement I don't see where I could be doing something wrong.

Sky

Posted: Fri Jan 09, 2004 7:16 am
by ml2517
This:

Code: Select all

/if $target(hp,pct)<=35 /call BlaBla 
Should be:

Code: Select all

/if n $target(hp,pct)<=35 /call BlaBla 
Any time you do a numeric comparison you need to have /if n.

Posted: Fri Jan 09, 2004 7:17 am
by ml2517
You also need to have the latest MQ2 source code. There was a bug with the source around Christmas that was squashed since then.

Posted: Fri Jan 09, 2004 7:58 am
by skysurf
Thanks guys. Sorry to bother you for such a simple mistake. I went over it like 500 times in my mind and with how short it was I couldn't think of anything I was doing wrong.

Sorry to bother you all =/


Sky