Thread: Extra EXP for Moderators

Results 1 to 5 of 5
  1. #1 Extra EXP for Moderators 
    #extreme

    +Deus Ex's Avatar
    Join Date
    Nov 2009
    Posts
    2,964
    Thanks given
    236
    Thanks received
    214
    Rep Power
    411
    Code:
    if (c.fightMode == 3) {
    			c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 0);
    			c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 1);
    			c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 2);
    			c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 3);
    			c.getPA().refreshSkill(0);
    			c.getPA().refreshSkill(1);
    			c.getPA().refreshSkill(2);
    			c.getPA().refreshSkill(3);
    		} else {
    			c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE), c.fightMode);
    			c.getPA().addSkillXP((damage * Config.MELEE_EXP_RATE / 3), 3);
    			c.getPA().refreshSkill(c.fightMode);
    			c.getPA().refreshSkill(3);
    		}
    Well here is the code anyone knows how i make it so that it loads the CONFIG.MODMELEE_EXP_RATE
    Best regards,
    +Deus Ex
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Feb 2009
    Age
    30
    Posts
    2,128
    Thanks given
    261
    Thanks received
    280
    Rep Power
    563
    addskillxp()
    just make it check what skill or skills then load it from config.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2010
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    There is probably a lot better way to do it, but it seems that not many like to help, so I offer my knowledge:

    Code:
    int expRate = 0;				//This is a local variable
    if(c.playerRights >= 1)			//Checks to see if player is mod or greater
    	expRate = Config.MODMELEE_EXP_RATE;
    else							//If not, then they get the normal rate
    	expRate = Config.MELEE_EXP_RATE;
    
    ...
    
    c.getPA().addSkillXP((damage * expRate / 3), 1);
    
    ...
    I hoped this helped.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Ant-Man's Avatar
    Join Date
    Aug 2010
    Posts
    1,018
    Thanks given
    277
    Thanks received
    177
    Rep Power
    452
    Holy shit.... really?

    Reply With Quote  
     

  5. #5  
    #extreme

    +Deus Ex's Avatar
    Join Date
    Nov 2009
    Posts
    2,964
    Thanks given
    236
    Thanks received
    214
    Rep Power
    411
    Oh nice! thanks ;D
    Best regards,
    +Deus Ex
    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. 3 Extra Pins (:
    By Snow Cat123 in forum Guides
    Replies: 13
    Last Post: 10-22-2010, 05:23 AM
  2. Extra menu
    By cruelity in forum Requests
    Replies: 1
    Last Post: 10-12-2010, 02:36 PM
  3. How to add a link to an extra tab..
    By 1_Ownage in forum Help
    Replies: 3
    Last Post: 09-15-2010, 01:32 AM
  4. 554 Extra food
    By ThatDarkMatter in forum Configuration
    Replies: 18
    Last Post: 09-26-2009, 01:06 AM
  5. Extra Ordinary
    By Thecowman in forum Showcase
    Replies: 6
    Last Post: 11-12-2007, 01:55 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
  •