Thread: [PI]Donator Cape gives x2 xp Help[PI]

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PI]Donator Cape gives x2 xp Help[PI] 
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    I want to make so the Donator cape gives 2x xp but it just wont work. The donator cape is working with the anime and only donors can wear it. The code that im using is:

    Code:
    public boolean donatorcape() {
    		if(playerEquipment[playerCape] == 12742); {
    			Config.SERVER_EXP_BONUS = 2;
    		}
    		return false;
    	}
    But it wont work... Anyone got any ideas?
    Source: Solitude
    Reply With Quote  
     

  2. #2  
    Extreme Donator [PI]Donator Cape gives x2 xp Help[PI] Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    Code:
    	public boolean donatorcape() {
    		if (playerEquipment[playerRing] == 12742) {
    			Config.SERVER_EXP_BONUS = 2;
    		}
    		return false;
    	}
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    I tried this but the only thing you changed was playerRing? What does that do? Didnt work btw
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Bump
    Reply With Quote  
     

  5. #5  
    Astrect Developer

    Join Date
    Oct 2008
    Age
    28
    Posts
    1,936
    Thanks given
    369
    Thanks received
    212
    Rep Power
    591
    Try this maybe:
    Code:
    public boolean donatorCape() {
    		if (playerEquipment[playerCape] == 12742) {
    			Config.SERVER_EXP_BONUS * 2;
    		}
    		return false;
    	}
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Nope its not an statement
    Reply With Quote  
     

  7. #7  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Code:
     if(c.playerEquipment[12] == 15013) {
     amount *= Config.SERVER_EXP_BONUS+1.0;
     }
    In PlayerAssistant under addSkillXP, that's a double experience ring.
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Mar 2011
    Posts
    1,226
    Thanks given
    245
    Thanks received
    475
    Rep Power
    294
    Add this in PlayerAssistant

    Code:
    public double experienceMultiplier;
    
    public void checkMultiplier() {
    		if (playerEquipment[playerCape] == 12742) {
    		experienceMultiplier = 2.0;
    		return;
    		}
    		experienceMultiplier = 1.0;
    	}
    addSkillXP in PlayerAssistant method, below this:

    Code:
    	public boolean addSkillXP(int amount, int skill) {
    add:

    Code:
    checkMultiplier(); amount *= experienceMultiplier;
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Apr 2012
    Posts
    33
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Ugh it wont fucking work...
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,760
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    can't modify a final statement..
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    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: 119
    Last Post: 01-19-2013, 01:35 PM
  2. Replies: 3
    Last Post: 05-29-2012, 06:39 AM
  3. [Solitude] How to make a more stable PI?
    By adxoxocrisp in forum Help
    Replies: 1
    Last Post: 05-26-2012, 07: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
  •