Jump to content
  • 0

Gmshop Selling Problem Again..


Question

Posted

I have modified gmshop so that if someone sells, he will get 0 adena, but I must edit the gmshop somehow in order not to show a selling price, because player gets confused as the gmshop shows him selling price (for example) 100k and when he sells it, he gets 0. How can I edit it so that it shows 0?

 

thanks a lot!

7 answers to this question

Recommended Posts

  • 0
Posted

got it. had to modify in l2item.java
 

public final int getReferencePrice()
 {
  return (isConsumable() ? (int)(_referencePrice * Config.RATE_CONSUMABLE_COST)/10 : _referencePrice/10);
 }
  • 0
Posted (edited)

I have modified the request sell item to long price = item.getReferencePrice() / 10; instead of /2 and now items get sold lower. I'll give you an example to undenrestand my prob:

I go to the gmshop and want to sell a weapon, the gmshop shows that the selling price is 21kk but when I sell it I get only  5kk. I want to modify this in order to display the correct selling price(which is 5kk).. How can I do that?

Edited by Innos
Guest
This topic is now closed to further replies.


×
×
  • Create New...