http://macroquest2.com/phpBB2/viewtopic.php?t=2895
ive messed with it, walked through the code quite a few times, and i still cant figure out why it hangs on the 10th mob, any ideas?
/afk
Moderator: MacroQuest Developers



Code: Select all
clears alert 1
adds alert for yadda_yadda00
adds alert for yadda_yadda01
adds alert for yadda_yadda02
adds alert for yadda_yadda03
adds alert for yadda_yadda04
clears alert 2
Code: Select all
cleared alert 10
added alert for big_mob_00
*Hang*


Code: Select all
/for v3 1 to 100Code: Select all
Sub AlertSetup
|** Clear Alerts **|
/varset v1 "$zone"
/for v3 1 to 100
/varset a(0,$v3) 0 |Clear NPC name listing
/varset a(1,$v3) 0 |Clear Alert Status listing
/varset a(2,$v3) 0 |Clear Info Listing
/next v3
|** Get Alerts from alert.ini **|
[color=red]/for v3 1 to 10[/color]
/if "$ini("INIPATH","$zone","$v3")"=="NOTFOUND" {
/varset a(0,0) $int($calc($v3-1))
/goto :FoundItems
} else {
/varset a(0,$v3) "$ini("INIPATH","$zone","$v3")"
}
/next v3
:FoundItems
|** Set Alerts **|
/if $a(0,0)==0 {
/echo No NPC alerts set for $zone.
/goto :FinishedInfo
} else {