[Help] How to change "resell" prices for items

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
AshLynN
Posts: 2
Joined: Tue Jun 29, 2010 3:57 pm

[Help] How to change "resell" prices for items

Post by AshLynN »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:4318
L2JDP Revision Number:7542

I want to know how i can edit the price a player recieves from a merchant for selling an item to him.
As far as i know this info is written down in the RequestSellItem.java but i dont know what line i need to edit to increase / decrease the ammount of adena a player recieves.

Could anyone write a tutorial about this problem? I am not good in java unfortunatelly =(
Thx for help so far =)
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: [Help] How to change "resell" prices for items

Post by janiii »

check line 194:

Code: Select all

long price = item.getReferencePrice() / 2;
that means that the price from database is checked and divided by 2. you can use there some other number. but dont know if this change is shown on client too.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
Post Reply