Jump to content
  • 0

How to limit the movement of the player ?


minijoe

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  11/14/15
  • Last Seen:  

prontera,88,105,0	script	#Start99	139,5,5,{

OnTouch:
	//Limit the movement of the players.
	initnpctimer;
	mapannounce "prontera","hello!",bc_map,"0x00ffff";
	end;
OnTimer3000:
	mapannounce "prontera","hello!",bc_map,"0x00ffff";
	end;
OnTimer6000:
	mapannounce "prontera","hello!",bc_map,"0x00ffff";
	end;
OnTimer9000:
	stopnpctimer;
	mapannounce "prontera","hello!",bc_map,"0x00ffff";
	//Take off the limited of the players.
	end;
}

How to limit the movement of the player ?

 

The Players trigger the mapannounce when they entry to some area,the system let  Players can not move or use skills until the end of the mapannounce,just like the Players are speaking to the NPC.

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

pcblockmove getcharid(3),1; <- holds the player
pcblockmove getcharid(3),0; <- frees the player

You should attachids though so no errors pop up in map server when used.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  11/14/15
  • Last Seen:  

Thank you so much.

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