Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Damage Rebound Fix

Experienced Elementalist
Joined
Aug 24, 2012
Messages
280
Reaction score
101
Some people have been wondering how to fix teleport mastery and those body skills that don't do damage.

Just add the fix below and it should work 100%. It sure did for me.

Find this in DamageParse.java

Code:
/* 1076 */     lea.skip(9);
  switch (ret.skill) {

Add this under it.

Code:
 case 11101007: // Power Reflection
      case 11101006: // Dawn Warrior - Power Reflection
      case 21101003: // body pressure
       case 2111007:// tele mastery skills
            case 2211007:
            case 12111007:
            case 22161005:
            case 32111010:    
            case 2311007: // bishop tele mastery
                lea.skip(1); // charge = 0
                ret.charge = 0;
                ret.display = lea.readUShort();
                lea.skip(4);// dunno
                ret.speed = (byte)lea.readShort();
                ret.lastAttackTickCount = lea.readInt();
                lea.skip(4);// looks like zeroes
                ret.allDamage = new ArrayList();
                for (int i = 0; i < ret.targets; i++) {
                    int oid = lea.readInt();
                    lea.skip(18);
                    List allDamageNumbers = new ArrayList();
                        for (int j = 0; j < ret.hits; j++) {
                            int damage = lea.readInt();
                            allDamageNumbers.add(new Pair(Integer.valueOf(damage), Boolean.valueOf(false)));
                        }
                    lea.skip(4);
                    ret.allDamage.add(new AttackPair(Integer.valueOf(oid).intValue(), allDamageNumbers));
                }
                ret.position = lea.readPos();
                return ret;
 
Experienced Elementalist
Joined
Aug 24, 2012
Messages
280
Reaction score
101
does it also fix Binding Darkness for demon slayer :)

As far as I know, Binding Darkness isn't a Damage Rebound Skill. It's an actual attack skill that has effects similar to Magic crash.

Binding Darkness, however, should already deal damage.
 
Back
Top