Thread: [Azure] Leveling up hitpoints help

Results 1 to 6 of 6
  1. #1 [Azure] Leveling up hitpoints help 
    Registered Member
    Join Date
    Feb 2008
    Posts
    151
    Thanks given
    7
    Thanks received
    4
    Rep Power
    33
    Well I've been fooling around on Azure, and figured out how to add experience per hit, like every other rsps. My problem is whenever it adds exp to HP and I'm missing health it doesn't really add any exp and just tells me I've reached the same level. Anyone know how to fix?
    Quote Originally Posted by HardStyle View Post
    Na all the nub owners are like Z0mG!!! 200 playerz!!! my server r da beast!
    Funny
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2008
    Posts
    151
    Thanks given
    7
    Thanks received
    4
    Rep Power
    33
    bump
    Quote Originally Posted by HardStyle View Post
    Na all the nub owners are like Z0mG!!! 200 playerz!!! my server r da beast!
    Funny
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2008
    Posts
    151
    Thanks given
    7
    Thanks received
    4
    Rep Power
    33
    bump. Nobody can help me out?
    Quote Originally Posted by HardStyle View Post
    Na all the nub owners are like Z0mG!!! 200 playerz!!! my server r da beast!
    Funny
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jan 2008
    Age
    31
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    To fix the same level up message thing if I am reading that correct then replace your addExp method in Skill.java with this one:

    Code:
    public void addExp(int skill, int xp) {
    		if (exp[skill] < MAX_EXP) {
    			int oldLevel = getLevelForXP(exp[skill] + 1);
    			exp[skill] += xp;
    			if (oldLevel < getLevelForXP(exp[skill] + 1)) {
    				level[skill] = getLevelForXP(exp[skill] + 1);
    				player.setAppearanceUpdateRequired(true);
    				for (Player players : World.getPlayers()) {
    					if (players == null)
    						continue;
    					players.getActionSender().sendStillGraphic(199,
    							player.getPosition(), 0);
    				}
    				sendLevelUpMessage(skill);
    			}
    		}
    		refresh(skill);
    	}
    Let me know if that worked.

    Explain the other stuff better? I'm confused.
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Registered Member
    Join Date
    Feb 2008
    Posts
    151
    Thanks given
    7
    Thanks received
    4
    Rep Power
    33
    Quote Originally Posted by BFMV View Post
    To fix the same level up message thing if I am reading that correct then replace your addExp method in Skill.java with this one:

    Code:
    public void addExp(int skill, int xp) {
    		if (exp[skill] < MAX_EXP) {
    			int oldLevel = getLevelForXP(exp[skill] + 1);
    			exp[skill] += xp;
    			if (oldLevel < getLevelForXP(exp[skill] + 1)) {
    				level[skill] = getLevelForXP(exp[skill] + 1);
    				player.setAppearanceUpdateRequired(true);
    				for (Player players : World.getPlayers()) {
    					if (players == null)
    						continue;
    					players.getActionSender().sendStillGraphic(199,
    							player.getPosition(), 0);
    				}
    				sendLevelUpMessage(skill);
    			}
    		}
    		refresh(skill);
    	}
    Let me know if that worked.

    Explain the other stuff better? I'm confused.
    That did indeed work. I was saying it would completely heal me, but it fixed that as well. Thanks.
    Quote Originally Posted by HardStyle View Post
    Na all the nub owners are like Z0mG!!! 200 playerz!!! my server r da beast!
    Funny
    Reply With Quote  
     

  7. #6  
    Registered Member

    Join Date
    Jan 2008
    Age
    31
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    Quote Originally Posted by Arcobaleno View Post
    That did indeed work. I was saying it would completely heal me, but it fixed that as well. Thanks.
    Alright, great!
    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. Hitpoints
    By Benel in forum Help
    Replies: 5
    Last Post: 11-25-2010, 03:43 AM
  2. Hitpoints bar
    By x kasparr x in forum Help
    Replies: 0
    Last Post: 12-03-2009, 06:34 AM
  3. npc hitpoints
    By austin_gct in forum Help
    Replies: 1
    Last Post: 10-24-2009, 03:45 PM
  4. [508] Hitpoints over 99
    By Himplx in forum Help
    Replies: 4
    Last Post: 05-05-2009, 11:13 AM
  5. [525]Hitpoints bar.
    By Extea in forum Help
    Replies: 13
    Last Post: 04-10-2009, 11:59 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
  •