Thread: Hitpoints Updating

Results 1 to 5 of 5
  1. #1 Hitpoints Updating 
    Extreme Donator Hitpoints Updating Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    I am having this yell problem. When I yell it only yells the first word after the yell command. After I put a space it is ignored. I know it is something simple and I am overlooking it.


    (Click the banner to begin your adventure)

    Introduction:


    Estrania is a 317 Runescape private server which strives for perfection, using the most effective system, and even driven handlers our game play is as smooth as it can possibly be. Our server is full multi-threaded, Countless hours writing content, but we surely also do spend a lot of time in performance boosting our server, so it can handle large amounts of players. We're new, however rapidly growing. Enjoy the pictures!

    Media:








    Features:

    - Stable economy.
    - Fully Working dwarf multicannon
    - Perfectly working Hunter
    - Perfect combat
    - Revenants
    - 15+ bosses including Nex, Corporal beast, tormented demons and many others.
    - Four custom quests.
    - Full farming
    - Clan system with complete management(promoting, demoting, kicking, banning etc...)
    - Dicing & Other Gambling Games
    - Summoning with all familiars
    - Newest/old hit marks (Can be toggled in the option interface)
    - Glacors + Steadfast, Gaiven and Ragefire boots
    - 5 different slayer masters covering over 96 different Slayer monsters.
    - Full pest control
    - Full Castle Wars
    - Full duel arena
    - Abbysal whip vine
    - Pk points System
    - Killstreak system
    - Lottery
    - Hiscores
    - Perfect Ancient Curses.
    - Perfect korasi sword.
    - Slayer helm fully working
    - Completionist cape and Tokhaar-Kal cape
    - Overloads, prayer renewals, recover special potion and more.
    - All special attacks from ags to Dragon Pickaxe fully working.
    - Working renewal, augury & rigor & ring of vigor prayers
    - All npcs have a good variety of drops.
    - Woodcutting trees & mining ores respawn.
    - Advanced teleporting system with jewelry.
    - Vote4Reward
    - Active Community with professional forums..
    - Fully working abyss plus rune crafting pouches.
    - Enormous variety of places where you can train skills & combat.
    - Perfect Switching.
    - Regular community events & drop parties.
    - Bank pins



    We hope to see you online soon!

    Reply With Quote  
     

  2. #2  
    Official
    RaddTech LLC's Avatar
    Join Date
    Sep 2010
    Age
    27
    Posts
    418
    Thanks given
    39
    Thanks received
    48
    Rep Power
    36
    Quote Originally Posted by Maxxi View Post
    Instead of my the victim being hit by the attacker and the victim's HP decreasing, the victims HP stays full but the attackers gets dealt the damage. I know I am simply overlooking something.



    Code:
    	/**
    	 * Hit Update
    	 **/
    	private static void appendHitUpdate(Stream str) {
    		str.writeByte(getHitDiff());
    		str.writeByte((byte) (getHitDiff() > 0 ? 1 : 0)); 
    		if (playerLevel[3] <= 0) {
    			playerLevel[3] = 0;
    			isDead = true;
    		}
    		str.writeByte(hitIcon); 
    		str.writeByteC(playerLevel[3]);
    		str.writeByteS(getLevelForXP(playerXP[3]));
    	}
    	private static void appendHitUpdate2(Stream str) {
    		str.writeByte(hitDiff2);
    		str.writeByte((byte) (hitDiff2 > 0 ? 1 : 0)); 
    		if (playerLevel[3] <= 0) {
    			playerLevel[3] = 0;
    			isDead = true;
    		}
    		str.writeByte(hitIcon2); 
    		str.writeByteC(playerLevel[3]);
    		str.writeByteS(getLevelForXP(playerXP[3]));
    	}

    Code:
    	public void handleHitMask(int damage, int mask, int icon) {
    		if (!hitUpdateRequired) {
    			hitUpdateRequired = true;
    			hitDiff = damage;
    			hitMask = mask;
    			hitIcon = icon;
    		} else if (!hitUpdateRequired2) {
    			hitUpdateRequired2 = true;
    			hitDiff2 = damage;
    			hitMask2 = mask;
    			hitIcon2 = icon;
    		}
    		updateRequired = true;
    	}
    Is this happening just when attacking NPCs, players, or both?
    Rise, a MMORPG where you can wager REAL MONEY $$$$

    Coming soon, January 1st, 2019
    http://www.rise-game.com/

    https://www.youtube.com/watch?v=mJ85L3kfUVg

    Spoiler for Dark Rage:
    Attached image
    Reply With Quote  
     

  3. #3  
    Extreme Donator Hitpoints Updating Market Banned



    Join Date
    Dec 2010
    Age
    25
    Posts
    6,060
    Thanks given
    1,692
    Thanks received
    1,238
    Rep Power
    1765
    Quote Originally Posted by Nick_ View Post
    Is this happening just when attacking NPCs, players, or both?
    only tested players.
    Reply With Quote  
     

  4. #4  
    Official
    RaddTech LLC's Avatar
    Join Date
    Sep 2010
    Age
    27
    Posts
    418
    Thanks given
    39
    Thanks received
    48
    Rep Power
    36
    Quote Originally Posted by Maxxi View Post
    only tested players.
    check it for Npcs, and if it doesn't happen for them post your attack method for players
    Rise, a MMORPG where you can wager REAL MONEY $$$$

    Coming soon, January 1st, 2019
    http://www.rise-game.com/

    https://www.youtube.com/watch?v=mJ85L3kfUVg

    Spoiler for Dark Rage:
    Attached image
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    CombatAssistant.java

    ApplyMeleeDamage()

    Look for something like

    Code:
    c.handleHitMask(damage,0,0);
    and change it to

    Code:
    o.handleHitMask(damage,0,0);
    So basically you probably have the opponent and attacker clients switched when updating hits. I would assume.

    Make sure you set hitupdateRequired to true.

    Its probably like that for applyNpcDamage() ect, I'm sure you can figure out the rest
    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 bar update
    By Ivo in forum Help
    Replies: 2
    Last Post: 03-12-2013, 11:57 AM
  2. Hitpoints not updating
    By ipkerzi in forum Help
    Replies: 3
    Last Post: 11-25-2011, 12:49 AM
  3. Small hitpoint update fix :)
    By OFF YOUR TITS in forum Snippets
    Replies: 6
    Last Post: 11-21-2011, 09:52 PM
  4. Updating Hitpoints
    By Note in forum Snippets
    Replies: 11
    Last Post: 09-17-2009, 02:17 PM
  5. Hitpoints update mask
    By Deadly Uzi in forum Help
    Replies: 0
    Last Post: 04-19-2009, 09:43 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
  •