First, this is only applying to autoattack range, even though I'm testing on a skill which is supposed to take the Weapon's range. I'd like the status effect to affect both autoattacks AND weapon-range based skills (I have skillrange_from_weapon set on my skill.conf).
Second, the range bonus isn't being removed when the status condition ends (presumably because the server isn't refreshing the player's range because there's no reason to). How can I force the server to refresh this when the status ends? I noticed there's an unused SCB_RANGE bonus in the status.c file, so maybe I could use that? I'd appreciate some light on this.
Question
bodibastos
Hey guys, I've been trying to add a status condition that increases the weapon's range. For the sake of testing I'm currently using SC_TWOHANDQUICKEN.
I went on status.c and tried to add a line below the AC_VULTURE effect, since it's similar to what I want to do:
if((skill=pc_checkskill(sd,AC_VULTURE))>0) { #ifndef RENEWAL base_status->hit += skill; #endif if(sd->status.weapon == W_BOW) base_status->rhw.range += skill; } if (sc->data[SC_TWOHANDQUICKEN]) base_status->rhw.range += 4;
But I noticed two issues:
Thanks in advance.
Link to comment
Share on other sites
2 answers to this question
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.