Jump to content

Question

Posted

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

4 answers to this question

Recommended Posts

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...