zmref Posted July 10, 2012 Group: Members Topic Count: 148 Topics Per Day: 0.03 Content Count: 299 Reputation: 6 Joined: 06/14/12 Last Seen: March 30, 2013 Share Posted July 10, 2012 Problem: when I clicked on some cell it still walks until the character reaches that cell I clicked even though the option was already changed. Objective: So I'm looking for a short code that immediately stops the character upon contact with the OnTouch: command. This was the script I wrote OnTouch: if (getgmlevel() < 80){ atcommand "@option 8"; emotion 0; Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 10, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 10, 2012 *pcblockmove <id>,<option>;Prevents the given ID from moving when the option != 0, 0 enables the ID to move again. ID should be able to be GID of a monster/NPC or AID from a character. Example(s): //prevents the current char from moving away; pcblockmove getcharid(3),1; //enables the current char to move again. pcblockmove getcharid(3),0; Quote Link to comment Share on other sites More sharing options...
zmref Posted July 10, 2012 Group: Members Topic Count: 148 Topics Per Day: 0.03 Content Count: 299 Reputation: 6 Joined: 06/14/12 Last Seen: March 30, 2013 Author Share Posted July 10, 2012 (edited) thanks but still when I clicked on a cell my character walks then stops at last cell clicked, I want to know a code that immediately stops the character without further moving. Edited July 10, 2012 by zmref Quote Link to comment Share on other sites More sharing options...
KeyWorld Posted July 10, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 379 Reputation: 304 Joined: 11/10/11 Last Seen: December 2, 2014 Share Posted July 10, 2012 unitstop getcharid(3); Quote Link to comment Share on other sites More sharing options...
Question
zmref
Problem:
when I clicked on some cell it still walks until the character reaches that cell I clicked even though the option was already changed.
Objective:
So I'm looking for a short code that immediately stops the character
upon contact with the OnTouch: command.
This was the script I wrote
Link to comment
Share on other sites
3 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.