Jump to content
  • 0

@commands inside town only?


Brynner

Question


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

how to enable @commands works only if you are inside town. but if youre in the field it will say you cannot use @commands outside the town.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.03
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

Posted · Hidden by Euphy, July 3, 2012 - No reason given
Hidden by Euphy, July 3, 2012 - No reason given

hmm

Link to comment

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   28
  • Joined:  01/16/12
  • Last Seen:  

You could set mapflags. o-o;

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/atcommand.c

change your @command code to this

ACMD_FUNC(commands)
{
nullpo_retr(-1, sd);
if ( ![sd->bl.m].flag.town ) {
 clif_displaymessage(fd, "This command can only use in Town Map");
 return -1;
}

atcommand_commands_sub(sd, fd, COMMAND_ATCOMMAND);
return 0;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

thanks problem solve.

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