$instr BUG?

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

weapon
a ghoul
a ghoul
Posts: 101
Joined: Tue Oct 01, 2002 7:20 pm

$instr BUG?

Post by weapon » Fri Oct 31, 2003 9:39 am

1. I created a simple test macro with

Code: Select all

Sub Main
/if "$instr(corpse,$target(name))"=="-1" /echo "C = $instr(corpse,$target(name))"
/return
2. Target a mob you can kill
3. run the macro till you are blue in the face it works fine
4. Kill the mob
5. After the mob is dead I have no target and I click the macro again and I instantly lock EQ. I have to kill the MQ process and relogin.

Running WinXP Pro DX9

Is this a sytax problem or a bug?

I have tried many combinations of using quotes and not using quotes so please test before posting a syntax fix. I have also tried the numeric comparison of the $instr return and it still locks EQ up.