Jump to content
  • 0

How to enable @go command for towns only..


Meister

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

How to enable @go command for players in which they can only use @go command if and only if they are at town maps..

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  


Index: atcommand.c

===================================================================

--- atcommand.c (revision 17161)

+++ atcommand.c (working copy)

@@ -1726,7 +1726,10 @@

clif_displaymessage(sd->fd,msg_txt(995)); // You cannot use @go on this map.

return 0;

}

-

+ if( map[sd->bl.m].flag.town && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE) ) {

+ clif_displaymessage(sd->fd,"You can only use @go inside towns.");

+ return 0;

+ }

memset(map_name, '\0', sizeof(map_name));

memset(atcmd_output, '\0', sizeof(atcmd_output));

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Teeway!

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