Originally posted by [b]NoH[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4157
Last time I checked, I'm pretty sure OnTouch were triggered even when you did not specify a zone around the NPC in the header, like:
CODE
monk_test,38,388,0 duplicate(MonkTrap) Trap#t_monk2_1 -1,0,1
Stuff like:
CODE
monk_test,38,388,0 duplicate(MonkTrap) Trap#t_monk2_1 -1
should work just fine (if you want the OnTouch be triggered only if you're exactly where the NPC is). It no longer does. However,
CODE
monk_test,38,388,0 duplicate(MonkTrap) Trap#t_monk2_1 -1,0,0
does the job. I may very well have completely imagined this "old behaviour" stuff, but the fact is you have to specify a zone to use OnTouches.
I noticed this bug in official scripts, like the monks job change quest, with the traps (
http://svn.eathena.ws/svn/ea/trunk/npc/jobs/2-2/monk.txt ).
So I'm wondering: is it supposed to work that way (and in this case thank you for moving this topic in the script section, so this quest, and possibly others, can be fixed), or is that a bug?
This post has been edited by NoH: Mar 30 2010, 03:38 AM