• 0
Sign in to follow this  
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);
                    }

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
  • -1
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.

I can feel the lag from here

Share this post


Link to post
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.

Loading...
Sign in to follow this