iraciz Posted June 12, 2019 Posted June 12, 2019 I want the Snatcher (Gank) skill from rogue to also autospell steal coin here is the line in the skill.c: // Gank if(dstmd && sd->status.weapon != W_BOW && (skill=pc_checkskill(sd,RG_SNATCHER)) > 0 && (skill*15 + 55) + pc_checkskill(sd,TF_STEAL)*10 > rnd()%1000) { if(pc_steal_item(sd,bl,pc_checkskill(sd,TF_STEAL))) clif_skill_nodamage(src,bl,TF_STEAL,skill,1); else clif_skill_fail(sd,RG_SNATCHER,USESKILL_FAIL_LEVEL,0); } Quote
2 Seravy Posted June 12, 2019 Posted June 12, 2019 This is for allowing that when soul linked. Remove the line that has SC_SPIRIT if you want it to always work. // Gank if(dstmd && sd->status.weapon != W_BOW && (skill=pc_checkskill(sd,RG_SNATCHER)) > 0 && (skill*15 + 55) + pc_checkskill(sd,TF_STEAL)*10 > rnd()%1000) { if(pc_steal_item(sd,bl,pc_checkskill(sd,TF_STEAL))) clif_skill_nodamage(src,bl,TF_STEAL,skill,1); else clif_skill_fail(sd,RG_SNATCHER,USESKILL_FAIL_LEVEL,0); } // Rogue Spirit enables Gank to steal coin if (sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_ROGUE) if (dstmd && sd->status.weapon != W_BOW && (skill = pc_checkskill(sd, RG_SNATCHER)) > 0 && (skill * 15 + 55) + pc_checkskill(sd, RG_STEALCOIN) * 10 > rnd() % 1000) { if (pc_steal_coin(sd, bl)) clif_skill_nodamage(src, bl, RG_STEALCOIN, skill, 1); else clif_skill_fail(sd, RG_SNATCHER, USESKILL_FAIL_LEVEL, 0); } 1 1 Quote
0 iraciz Posted June 13, 2019 Author Posted June 13, 2019 Thank you, dear Seravy, I works perfect. I also remove the bow requirement, and now is also possible to steal coin from distance. Nezumi Ro 06_12_2019 11_14_17 p. m..mp4 Quote
-1 Naruto Posted June 13, 2019 Posted June 13, 2019 5 hours ago, iraciz said: Thank you, dear Seravy, I works perfect. I also remove the bow requirement, and now is also possible to steal coin from distance. Nezumi Ro 06_12_2019 11_14_17 p. m..mp4 I can feel the lag from here Quote
Question
iraciz
I want the Snatcher (Gank) skill from rogue to also autospell steal coin
here is the line in the skill.c:
// Gank
if(dstmd && sd->status.weapon != W_BOW &&
(skill=pc_checkskill(sd,RG_SNATCHER)) > 0 && (skill*15 + 55) + pc_checkskill(sd,TF_STEAL)*10 > rnd()%1000)
{
if(pc_steal_item(sd,bl,pc_checkskill(sd,TF_STEAL)))
clif_skill_nodamage(src,bl,TF_STEAL,skill,1);
else
clif_skill_fail(sd,RG_SNATCHER,USESKILL_FAIL_LEVEL,0);
}
3 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.