Jump to content
  • 0
L2rUN FOR ME

Shop error + Price change

Question

Hello, I've been trying to change the prices on the server I'm working on but I can't seem to do it, I've got a itemdef editor and have edited the price through that but it doesn't change, I compiled the cache and it wont change, How could I change price

I also tried to add items in my shop but it won't allow me I tried to do that through unpackedshops but it doesn't work..

Can someone tell me how to do these things correctly pleasE?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Did you delete the packed shops?
Also can you edit other things in the server?

Share this post


Link to post
Share on other sites
  • 0
In your shop.java find a code that looks like this.

[CODE]public int getBuyPrice(Item item, int dq) {
switch (item.getId()) {[/CODE]

Now underneath that code for an example you'll see cases or you should that look something like this.

[CODE] case 10352:
item.getDefinitions().setValue(650000000);
break;[/CODE]


Case being the Item Id, and Setvalue being the cost of the item in the shop/in trade.

Hope this helped

Share this post


Link to post
Share on other sites
  • 0
Thanks.

[COLOR="silver"]- - - Updated - - -[/COLOR]

Thanks.

Share this post


Link to post
Share on other sites
  • 0
Im getting this error (i work with that guy, he posted the comment)

[QUOTE]Building please wait...
src\com\rs\game\player\content\Shop.java:317: error: orphaned case
case 1117:
^
1 error
Compiled.
Druk op een toets om door te gaan. . .[/QUOTE] Edited by shershah

Share this post


Link to post
Share on other sites

×