melia icon indicating copy to clipboard operation
melia copied to clipboard

Basic ranged combat

Open exectails opened this issue 8 years ago • 1 comments

I've started looking into ranged combat, and I'd like to record my findings here.

First of all, ranged attacks, unlike melee attacks, use skills targeted at a single enemy. For Archers and Wizards, their basic attacks us the skills "Bow_Attack" (skill id 2) and "Magic_Attack" (4) respectively. Also unlike melees, the result isn't sent via ZC_SKILL_HIT_INFO, but ZC_SKILL_FORCE_TARGET, a packet we haven't nearly fully deciphered yet.

  • [ ] Figure out ZC_SKILL_FORCE_TARGET

Another issue I noticed is that, right now, when you try to attack something as a Wizard or Archer, your character gets "locked" in the attack animation for ~3 seconds before you can move again. I assume this is caused by some missing property on the character or some skill or ability.

  • [ ] Figure out skill attack delay

On a side-note, there's a second skill target packet, CZ_SKILL_TARGET_ANI, which I assume is used when there is no clear target, as its parameters are the skill id and the direction in which the skill is used, presumably hitting whatever the server finds in that path. I've seen it being sent for the basic Archer attack on Melia, though that might've been a glitch.

Feel free to work on this and/or post your own findings.

exectails avatar Oct 05 '17 09:10 exectails

Partially implemented by @SalmanTKhan and merged into master, though the implementation is still highly experimental at this point.

exectails avatar Sep 11 '21 13:09 exectails

After actually testing it, it seems like our basic ranged combat is working, so I consider this issue solved for the moment.

exectails avatar May 26 '23 22:05 exectails