DarkstarProject/darkstar — pull request #116 by TeoTwawki (2014-04-06 11:26:25+00:00)
Title: Rewrote "Stamp Hunt" quest in Bastok. Was having issues.

Sometimes it worked fine, but sometimes a character would hit all 7 NPC's get all 7 messages saying the "received a stamp!" and then the quest wouldn't finish. Now it works every time.

Was faster to rewrite the scripts than figure out exactly what went wrong. If setMaskBit was good enough for lure of the wildcat (80 NPCs, 20 per town), it is good enough for stamp hunt (7 NPCs).

Used a new variable instead of recycling the old one to store the mask to avoid any conflicts with whatever might be in the old var on existing players.

Players who were mid quest only need to recheck the NPCs and they'll be fine. Old var can be nuked form table.