Fresh prince Posted March 18, 2013 Posted March 18, 2013 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!! Quote
nndsl Posted March 18, 2013 Posted March 18, 2013 (edited) +1 @notrade - Invisible autotraders on map. good idea ))) Edited March 18, 2013 by nndsl Quote
Fresh prince Posted March 19, 2013 Author Posted March 19, 2013 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 Quote
Senshuken Posted March 21, 2013 Posted March 21, 2013 (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 March 21, 2013 by Senshuken Quote
Question
Fresh prince
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.