Jump to content
Returning Members: Password Reset Required ×

Recommended Posts

Posted
Not really sure where to look, skill works but doesn't actually cause damage. I assumed it would be in combat manager yet I don't see any mention of it or the ID?
Posted

Not really sure where to look, skill works but doesn't actually cause damage. I assumed it would be in combat manager yet I don't see any mention of it or the ID?

Which version of Redux? Couldn't find the handler. On 3.05 it does handle by type, afair it does use type 12 (Collide) and it's not handled in that version

Posted

Not really sure where to look, skill works but doesn't actually cause damage. I assumed it would be in combat manager yet I don't see any mention of it or the ID?

Which version of Redux? Couldn't find the handler. On 3.05 it does handle by type, afair it does use type 12 (Collide) and it's not handled in that version

I'm honestly not sure, it's a 5017 server I have however found the collide section

private void LaunchCollide()
       {
           try
           {
               var direction = targetUID;
               var targetLoc = new Space.Point(location.X + Common.DeltaX[direction], location.Y + Common.DeltaY[direction]);
               foreach (var t in owner.Map.QueryBox<Entity>(owner, 3))
               {
                   if (t == owner)
                       continue;
                   if (!IsValidTarget(t))
                       continue;
                   if (t.HasEffect(ClientEffect.Fly))
                       continue;
                   if ((t.Location.X == owner.Location.X && t.Location.Y == owner.Location.Y) ||
                       (t.Location.X == targetLoc.X && t.Location.Y == targetLoc.Y))
                   {
                       this.target = (Entity)t;
                       owner.X = (ushort)(owner.X + Common.DeltaX[direction]);
                       owner.Y = (ushort)(owner.Y + Common.DeltaY[direction]);
                       break;
                   }
               }
               if (!IsInSkillRange(target, skill) || !IsValidTarget(target))
                   AbortAttack();
               else
               {
                   packet.Data = targetUID;

                   uint dmg = owner.CalculatePhysicalDamage(target, skill);

                   packet.AddTarget(target.UID, dmg);
                   if (owner is Player)
                   {
                       var expGain = owner.CalculateExperienceGain(target, dmg);
                       ((Player)owner).GainExperience(expGain);
                       AddSkillExperience(skill.ID, 1);
                   }
               }
           }
           catch (Exception exceptionInfo)
           {
               Common.LogException(owner == null ? "LaunchSkill" : owner.Name, exceptionInfo);
           }
       }

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...