Jump to content
  • 0

Changing NPC resell prices


Question

Posted

Hi guys. I am new to the forum and have one little question about how to edit the reselling price @ npcs.

It is not about the prices who player have to pay if they buy soulshots or whatever. Allready found that @ the sql tables.

 

I need to know how i can change the ammount of Adena which players recieve if they sell item "x" to the npc. =)

I hope anyone knows in which template i can find this setting.

 

Thx for help

4 answers to this question

Recommended Posts

  • 0
Posted

I hope I have understood your question.

 

By "selling price", I suppose you talk about the "Sell" option on some merchants/fishermen, where you can sell back for 1/3 of the value (or something like).

 

If yes, it's in (network/) clientpackets, RequestSellItem.

 

----

 

If I'm wrong, explain better.

 

If it's not the good loc, this post has never exists :P.

  • 0
Posted

Thx Tryskell you understood it in the right way =)

xAddytzu posted the 3 .sql tables were i can find the price of items if i wanna buy them from a merchant so wrong =(

Lemme try (network/) clientpackets, RequestSellItem and i gonna edit this post if it has worked or not.

 

Thx for the fast help :)

 

EDIT:

yeah it seems to be the right file (RequestSellItem) but i am not good in java :/

Anyone can clearly explain which variables i need to change to increase / decrease the ammount of adena a players recieves for selling an item to the merchant?

Would be really helpfull =)

  • 0
Posted

It depends what exactly you want to do.

 

totalPrice += item.getReferencePrice() * count / 2;

is probably the easiest way.

 

Remove the /2 to see if it does something IG. I don't rem if "sell" is 50% of the worth of an item, but if yes, you got answer :p.

 

According to what I read in the code, it should sell back at original price (removing the "/2"). After you can mod it as you want /10, /4,...

 

If you haven't this line, say the chronicle :p.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock