Thread: [PI] How to create a useful amulet that gives donators double experience

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1 [PI] How to create a useful amulet that gives donators double experience 
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    156
    Rep Power
    835
    Difficulty: 0/10
    Knowledge needed: How to located a file, Copy/Paste
    Extra Information: If you want it to be x2 exp whether they are a donator or not while wearing the amulet, post below and i'll add how to do that.

    Step One: Locate and Open PlayerAssistant.java

    Step Two: In PlayerAssistant.java search for the following
    Code:
    public boolean addSkillXP(int amount, int skill){
    Step Three: After locating the method, replace it with this one
    Code:
    	public boolean addSkillXP(int amount, int skill){
    	if (c.xpLock == true || c.Jail == true) {
    		return false;
    	}
    		if (amount+c.playerXP[skill] < 0 || c.playerXP[skill] > 200000000) {
    			if(c.playerXP[skill] > 200000000) {
    				c.playerXP[skill] = 200000000;
    			}
    			return false;
    		}
    		if (c.isDonator == 1 && c.playerEquipment[c.playerAmulet] == 295) {
    			amount *= Config.SERVER_EXP_BONUS * 2;
    		} else {
    			amount *= Config.SERVER_EXP_BONUS;
    		}
    		int oldLevel = getLevelForXP(c.playerXP[skill]);
    		c.playerXP[skill] += amount;
    		if (oldLevel < getLevelForXP(c.playerXP[skill])) {
    			if (c.playerLevel[skill] < c.getLevelForXP(c.playerXP[skill]) && skill != 3 && skill != 5)
    				c.playerLevel[skill] = c.getLevelForXP(c.playerXP[skill]);
    			levelUp(skill);
    			c.gfx100(199);
    			requestUpdates();
    		}
    		setSkillLevel(skill, c.playerLevel[skill], c.playerXP[skill]);
    		refreshSkill(skill);
    		return true;
    	}
    After doing all of the above, you should now have an amulet that gives Donators double experience. The amulet ID is "295" and is called Glariel's Amulet, feel free to change it if you like. Please post below your feedback and let me know if you would like me to also display the code that gives ANYONE double experience while wearing the amulet, not just donators or if you don't know how to change what amulet gives the experience.

    I know this is a very simple guide, and is pretty much common sense but just helping out those who need it. Thanks
    [Only registered and activated users can see links. ]

    Spoiler for Respect for the Truest:

    [Only registered and activated users can see links. ] GANG 4 LYFE
    Reply With Quote  
     


  2. #2  
    Member

    Bells's Avatar
    Join Date
    Dec 2008
    Posts
    3,797
    Thanks given
    599
    Thanks received
    1,449
    Rep Power
    4098
    Another great release by Kickyamom.
    Good job man.
    Reply With Quote  
     

  3. #3  
    Registered Member
    LunarKnight's Avatar
    Join Date
    Jan 2009
    Age
    29
    Posts
    676
    Thanks given
    7
    Thanks received
    29
    Rep Power
    87
    Should work, but not all skills are handled through an XP multiplier in Config.
    Even if they should be ;]
    Reply With Quote  
     

  4. #4  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    156
    Rep Power
    835
    If the skill isn't handled with AddSkillXp then whoever coded the skill needs to change it, because that's retarded. I have all of my skills experience gain using AddSkillXp.
    [Only registered and activated users can see links. ]

    Spoiler for Respect for the Truest:

    [Only registered and activated users can see links. ] GANG 4 LYFE
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2012
    Posts
    129
    Thanks given
    37
    Thanks received
    4
    Rep Power
    23
    meh. Most people should be able to do this on their own.
    Reply With Quote  
     

  6. #6  
    Registered Member
    LunarKnight's Avatar
    Join Date
    Jan 2009
    Age
    29
    Posts
    676
    Thanks given
    7
    Thanks received
    29
    Rep Power
    87
    Quote Originally Posted by Kickyamom View Post
    If the skill isn't handled with AddSkillXp then whoever coded the skill needs to change it, because that's retarded. I have all of my skills experience gain using AddSkillXp.
    Exactly, but I'm saying it because bases like InsidiaX have the following skills that aren't handled with an XP Multiplier:
    Hunter, Summoning, Agility.
    It's easy to add but inb4 complaints from leechers saying it doesn't work with those skills.
    Nice tut though, should help some people.
    Reply With Quote  
     

  7. #7  
    Donator
    sam81199's Avatar
    Join Date
    Jan 2012
    Posts
    119
    Thanks given
    1
    Thanks received
    0
    Discord
    View profile
    Rep Power
    16
    this will help me im adding it as we speak ty :]
    Reply With Quote  
     

  8. #8  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    156
    Rep Power
    835
    No problem
    [Only registered and activated users can see links. ]

    Spoiler for Respect for the Truest:

    [Only registered and activated users can see links. ] GANG 4 LYFE
    Reply With Quote  
     

  9. #9  
    Donator Market Banned Market Banned

    Usaclub's Avatar
    Join Date
    Aug 2010
    Age
    25
    Posts
    512
    Thanks given
    119
    Thanks received
    37
    Rep Power
    29
    Very nice! Will use! Rep++

    My Vouches..
    Spoiler for Vouches:

    Quote Originally Posted by Benes View Post
    Very good!
    Quote Originally Posted by Jesper_ View Post
    Big vouch for you!!! Thanks for your auto donation system.
    Quote Originally Posted by Light View Post
    vouch, Bought summoning & extra. Went first and was done smoothly. Rep++
    Quote Originally Posted by Grim Line View Post
    Brought all of it. Very good trade very good guy
    Quote Originally Posted by HyBriDPvP View Post
    Vouch for this guy (I bought scripts and now i got my domain up and running with the WC maker (Rsps-HQ.com)) Ty!!!
    Quote Originally Posted by chri55w View Post
    vouch bought vote4cash, was done very quickly and payment went smooth
    Rep++ too
    thanks
    Quote Originally Posted by muporz View Post
    Vouch, bought vote4points $5, he even went first.
    Thanks .

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #10  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    156
    Rep Power
    835
    Thanks man
    [Only registered and activated users can see links. ]

    Spoiler for Respect for the Truest:

    [Only registered and activated users can see links. ] GANG 4 LYFE
    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. [562]Double Experience Ring
    By xJames in forum Snippets
    Replies: 5
    Last Post: 01-22-2011, 07:58 PM
  2. Help With Glory Amulet.
    By harraj128 in forum Help
    Replies: 8
    Last Post: 06-07-2009, 07:27 PM
  3. Amulet of Glory
    By Core in forum Help
    Replies: 0
    Last Post: 12-12-2008, 03:25 AM
  4. Amulet enchanting
    By Proffesor Oak in forum Tutorials
    Replies: 3
    Last Post: 05-06-2008, 11:49 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
  •