Dont allow to trade.

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
hiroshima
Posts: 107
Joined: Tue Nov 03, 2009 1:28 pm

Dont allow to trade.

Post by hiroshima »

How to dont allow to make trade?
I need to do it temp. until i`ll fix bug with duplicating items.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Dont allow to trade.

Post 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.
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! 🎮💬
Post Reply