Thread: [PI V4] Hitmarks

Results 1 to 7 of 7
  1. #1 [PI V4] Hitmarks 
    Registered Member OptimusHaley's Avatar
    Join Date
    Sep 2012
    Posts
    132
    Thanks given
    16
    Thanks received
    5
    Rep Power
    11
    Alright, so I had this fixed a while but I went to go change something and I noticed that it didn't work anymore..So I went back to delete what I had added and It still didn't work sadly...
    I'm hoping one of you guys know what's going on.

    I'll post the files that I was editing so you can look through them and see.
    Btw, this is what I get
    http://prntscr.com/jnp7x (No Hitmarks show. I'm not sure if it's for PVP too or not.


    package server.model.players; import java.util.LinkedList; import java.util. - Pastebin.com (Client.Java Server)

    package server.model.players; import server.Config; import server.Server; i - Pastebin.com (CombatAssistant)


    package server.model.npcs; import java.io.BufferedReader; import java.io.Fil - Pastebin.com (NPCHandler)

    package server.model.npcs; import server.Server; import server.util.Misc; i - Pastebin.com (NPC)

    // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov. // Jad home page - Pastebin.com (Client.Java Client)

    Please, if you can help me just PM me or Add me on Skype.
    Tae.Richards
    Reply With Quote  
     

  2. #2  
    Registered Member OptimusHaley's Avatar
    Join Date
    Sep 2012
    Posts
    132
    Thanks given
    16
    Thanks received
    5
    Rep Power
    11
    Bump
    Reply With Quote  
     

  3. #3  
    Enter The Dragon
    Roshi's Avatar
    Join Date
    Nov 2012
    Age
    27
    Posts
    260
    Thanks given
    4
    Thanks received
    19
    Rep Power
    4
    do u have the hitmarks sprite man?
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jun 2012
    Posts
    1,063
    Thanks given
    119
    Thanks received
    199
    Rep Power
    0
    AppendHitDamage method. If you had a backup, change that method with your old one.
    You probably tried adding Torva effects or something, just a guess.
    Reply With Quote  
     

  5. #5  
    Registered Member OptimusHaley's Avatar
    Join Date
    Sep 2012
    Posts
    132
    Thanks given
    16
    Thanks received
    5
    Rep Power
    11
    Yeah, as I stated I had it working before. Hitmarks, Fading, everything. & Alright thanks. I'll look at it. Where exactly is "AppendHitDamage".
    I'm sorry for being such a noob..I'm new to Java and trying to learn it Haha.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jun 2012
    Posts
    1,063
    Thanks given
    119
    Thanks received
    199
    Rep Power
    0
    Post it here.
    Reply With Quote  
     

  7. #7  
    Registered Member OptimusHaley's Avatar
    Join Date
    Sep 2012
    Posts
    132
    Thanks given
    16
    Thanks received
    5
    Rep Power
    11
    Player.Java
    Code:
     	public void appendHitUpdate(Stream str) {
    		synchronized(this) {
    			str.writeByte(getHitDiff()); // What the perseon got 'hit' for
    			if (poisonMask == 1) {
    				str.writeByteA(2);
    			} else if (getHitDiff() > 0) {
    				str.writeByteA(1); // 0: red hitting - 1: blue hitting
    			} else {
    				str.writeByteA(0); // 0: red hitting - 1: blue hitting
    			}
    			if (playerLevel[3] <= 0) {
    				playerLevel[3] = 0;
    				isDead = true;	
    			}
    			str.writeByte(CIcon); // The combat icon 
    			str.writeByteC(playerLevel[3]); // Their current hp, for HP bar
    			str.writeByte(getLevelForXP(playerXP[3])); // Their max hp, for HP bar
    		}
    	}
    	
    	
    	public void appendHitUpdate2(Stream str) {
    		synchronized(this) {
    			str.writeByte(hitDiff2); // What the perseon got 'hit' for
    			if (poisonMask == 2) {
    				str.writeByteS(2);
    				poisonMask = -1;
    			} else if (hitDiff2 > 0) {
    				str.writeByteS(1); // 0: red hitting - 1: blue hitting
    			} else {
    				str.writeByteS(0); // 0: red hitting - 1: blue hitting
    			}
    			if (playerLevel[3] <= 0) {
    				playerLevel[3] = 0;
    				isDead = true;	
    			}
    			str.writeByte(CIcon); // The combat icon 
    			str.writeByte(playerLevel[3]); // Their current hp, for HP bar
    			str.writeByteC(getLevelForXP(playerXP[3])); // Their max hp, for HP bar
    		}
    	}
    NPC.Java
    Code:
    	public void appendHitUpdate(Stream str) {		
    		if (HP <= 0) {
    			isDead = true;
    		}
    		str.writeByteC(hitDiff); 
    		if (hitDiff > 0) {
    			str.writeByteS(1); 
    		} else {
    			str.writeByteS(0); 
    		}
    		//HP Bar Fix
    		str.writeByte(CIcon); // The combat icon 
    		str.writeByteS(Misc.getCurrentHP(HP, MaxHP, 100));
    		str.writeByteC(100);	
    	}
    	
    	public int hitDiff2 = 0;
    	public boolean hitUpdateRequired2 = false;
    	public int CIcon = 0;
    	
    	public void appendHitUpdate2(Stream str) {		
    		if (HP <= 0) {
    			isDead = true;
    		}
    		str.writeByteA(hitDiff2); 
    		if (hitDiff2 > 0) {
    			str.writeByteC(1); 
    		} else {
    			str.writeByteC(0); 
    		}	
    		str.writeByte(CIcon); // The combat icon 
    		str.writeByteA(HP); 
    		str.writeByte(MaxHP); 	
    	}
    Also, I'm using Project Insanity Enhanced V4
    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. Hitmarks
    By hjnjnknlknkl in forum Help
    Replies: 1
    Last Post: 12-06-2011, 01:38 AM
  2. Hitmarks
    By hjnjnknlknkl in forum Requests
    Replies: 2
    Last Post: 12-05-2011, 11:16 PM
  3. Hitmarks
    By Mark in forum Buying
    Replies: 5
    Last Post: 09-10-2011, 08:20 PM
  4. 0 on hitmarks
    By Ty13r in forum Help
    Replies: 0
    Last Post: 09-03-2011, 12:51 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
  •