Thread: PI pk point shop

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 PI pk point shop 
    Registered Member
    Join Date
    Jun 2010
    Age
    29
    Posts
    891
    Thanks given
    22
    Thanks received
    47
    Rep Power
    0
    Base: DSPK [PI]
    Problem: cant buy items from pk shop
    Errors(Compiling Errors):none
    Other Information/Media(Pictures, etc):none

    my ShopAssistant.java Java - Rune-Server Official Pastebin

    it says "you do not have enough coins". shop id is 23

    tried many diffrent ways but doesn't seem to work.
    will rep
    post if you need any more info.
    hi
    Reply With Quote  
     

  2. #2  
    Howdy

    nMik's Avatar
    Join Date
    Nov 2010
    Posts
    1,060
    Thanks given
    144
    Thanks received
    147
    Rep Power
    107

    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Age
    29
    Posts
    891
    Thanks given
    22
    Thanks received
    47
    Rep Power
    0
    hi
    Reply With Quote  
     

  4. #4  
    Howdy

    nMik's Avatar
    Join Date
    Nov 2010
    Posts
    1,060
    Thanks given
    144
    Thanks received
    147
    Rep Power
    107
    i have a feeling this isnt pi then lol lemme re-do it.

    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2010
    Age
    29
    Posts
    891
    Thanks given
    22
    Thanks received
    47
    Rep Power
    0
    Quote Originally Posted by PurpFuzz View Post
    i have a feeling this isnt pi then lol lemme re-do it.
    it is and thanks would appreciate it
    hi
    Reply With Quote  
     

  6. #6  
    Howdy

    nMik's Avatar
    Join Date
    Nov 2010
    Posts
    1,060
    Thanks given
    144
    Thanks received
    147
    Rep Power
    107
    http://paste.rune-server.org/1591 ok try this i re-read ur post and double checked evrtything

    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jun 2010
    Age
    29
    Posts
    891
    Thanks given
    22
    Thanks received
    47
    Rep Power
    0
    no errors but it still says "You don't have enough coins."
    hi
    Reply With Quote  
     

  8. #8  
    Howdy

    nMik's Avatar
    Join Date
    Nov 2010
    Posts
    1,060
    Thanks given
    144
    Thanks received
    147
    Rep Power
    107
    Gahh last try... lol.. If this doesnt work idk u got somthing wrogn with urs cause i had the coins error yestrday and i fixed it using the last one i sent u so try this.

    Rune-Server Official Pastebin

    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jun 2010
    Age
    29
    Posts
    891
    Thanks given
    22
    Thanks received
    47
    Rep Power
    0
    Nop now it doesn't say anything, thanks anyway.
    hi
    Reply With Quote  
     

  10. #10  
    Howdy

    nMik's Avatar
    Join Date
    Nov 2010
    Posts
    1,060
    Thanks given
    144
    Thanks received
    147
    Rep Power
    107
    Add this
    Code:
    else if(c.myShopId == 23) {
                    	if (c.pkPoints >= TotPrice2) {
    						if (c.getItems().freeSlots() > 0) {
    							buyDelay = System.currentTimeMillis();
    							c.pkPoints -= TotPrice2;
    							c.getItems().addItem(itemID, 1);
    							Server.shopHandler.ShopItemsN[c.myShopId][fromSlot] -= 1;
    							Server.shopHandler.ShopItemsDelay[c.myShopId][fromSlot] = 0;
    							if ((fromSlot + 1) > Server.shopHandler.ShopItemsStandard[c.myShopId]) {
    								Server.shopHandler.ShopItems[c.myShopId][fromSlot] = 0;
    							}
    						} else {
    							c.sendMessage("You don't have enough space in your inventory.");
    							break;
    						}
    					} else {
    						c.sendMessage("You don't have enough pk points.");
    						break;
    					}
                    }
    to the void above handleothershop

    IF THAT DOESNT WORK USE THIS!!! http://paste.rune-server.org/1593

    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: 3
    Last Post: 02-25-2013, 02:26 AM
  2. PK point shop
    By luke 2k9 in forum Help
    Replies: 2
    Last Post: 11-06-2010, 01:05 PM
  3. Pk point shop
    By Pat` in forum Help
    Replies: 3
    Last Post: 09-27-2010, 12:18 AM
  4. pk point shop
    By Ichigo1019 in forum Help
    Replies: 0
    Last Post: 07-09-2010, 05:18 PM
  5. Trying to add a point shop :s
    By Soulevoker in forum Help
    Replies: 3
    Last Post: 04-23-2010, 07:46 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
  •