Jump to content
  • 0

Help - Player can't move, allowing mob attack


fictionx

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   17
  • Joined:  12/10/12
  • Last Seen:  

Hi,

How can i make that the player can't move allowing the mob attack him?.

i'm using setcell with the flag cell_walkable,0 but the problem is that command make the player have immunity to attack from a mob. (Like @monsterignore).

Thank you in advance :)

Edited by fictionx
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   36
  • Joined:  04/01/13
  • Last Seen:  

7 minutes ago, fictionx said:

Hi,

How can i make that the player can't move allowing the mob attack him?.

i'm using setcell with the flag cell_walkable,0 but the problem is that command make the player have immunity to attack from a mob. (Like @monsterignore).

Thank you in advance :)

*pcblockmove <id>,<option>;
*unitblockmove <id>,<option>;

Prevents the given GID from moving when the option is 1, and enables the ID to
move again when the option is 0. This command will run for the attached unit
if the given GID is zero.

Examples:
    // Prevents the current char from moving away.
    pcblockmove getcharid(3),1;

    // Enables the current char to move again.
    pcblockmove getcharid(3),0;

 

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   17
  • Joined:  12/10/12
  • Last Seen:  

11 minutes ago, M4karov said:

*pcblockmove <id>,<option>;
*unitblockmove <id>,<option>;

Prevents the given GID from moving when the option is 1, and enables the ID to
move again when the option is 0. This command will run for the attached unit
if the given GID is zero.

Examples:
    // Prevents the current char from moving away.
    pcblockmove getcharid(3),1;

    // Enables the current char to move again.
    pcblockmove getcharid(3),0;

 

Thank you!.

Solved.

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...