Nice mate ill test it.
It works. rep++
|
|

removing everything i have ever posted cause you"re all retarded k?
Nice mate ill test it.
It works. rep++
Last edited by ill pk ur as; 09-07-2008 at 08:30 PM. Reason: Double posting is not allowed!

There is something wrong with it: It will always hit 0 on first hit
Wow. I had to figure this out for RS2E, added specs, but dds was jacked up. Fixed that, but I couldnt get it to make the hits do different dmgs so I'm gunna go over this later and post back.
it works good job
Hits 0 for me on one of the hits

playerhit mask is 20
Code:protected void appendHitUpdate2(Stream str) { try { str.writeByte(hitDiff2); // What the perseon got 'hit' for if (hitDiff2 > 0 && newhptype == false && poisondmg == false) { str.writeByteS(1); // 0: red hitting - 1: blue hitting } else if (hitDiff2 > 0 && poisondmg == true) { str.writeByteS(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange } else if (hitDiff2 > 0 && newhptype == true) { str.writeByteS(hptype); // 0: red hitting - 1: blue hitting } else { str.writeByteS(0); // 0: red hitting - 1: blue hitting } NewHP = (playerLevel[playerHitpoints] - hitDiff2); if (NewHP <= 0) { NewHP = 0; IsDead = true; } hptype = 1; str.writeByte(NewHP); // Their current hp, for HP bar str.writeByteC(getLevelForXP(playerXP[playerHitpoints])); // Their max hp, for HP bar poisondmg = false; } catch (Exception e) { e.printStackTrace(); } }

Thanks for that shamon rep+
| « Maintaining a 'respectable' server | How To Add A Reputation System! :ninja: » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |