Jump to content
  • 0

@notrade


Fresh prince

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Hello!

Id like to request for an atcommand that disables you to trade and be ask to trade.

I understand that theres @noask but i want the user not be able to trade. In other words, no incoming and outgoing trade requests once activated the @notrade.

Thank you!!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   3
  • Joined:  11/28/11
  • Last Seen:  

+1 @notrade - Invisible autotraders on map. good idea )))

Edited by nndsl
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/14/12
  • Last Seen:  

Isn't this basically /notrade command?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

it is, but can't send / commands to the client. I'm building a security code and this will surely be a great help. ty

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  04/14/12
  • Last Seen:  

Well here's a simple @notrade with some source edit. There might be a better way to do this. I changed some of structs to include a new field int no_trade.

 

Anyways to add the patch, first put the file in the root directory your server then do the following:

 

patch -p0 < notrade.patch

 

To remove the changes do

 

patch -p0 -R < notrade.patch

 

To change the default state of the notrade change it at the bottom of the player.conf file

 

 

// conf/battle/player.conf

// Disable trading between players unless they turn it off
// Default: 0 (0: disabled, 1: enabled).
// [Senshuken]
no_trade: 0

 

I haven't tested it extensively, just did a small test. Let me know how it works out for you.

 

PS: If someone finds my way of doing this a bad idea, please let me know what I can do to improve it. Thanks.

notrade.patch

Edited by Senshuken
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...