Thread: ::pure

Results 1 to 7 of 7
  1. #1 ::pure 
    Registered Member
    Join Date
    Feb 2011
    Age
    28
    Posts
    111
    Thanks given
    9
    Thanks received
    3
    Rep Power
    1
    I can continually do :ure over and over and get exp. I have tried to setup a puremaster = 0 or =1 and nothing i have done works.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    under the pure command did you add

    Code:
    c.puremaster = 1;
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Feb 2011
    Age
    28
    Posts
    111
    Thanks given
    9
    Thanks received
    3
    Rep Power
    1
    Yes.
    Reply With Quote  
     

  5. #4  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    can you post your pure command?would make it easier for me
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member
    Join Date
    Feb 2011
    Age
    28
    Posts
    111
    Thanks given
    9
    Thanks received
    3
    Rep Power
    1
    if (playerCommand.startsWith("pure") && c.puremaster == 0) {
    int i = 0;
    c.getPA().addSkillXP((273742), 0);
    c.getPA().addSkillXP((273742), 2);
    c.getPA().addSkillXP((273742), 3);
    c.getPA().addSkillXP((273742), 4);
    c.getPA().addSkillXP((273742), 6);
    c.playerXP[3] = c.getPA().getXPForLevel(99)+5;
    c.playerLevel[3] = c.getPA().getLevelForXP(c.playerXP[3]);
    c.getPA().refreshSkill(3);
    c.puremaster = 1;
    }
    Idk what the problem is
    Reply With Quote  
     

  8. #6  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    It could be alot cleaner,but since i couldnt find the problem i had to do it like this

    Code:
    if (playerCommand.equalsIgnoreCase("pure")) {
    	 if (c.puremaster == 0) {
    		c.puremaster = 1;
    		c.getPA().addSkillXP((273742), 0);
    		c.getPA().addSkillXP((273742), 2);
    		c.getPA().addSkillXP((273742), 3);
    		c.getPA().addSkillXP((273742), 4);
    		c.getPA().addSkillXP((273742), 6);
    		c.playerXP[3] = c.getPA().getXPForLevel(99)+5;
    		c.playerLevel[3] = c.getPA().getLevelForXP(c.playerXP[3]);
    		c.getPA().refreshSkill(3);
    	} else if (c.puremaster == 1) {
    		c.sendMessage("You have already used this command.");
    	}
    }
    Reply With Quote  
     

  9. Thankful user:


  10. #7  
    Registered Member
    Join Date
    Feb 2011
    Age
    28
    Posts
    111
    Thanks given
    9
    Thanks received
    3
    Rep Power
    1
    Wtf? That worked. Thanks
    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. Replies: 22
    Last Post: 07-19-2010, 07:57 PM
  2. Replies: 10
    Last Post: 05-12-2010, 01:14 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
  •