Thread: [DSPK/PI] PkPoint Shop PRICES - HELP!

Results 1 to 6 of 6
  1. #1 [DSPK/PI] PkPoint Shop PRICES - HELP! 
    Registered Member
    Join Date
    Jan 2011
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    So I wanted to edit the prices of items in the pkpoint shop so that they can protect over items like fury. But when I changed the prices it changed the amount of PkPoints you need to get them... I changed it to 25m and now you need 25m PkPoints just to buy them how can I make it 100 PkPoints but they sell for 25m Cash to general store? [This was all done in prices.txt] Someone please help?
     

  2. #2  
    Registered Member Arcadia's Avatar
    Join Date
    Jan 2011
    Posts
    416
    Thanks given
    84
    Thanks received
    32
    Rep Power
    7
    If it's a custom item that didn't come with your source, you'll need to

    define the item in item.cfg, then prices.txt, then the shop.
    Bryce:

    -Removed, image to big
     

  3. #3  
    Registered Member
    Join Date
    Jan 2011
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Well its DSPK so I beleive it already had them...
     

  4. #4  
    Registered Member Trivzor's Avatar
    Join Date
    Dec 2010
    Posts
    544
    Thanks given
    102
    Thanks received
    109
    Rep Power
    17
    Shopassistant.java

    Search:

    public int getSpecialItemValue(int id) {
    Under it add:

    case: ITEM ID
    return; AMOUNT
    http://www.rune-server.org/runescape...oint-shop.html
    HyBriD PvP - Reborn - Coming soon!
     

  5. #5  
    Registered Member
    Join Date
    Jan 2011
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Still confused
     

  6. #6  
    Registered Member
    Join Date
    Jan 2011
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    heres my codes...
    Code:
    		if (c.myShopId == 21) {
                c.sendMessage(c.getItems().getItemName(removeId)+": currently costs " + getSpecialItemValue(removeId) + " PVP points.");
    			return;
            }
    		if (ShopValue >= 1000 && ShopValue < 1000000) {
    			ShopAdd = " (" + (ShopValue / 1000) + "K)";
    		} else if (ShopValue >= 1000000) {
    			ShopAdd = " (" + (ShopValue / 1000000) + " million)";
    		}
    		c.sendMessage(c.getItems().getItemName(removeId)+": currently costs "+ShopValue+" coins"+ShopAdd);
    	}
    	
    	public int getSpecialItemValue(int id) {
    		switch (id) {
    			case 6889:
    			case 6914:
    			return 100;
    			case 6916:
    			case 6918:
    			case 6920:
    			case 6922:
    			case 6924:
    			return 50;
    			case 11663:
    			case 11664:
    			case 11665:
    			case 8842:
    			return 30;
    			case 8839:
    			case 8840:
    			return 75;
    			case 10499:
    			return 20;
    			case 8845:
    			return 5;
    			case 8846:
    			return 10;
    			case 8847:
    			return 15;
    			case 8848:
    			return 20;
    			case 8849:
    			case 8850:
    			return 25;
    			case 10551:
    			return 50;
    			case 6570:
    			return 35;
    			case 6585:
    			return 15;
    			case 15027:
    			return 150;
    			case 15055:
    			return 1;
    			case 15037:
    			return 100;
    			case 15038:
    			return 100;
    			case 15039:
    			return 100;
    			case 15040:
    			return 100;
    			case 15041:
    			return 100;
    			case 15004:
    			return 80;
    			case 15005:
    			return 80;
    			case 15006:
    			return 100;
    			case 15007:
    			return 100;
    			case 15008:
    			return 80;
    			case 15009:
    			return 80;
    			case 15011:
    			return 80;
    			case 15010:
    			return 100;
    			case 15012:
    			return 80;
    			case 15013:
    			return 80;
    			case 15014:
    			return 80;
    			case 15017:
    			return 80;
    			case 15018:
    			return 80;
    			case 15019:
    			return 80;
    			case 15020:
    			return 100;
    			case 15021:
    			return 100;
    			case 15022:
    			return 100;
    			case 15023:
    			return 100;
    			case 15026:
    			return 100;
    			case 15050:
    			return 100;
    			case 11696:
    			return 150;
    			case 11698:
    			return 150;
    			case 11694:
    			return 150;
    			case 11700:
    			return 150;
    			case 11730:
    			return 130;
    			case 4151:
    			return 50;
    			case 11235:
    			return 60;
    			case 11732:
    			return 40;
    			case 6737:
    			return 30;
    			case 6733:
    			return 30;
    			case 6735:
    			return 30;
    			case 6731:
    			return 30;
    			case 2438;
    			return 10;
    		}
    		return 0;
    	}
    And I edited the prices in prices.txt but it changed the PkPoint value in shop I just wanted it to change sell price to general store...
     


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. Change Price of pkPoint Shop?
    By Rune Sage in forum Help
    Replies: 5
    Last Post: 11-22-2010, 11:56 AM
  2. 525 pkpoint shop?
    By deathrod in forum Help
    Replies: 11
    Last Post: 08-15-2010, 01:42 PM
  3. pkpoint shop?
    By deathrod in forum Help
    Replies: 5
    Last Post: 07-14-2010, 01:56 AM
  4. Shop prices
    By E C T A S Y in forum Help
    Replies: 4
    Last Post: 06-07-2010, 03:33 PM
  5. shop prices
    By dddddaaaaavvvvviiiiiddddd in forum Help
    Replies: 1
    Last Post: 07-25-2009, 04: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
  •