Venture Posted August 11, 2017 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Share 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 Link to comment Share on other sites More sharing options...
1 Emistry Posted August 11, 2017 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 6 hours ago Share Posted August 11, 2017 doc/script_commands.txt#L923-L926 1 Quote Link to comment Share on other sites More sharing options...
0 Z3R0 Posted August 11, 2017 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted August 11, 2017 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 6 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Venture Posted August 11, 2017 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Author Share Posted August 11, 2017 2 hours ago, Emistry said: doc/script_commands.txt#L923-L926 Thanks, that works! Quote Link to comment Share on other sites More sharing options...
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?
Link to comment
Share on other sites
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.