Venture Posted August 11, 2017 Posted August 11, 2017 Hello, I have an event monster that is created through script, and I don't want the monster to walk beyond a certain area. Is there a way to detect if the monster of certain type touches a certain cell area/region and warp them back? Maybe something like OnTouch for NPC? Quote
0 Z3R0 Posted August 11, 2017 Posted August 11, 2017 o.o @Emistry if the monster is the attachedrid; then you could in fact utilize the warp command on a monster? Quote
0 Emistry Posted August 11, 2017 Posted August 11, 2017 17 minutes ago, Z3R0 said: o.o @Emistry if the monster is the attachedrid; then you could in fact utilize the warp command on a monster? yes. OnTOuchNPC: unitwarp <GID>,"<map name>",<x>,<y>; end; Quote
0 Venture Posted August 11, 2017 Author Posted August 11, 2017 2 hours ago, Emistry said: doc/script_commands.txt#L923-L926 Thanks, that works! Quote
Question
Venture
Hello, I have an event monster that is created through script, and I don't want the monster to walk beyond a certain area.
Is there a way to detect if the monster of certain type touches a certain cell area/region and warp them back?
Maybe something like OnTouch for NPC?
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.