Jump to content
  • 0
Sign in to follow this  
rans

Single Strip FCP Bypass Help

Question

Hi guys,
I'm using Dastgir's  Plugin (https://github.com/dastgir/HPM-Plugins/blob/master/src/plugins/fcp_bypass.c)
It works fine but anyone can help me edit the script.
what i wanted is everytime i attempt to single strip. Glistening coat will be consume. (Current effect is it will only be consume if the strip is successful)

Thanks


NVM solved

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

replace this code

// Nothing stripped.
			if (sd && !rate)
clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);

to

// Nothing stripped.
if (sd && !rate){
      int item_id = 7139; // Glistening Coat
      int ii;
      ARR_FIND(0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id);
      if (ii < MAX_INVENTORY) {
         pc->delitem(sd, ii, 1, 0, 0, LOG_TYPE_CONSUME);
      }
      clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
}

Share this post


Link to post
Share on other sites
  • 0

 

replace this code

// Nothing stripped.
			if (sd && !rate)
clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);

to

// Nothing stripped.
if (sd && !rate){
      int item_id = 7139; // Glistening Coat
      int ii;
      ARR_FIND(0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id);
      if (ii < MAX_INVENTORY) {
         pc->delitem(sd, ii, 1, 0, 0, LOG_TYPE_CONSUME);
      }
      clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
}

This script of yours is not from dastgir's Plugin

Share this post


Link to post
Share on other sites
  • 0

 

 

replace this code

// Nothing stripped.
			if (sd && !rate)
clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);

to

// Nothing stripped.
if (sd && !rate){
      int item_id = 7139; // Glistening Coat
      int ii;
      ARR_FIND(0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id);
      if (ii < MAX_INVENTORY) {
         pc->delitem(sd, ii, 1, 0, 0, LOG_TYPE_CONSUME);
      }
      clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
}

This script of yours is not from dastgir's Plugin

I refer to the link you gave. Start line 194, I just copied the code. Anyway you said its solved so why bother.

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

  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  

×
×
  • Create New...

Important Information

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