Jump to content
  • 0

Code for Character Immediate Stop


zmref

Question


  • Group:  Members
  • Topic Count:  148
  • Topics Per Day:  0.03
  • Content Count:  299
  • Reputation:   6
  • Joined:  06/14/12
  • Last Seen:  

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;

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  148
  • Topics Per Day:  0.03
  • Content Count:  299
  • Reputation:   6
  • Joined:  06/14/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

unitstop getcharid(3);

Link to comment
Share on other sites

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.

×
×
  • Create New...