WHITELIONX Posted January 20, 2022 Share Posted January 20, 2022 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? Quote Link to comment Share on other sites More sharing options...
Konichu Posted January 20, 2022 Share Posted January 20, 2022 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 Quote Link to comment Share on other sites More sharing options...
WHITELIONX Posted January 20, 2022 Author Share Posted January 20, 2022 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 versionI'm honestly not sure, it's a 5017 server I have however found the collide sectionprivate 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); } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.