Page 1 of 1

Dont allow to trade.

Posted: Sat Nov 27, 2010 3:45 pm
by hiroshima
How to dont allow to make trade?
I need to do it temp. until i`ll fix bug with duplicating items.

Re: Dont allow to trade.

Posted: Sat Nov 27, 2010 9:25 pm
by Zoey76
Since it's a temporal solution what you are looking for, I suggest use Access Levels.

To do that you have to run the following queries:

Code: Select all

INSERT INTO l2jdb.access_levels (accessLevel, name, nameColor, titleColor, childAccess, isGm, allowPeaceAttack, allowFixedRes, allowTransaction, allowAltg, giveDamage, takeAggro, gainExp) VALUES ('333', 'noTrade', '-1', '-1', '', '0', '0', '0', '0', '0', '1', '1', '1'); UPDATE characters SET accesslevel = 333 WHERE accesslevel = 0;
The previous queries will create and set an access level that won't allow trades.

To revert this changes use this two queries:

Code: Select all

DELETE FROM access_levels WHERE access_levels.accessLevel = 333; UPDATE characters SET accesslevel = 0 WHERE accesslevel = 333;
It's recommendable that you run any of this queries with the server down.

New and unbanned characters will be able to trade, so this is not a proper solution.

If you really want to avoid trades you need to apply the following patch to the core and set the new config:

Code: Select all

AllowTransactions = False
Don't forget to move a copy of Character.properties and the l2jserver.jar as well.