Jump to content
  • 0

Snatcher skill to steal coin


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.02
  • Content Count:  176
  • Reputation:   60
  • Joined:  01/11/19
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Thank you, dear Seravy,  I works perfect.

I also remove the bow requirement, and now is also possible to steal coin from distance.

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

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

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