Thread: Shop Sell Price

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Shop Sell Price 
    Registered Member
    Join Date
    Nov 2010
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I was wondering if someone could help me? I am working on a 718 rsps and came across an issue in the shop. When I go to sell an item to a shop, it gives me the same amount as a sell price as it does for the buy price. I know I can code in a manual price for the sell price but I was wondering if there is anyway to do it in the cache or other location. I want it so that when I go to sell an item, it would sell for the same price that the cache displays in the interface. If anyone could help me, I would greatly appreciate it.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2010
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Anyone have an idea on a fix? Thanks in advance.
    Reply With Quote  
     

  3. #3  
    Registered Member
    maffia-rpg's Avatar
    Join Date
    Jul 2011
    Posts
    2,775
    Thanks given
    587
    Thanks received
    759
    Rep Power
    120
    You should edit this cache sided.
    Quote Originally Posted by Nando View Post
    why would I care about trying to get you to care about me homosexual?
    back to coding shit revisions
    1080% lost.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2010
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I understand how to do the buy price cache sided. I see that the cache sell price is something different than the cache buy price as it is different in the shop interface but for some reason it still loads the cache buy price when I go to sell an item. Anyway to change that and what the sell cache price is? Thanks in advance.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2010
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Still wondering if anyone knows how to change the sell price of a shop in cache. If anyone could help, I would greatly appreciate it. Thanks in advance.
    Reply With Quote  
     

  6. #6  
    Infliction Developer

    Convoluted's Avatar
    Join Date
    Nov 2012
    Posts
    346
    Thanks given
    11
    Thanks received
    93
    Rep Power
    88
    Reply With Quote  
     

  7. #7  
    New Project
    Ben_U's Avatar
    Join Date
    Dec 2011
    Age
    31
    Posts
    1,711
    Thanks given
    109
    Thanks received
    360
    Rep Power
    66
    I edited my prices through shop.java

    Such as Buy price (price that you buy FROM the shop):
    Code:
     public int getBuyPrice(Item item, int dq) {
    		switch (item.getId()) {
    And sell price (the price you sell TO the shop):
    Code:
        public int getSellPrice(Item item, int dq) {
    		switch (item.getId()) {
    And then you edit prices like this:
    Code:
            	case 270:
    			item.getDefinitions().setValue(1);
    		    break;
    Case # being the item ID and the number inside the parenthesis after the item.getDefinitions().setValue being the price, and then break; every time you are done making a price for a buy or sell price.
    Reply With Quote  
     

  8. #8  
    Infliction Developer

    Convoluted's Avatar
    Join Date
    Nov 2012
    Posts
    346
    Thanks given
    11
    Thanks received
    93
    Rep Power
    88
    Quote Originally Posted by bandoswhips View Post
    I edited my prices through shop.java

    Such as Buy price (price that you buy FROM the shop):
    Code:
     public int getBuyPrice(Item item, int dq) {
    		switch (item.getId()) {
    And sell price (the price you sell TO the shop):
    Code:
        public int getSellPrice(Item item, int dq) {
    		switch (item.getId()) {
    And then you edit prices like this:
    Code:
            	case 270:
    			item.getDefinitions().setValue(1);
    		    break;
    Case # being the item ID and the number inside the parenthesis after the item.getDefinitions().setValue being the price, and then break; every time you are done making a price for a buy or sell price.
    That way doesn't change the price number in the shop though only the price of it in the shop.
    Like if you put it in for 1.5M it would still say 136k or whatever on the item.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Nov 2010
    Posts
    42
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Ya, I wanna see if anyone knows how to change the cache sell price so it changes in the interface too.
    Reply With Quote  
     

  10. #10  
    New Project
    Ben_U's Avatar
    Join Date
    Dec 2011
    Age
    31
    Posts
    1,711
    Thanks given
    109
    Thanks received
    360
    Rep Power
    66
    Quote Originally Posted by InflictionRB View Post
    That way doesn't change the price number in the shop though only the price of it in the shop.
    Like if you put it in for 1.5M it would still say 136k or whatever on the item.
    Yes, i know. But i do this so i don't have to take the time to edit the cache. It is a simple way. I am giving my opinion and way to do it.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 1
    Last Post: 12-26-2011, 09:43 PM
  2. Price Check (May sell.)
    By Hooligan in forum Price Check
    Replies: 4
    Last Post: 03-01-2011, 01:27 AM
  3. Replies: 5
    Last Post: 02-22-2011, 11:48 AM
  4. [PI]Fixing Sell price display
    By Zuyi in forum Snippets
    Replies: 9
    Last Post: 09-01-2010, 01:24 AM
  5. Replies: 3
    Last Post: 11-25-2009, 08:00 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •