How to dont allow to make trade?
I need to do it temp. until i`ll fix bug with duplicating items.
Dont allow to trade.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: Dont allow to trade.
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:
The previous queries will create and set an access level that won't allow trades.
To revert this changes use this two queries:
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:
Don't forget to move a copy of Character.properties and the l2jserver.jar as well.
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;
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;
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
You do not have the required permissions to view the files attached to this post.
Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 
