zmref Posted July 10, 2012 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
Euphy Posted July 10, 2012 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
zmref Posted July 10, 2012 Author 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
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
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.