Jump to content
  • 0

@at (autotrade) restricted on town.


Jezu

Question


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

Hi rAthena community,

I just want to ask if possible to restrict the command '@at / @autotrade' on all maps except on turbo room..

If I disabled the @commands on any towns, the @storage, @go and any other commands will not work.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   12
  • Joined:  02/17/12
  • Last Seen:  

use the novending mapflag.. in conf folder

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  414
  • Reputation:   102
  • Joined:  11/13/11
  • Last Seen:  

The 'novending' mapflag would block vending completely.

If you're able to vend, just not @autotrade might be this:

By chance is this set to yes ?

../conf/battle/misc.conf

[// Allow autrade only in map with autotrade flag?
// Set this to "no" will allow autotrade where no "autotrade" mapflag is set
// Set this to "yes" to only allow autotrade on maps with "autotrade" mapflag
at_mapflag: no

Yay Google.

Credits to BrianL.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

so what will be the mapflag code?

like this?

prontera<tab>mapflag<tab>autotrade<tab>no

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  414
  • Reputation:   102
  • Joined:  11/13/11
  • Last Seen:  

No. If you edit the /conf/battle/misc.conf and set it to yes...

It should be...

turbo_room mapflag autotrade

@at will be enabled in that one map only.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

For your first question, yes, you can.

Here

  	 if( sd->bl.m != map_mapname2mapid("turbo_room") && !pc_isGM(sd) ) {
       clif_displaymessage(fd,"You can only use this command inside turbo room!");
       return -1;
       }

Paste it under @at/@autotrade command. Normal players won't be able to use the command outside turbo_room.

For the second question,

prontera	mapflag	nocommand	99

  • blocks all @commands
  • optionally, you can specify the minimum GM level which can override and still use @commands

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

No. If you edit the /conf/battle/misc.conf and set it to yes...

It should be...

turbo_room mapflag autotrade

@at will be enabled in that one map only.

I will give this a try. Thanks a lot!

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