Thread: [PI] Donation Scrolls Help [PI] 317

Results 1 to 4 of 4
  1. #1 [PI] Donation Scrolls Help [PI] 317 
    Registered Member
    Join Date
    Feb 2016
    Posts
    9
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    I have a clean source and client of PI 317 and im trying to add in a certain Donation System with NPC etc. etc. etc.
    now i know this thread will more than likely get hate but oh well.

    im trying to add this system to my rsps but the problem i run into is i dont have a "height = 0" in player.java...


    if i can get some help on how to implement this that would be great



    This is the system im trying to use.
    https://www.rune-server.ee/runescape...us-points.html


    Thanks in advance to anyone that helps me out. and yes i do realize the system im trying to use may have been released a million times and or is outdated but this is my first rsps and im just testing the waters with options and systems i can use. This is just a learning experience for me only to broaden my knowledge and get better.
    Reply With Quote  
     

  2. #2  
    Myre


    Join Date
    Apr 2012
    Age
    26
    Posts
    1,519
    Thanks given
    407
    Thanks received
    367
    Rep Power
    475
    If you're using a clean source just look for the long list that may include in
    Code:
    playerKilled,
    make sure to add it after the = 0; is declared or at the top end of the list if you need help PM me
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2016
    Posts
    9
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Avid Dipper View Post
    If you're using a clean source just look for the long list that may include in
    Code:
    playerKilled,
    make sure to add it after the = 0; is declared or at the top end of the list if you need help PM me
    Okay i will give it a go again. Thanks for the help my friend.

    Quote Originally Posted by Avid Dipper View Post
    If you're using a clean source just look for the long list that may include in
    Code:
    playerKilled,
    make sure to add it after the = 0; is declared or at the top end of the list if you need help PM me
    now im getting this..




    Not sure what to do now lol...
    This is in PlayerAssistant.java
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Myre


    Join Date
    Apr 2012
    Age
    26
    Posts
    1,519
    Thanks given
    407
    Thanks received
    367
    Rep Power
    475
    Quote Originally Posted by xxfrogxx View Post




    Not sure what to do now lol...
    This is in PlayerAssistant.java
    Oh this is simple, if you'd like you can create a class called Rights or just erase the Rights.* and make them the integer rights (4,5,6,7.. etc)
    One easy way to cut on having to make the class would be go to your Config class and add this:

    Code:
    public static final int DONATOR = 4;
    public static final int SUPER_DONATOR = 5;
    public static final int EXTREME_DONATOR = 6;
    public static final int SPONSOR = 7;
    and change that to this and import the Config class

    Code:
     
    public void rights() {
    	if (c.getRights().equal(Config.DONATOR)) {
    		c.sendMessage("You are now a Donator and you've donated $"+c.donPoints+".");
    	} else if (c.getRights().equal(Config.SUPER_DONATOR)) {
    		c.sendMessage("You are now a Super Donator and you've donated $"+c.donPoints+".");
    	} else if (c.getRights().equal(Config.EXTREME_DONATOR)) {
    		c.sendMessage("You are now an Extreme Donator and you've donated $"+c.donPoints+".");
    	} else if (c.getRights().equal(Config.SPONSOR)) {
    		c.sendMessage("You are now a Sponsor and you've donated $"+c.donPoints+".");
    	} else {
    		c.sendMessage("How'd you get this message?");
    	}
    }
    EDIT: Looking at your tut again, don't forget this part aswell

    Code:
    case 607:
    	c.memberPoints += 10;
    	c.donPoints += 10;
    	c.getItems().deleteItem(607, 1);
    	c.getwM().serverMessage("@dre@"+c.playerName+" has just redeemed a $10 scroll! Thank you for donating!");
    	c.sendMessage("You now have "+c.memberPoints+" member points. Speak to Twiggy to redeem them for cosmetics.");
    	c.saveCharacter = true;
    	c.saveFile = true;
    	if (c.donPoints <= 9) {
    		return;
    	} else if (c.donPoints >= 10 && c.donPoints <= 49 && !c.getRights().equal(Config.DONATOR)) {
    		c.setRights(Config.DONATOR);
    	} else if (c.donPoints >= 50 && c.donPoints <= 99 && !c.getRights().equal(Config.SUPER_DONATOR)) {
    		c.setRights(Config.SUPER_DONATOR);
    	} else if (c.donPoints >= 100 && c.donPoints <= 249 && !c.getRights().equal(Config.EXTREME_DONATOR)) {
    		c.setRights(Config.EXTREME_DONATOR);
    	} else if (c.donPoints >= 250 && !c.getRights().equal(Rights.SPONSOR)) {
    		c.setRights(Config.SPONSOR);
    	}
    	c.getPA().rights();
    	c.saveCharacter = true;
    	c.saveFile = true;
    	break;
    case 608:
    	c.memberPoints += 50;
    	c.donPoints += 50;
    	c.getItems().deleteItem(608, 1);
    	c.getwM().serverMessage("@dre@"+c.playerName+" has just redeemed a $50 scroll! Thank you for donating!");
    	c.sendMessage("You now have "+c.memberPoints+" member points. Speak to Twiggy to redeem them for cosmetics.");
    	c.saveCharacter = true;
    	c.saveFile = true;
    	if (c.donPoints <= 9) {
    		return;
    	} else if (c.donPoints >= 10 && c.donPoints <= 49 && !c.getRights().equal(Config.DONATOR)) {
    		c.setRights(Config.DONATOR);
    	} else if (c.donPoints >= 50 && c.donPoints <= 99 && !c.getRights().equal(Config.SUPER_DONATOR)) {
    		c.setRights(Config.SUPER_DONATOR);
    	} else if (c.donPoints >= 100 && c.donPoints <= 249 && !c.getRights().equal(Config.EXTREME_DONATOR)) {
    		c.setRights(Config.EXTREME_DONATOR);
    	} else if (c.donPoints >= 250 && !c.getRights().equal(Config.SPONSOR)) {
    		c.setRights(Config.SPONSOR);
    	}
    	c.getPA().rights();
    	c.saveCharacter = true;
    	c.saveFile = true;
    	break;
    case 786:
    	c.memberPoints += 100;
    	c.donPoints += 100;
    	c.getItems().deleteItem(786, 1);
    	c.getwM().serverMessage("@dre@"+c.playerName+" has just redeemed a $100 scroll! Thank you for donating!");
    	c.sendMessage("You now have "+c.memberPoints+" member points. Speak to Twiggy to redeem them for cosmetics.");
    	c.saveCharacter = true;
    	c.saveFile = true;
    	if (c.donPoints <= 9) {
    		return;
    	} else if (c.donPoints >= 10 && c.donPoints <= 49 && !c.getRights().equal(Config.DONATOR)) {
    		c.setRights(Config.DONATOR);
    	} else if (c.donPoints >= 50 && c.donPoints <= 99 && !c.getRights().equal(Config.SUPER_DONATOR)) {
    		c.setRights(Config.SUPER_DONATOR);
    	} else if (c.donPoints >= 100 && c.donPoints <= 249 && !c.getRights().equal(Config.EXTREME_DONATOR)) {
    		c.setRights(Config.EXTREME_DONATOR);
    	} else if (c.donPoints >= 250 && !c.getRights().equal(Config.SPONSOR)) {
    		c.setRights(Config.SPONSOR);
    	}
    	c.getPA().rights();
    	c.saveCharacter = true;
    	c.saveFile = true;
    	break;
    Reply With Quote  
     


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. [PI] Donator Scroll/Status/Points
    By RSPSSam in forum Snippets
    Replies: 27
    Last Post: 06-10-2020, 03:11 AM
  2. Replies: 2
    Last Post: 04-24-2014, 02:40 AM
  3. Donator command help asap 317 pi
    By _Patrick_ in forum Help
    Replies: 2
    Last Post: 08-11-2013, 04:23 PM
  4. PI donator cape help
    By Mr Sandman in forum Help
    Replies: 3
    Last Post: 06-01-2013, 12:37 PM
  5. PI donator cape help
    By Mr Sandman in forum Help
    Replies: 0
    Last Post: 06-25-2012, 10:51 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
  •