Possible bug.

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

skysurf
a lesser mummy
a lesser mummy
Posts: 52
Joined: Fri Aug 15, 2003 1:54 am

Possible bug.

Post by skysurf » Fri Jan 09, 2004 6:52 am

/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

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Fri Jan 09, 2004 7:16 am

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.

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Fri Jan 09, 2004 7:17 am

You also need to have the latest MQ2 source code. There was a bug with the source around Christmas that was squashed since then.

skysurf
a lesser mummy
a lesser mummy
Posts: 52
Joined: Fri Aug 15, 2003 1:54 am

Post by skysurf » Fri Jan 09, 2004 7:58 am

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