Thread: ruse hp glitch

Results 1 to 4 of 4
  1. #1 ruse hp glitch 
    Donator

    H1N1's Avatar
    Join Date
    Oct 2009
    Posts
    793
    Thanks given
    25
    Thanks received
    61
    Rep Power
    153
    Hello, Every time I attack a npc. and stop to eat my food the npc restore it's health back to full
    Attached image
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    Haven't worked with ruse in a while, but that's a hilarious bug if I do say so myself. Anyways, let's narrow down the issue. Are you getting errors when this happens? Is it every NPC? I assume this isn't the basic Ruse source, but in one of my ruse sources, I see a heal function that is declared in Npc.java, check if that's called in places it shouldn't be.

    Reply With Quote  
     

  3. #3  
    Donator

    H1N1's Avatar
    Join Date
    Oct 2009
    Posts
    793
    Thanks given
    25
    Thanks received
    61
    Rep Power
    153
    Quote Originally Posted by Falconpunch View Post
    Haven't worked with ruse in a while, but that's a hilarious bug if I do say so myself. Anyways, let's narrow down the issue. Are you getting errors when this happens? Is it every NPC? I assume this isn't the basic Ruse source, but in one of my ruse sources, I see a heal function that is declared in Npc.java, check if that's called in places it shouldn't be.
    Every boss npc i came across of, and no error in console.
    Attached image
    Reply With Quote  
     

  4. #4  
    Extreme Donator


    Join Date
    Aug 2016
    Posts
    597
    Thanks given
    109
    Thanks received
    96
    Rep Power
    254
    As Falcon said i'd check out the sequence method in NPC.java

    Code:
    public void sequence() {
    	getCombatBuilder().process();
    	/**
    	 * HP restoration
    	 */
    	if(constitution < defaultConstitution) {
    		if(!isDying) {
    			if(getLastCombat().elapsed((id == 13447 || id == 3200 ? 50000 : 5000)) && !getCombatBuilder().isAttacking() && getLocation() != Location.PEST_CONTROL_GAME && getLocation() != Location.DUNGEONEERING) {
    				setConstitution(constitution + (int)(defaultConstitution * 0.1));
    				if(constitution > defaultConstitution)
    					setConstitution(defaultConstitution);
    			}
    		}
    	}
    }
    if yours is similar to mine, then add the npc id next to Nex and Chaos ele and it should change the health restore from 5 seconds to 50 seconds. Maybe lol
    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. HP GLITCH DELTA (REP+ if its fixed :S)
    By Georgio in forum Help
    Replies: 27
    Last Post: 09-09-2009, 10:21 PM
  2. Npc Hp Glitch
    By shadow1 in forum Help
    Replies: 1
    Last Post: 07-29-2009, 12:12 PM
  3. Npc hp glitch czar
    By Skat8Much in forum Help
    Replies: 1
    Last Post: 02-07-2009, 01:58 PM
  4. [ZDR]Fixing HP Glitch
    By Draeda in forum Tutorials
    Replies: 0
    Last Post: 07-31-2008, 07:56 PM
  5. Fixing the HP Glitch
    By Riedell in forum Tutorials
    Replies: 8
    Last Post: 05-20-2008, 11:26 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
  •