Jump to content
  • 0

Code for Character Immediate Stop


Question

Posted

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;

3 answers to this question

Recommended Posts

Posted
*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;

Posted (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 by zmref

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...