Jump to content
  • 0
iraciz

Snatcher skill to steal coin

Question

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);
                    }

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 2

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);
					}

 

  • Upvote 1
  • Like 1
Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.