Thread: Help. Slayer Points Problems.

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36
  1. #1 Help. Slayer Points Problems. 
    Donator
    revengepk's Avatar
    Join Date
    Nov 2011
    Posts
    267
    Thanks given
    12
    Thanks received
    59
    Rep Power
    20
    I have my slayer points system all set up but when I buy an item with Slayer points it doesn't subtract the points. Any ideas on how to make it subtract the points?
    Reply With Quote  
     

  2. #2  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    shopassistant.java

    http://www.rune-server.org/runescape...oint-shop.html

    It's pk points but it's the same concept. Learn pls.
    Reply With Quote  
     

  3. #3  
    Donator
    revengepk's Avatar
    Join Date
    Nov 2011
    Posts
    267
    Thanks given
    12
    Thanks received
    59
    Rep Power
    20
    Didn't work. Care to explain more?
    Reply With Quote  
     

  4. #4  
    Kacey
    I Am Kacey's Avatar
    Join Date
    May 2011
    Posts
    738
    Thanks given
    243
    Thanks received
    56
    Rep Power
    19
    Lol just look in your shopassistant.java see how pkpoints work and just copy the method and change id's around really not that hard and also you have to make sure that you added the tokens and character writes correctly as well
    Nothing But Love
    Attached image
    Reply With Quote  
     

  5. #5  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Quote Originally Posted by revengepk View Post
    Didn't work. Care to explain more?
    Well obviously you're doing something wrong.

    Care to show us the code?
    Reply With Quote  
     

  6. #6  
    Kacey
    I Am Kacey's Avatar
    Join Date
    May 2011
    Posts
    738
    Thanks given
    243
    Thanks received
    56
    Rep Power
    19
    if (c.myShopId == 37) {
    c.sendMessage(c.getItems().getItemName(removeId)+" : currently costs " + getSpecialItemValue(removeId) + " Slayer points.");
    return;
    }

    then

    } else if(c.myShopId == 37) {
    if (c.slayerpoints >= getSpecialItemValue(itemID)) {
    if (c.getItems().freeSlots() > 0) {
    c.dungtokens -= getSpecialItemValue(itemID);
    c.getItems().addItem(itemID, 1);
    c.getItems().resetItems(3823);


    }
    } else {
    c.sendMessage("You don't have enough slayer Points.");
    }


    And

    case 1:
    return 25;
    Nothing But Love
    Attached image
    Reply With Quote  
     

  7. #7  
    Donator
    revengepk's Avatar
    Join Date
    Nov 2011
    Posts
    267
    Thanks given
    12
    Thanks received
    59
    Rep Power
    20
    Heres my codes.

    Code:
    		if (c.myShopId == 99) {
                c.sendMessage(c.getItems().getItemName(removeId)+": currently costs " + getSpecialItemValue(removeId) + " Slayer Points.");
    			return;
            }

    Code:
                                                  else if(c.myShopId == 99) {
                    	if (c.slayPoints >= TotPrice2) {
    						if (c.getItems().freeSlots() > 0) {
    							//buyDelay = System.currentTimeMillis();
    							c.slayPoints -= 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 Slayer Points.");
    						break;
    					}
                    }
    Reply With Quote  
     

  8. #8  
    Why you reading this?

    LoveandPower's Avatar
    Join Date
    Sep 2010
    Posts
    2,166
    Thanks given
    907
    Thanks received
    288
    Rep Power
    390
    show us Toprice2 in shopassistant.java

    also, post your slayerpoint giving
    Spoiler for sig too large:


    Reply With Quote  
     

  9. #9  
    Kacey
    I Am Kacey's Avatar
    Join Date
    May 2011
    Posts
    738
    Thanks given
    243
    Thanks received
    56
    Rep Power
    19
    replace that with this under handleOtherShop method



    } else if(c.myShopId == 99) {
    if (c.slayerpoints >= getSpecialItemValue(itemID)) {
    if (c.getItems().freeSlots() > 0) {
    c.dungtokens -= getSpecialItemValue(itemID);
    c.getItems().addItem(itemID, 1);
    c.getItems().resetItems(3823);
    }
    } else {
    c.sendMessage("You don't have enough space in your inventory.");
    }
    Nothing But Love
    Attached image
    Reply With Quote  
     

  10. #10  
    Donator
    revengepk's Avatar
    Join Date
    Nov 2011
    Posts
    267
    Thanks given
    12
    Thanks received
    59
    Rep Power
    20
    You have to explain this in "noob" language. I'm brand new to Java.
    Reply With Quote  
     

Page 1 of 4 123 ... 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. slayer points reset on log out
    By x coder chase x in forum Help
    Replies: 5
    Last Post: 11-09-2011, 09:12 PM
  2. slayer points
    By x coder chase x in forum Help
    Replies: 2
    Last Post: 11-06-2011, 01:05 PM
  3. Replies: 3
    Last Post: 09-02-2011, 06:37 PM
  4. [PI] Slayer Shop and Slayer Points
    By Mark in forum Help
    Replies: 2
    Last Post: 04-16-2011, 01:57 PM
  5. Slayer points
    By `simple. in forum Help
    Replies: 0
    Last Post: 07-14-2010, 11:26 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •