Jump to content
  • 0

Old FCP Behavior


Iceyz

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  46
  • Reputation:   2
  • Joined:  06/07/19
  • Last Seen:  

Can I ask an old fcp behavior ? The one that removes strip buffs when using FCP. Or you can just teach me how can I find old rAthena revision so I can find the old one...

 

http://trac.rathena.org/changeset/16567/rathena --> NOT WORKING LINK

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  740
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

1 hour ago, Krypt said:

Can I ask an old fcp behavior ? The one that removes strip buffs when using FCP. Or you can just teach me how can I find old rAthena revision so I can find the old one...

 

http://trac.rathena.org/changeset/16567/rathena --> NOT WORKING LINK

Skill.cpp

 

	case AM_CP_WEAPON:
	case AM_CP_SHIELD:
	case AM_CP_ARMOR:
	case AM_CP_HELM:
		{
			unsigned int equip[] = {EQP_WEAPON, EQP_SHIELD, EQP_ARMOR, EQP_HEAD_TOP};

			if( sd && ( bl->type != BL_PC /*|| ( dstsd && pc_checkequip(dstsd,equip[skill_id - AM_CP_WEAPON]) < 0 )*/ ) ){
				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				map_freeblock_unlock(); // Don't consume item requirements
				return 0;
			}
			status_change_end(bl, type, INVALID_TIMER);
			clif_skill_nodamage(src,bl,skill_id,skill_lv,
				sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
		}
		break;


 

	// Full Chemical Protection
	case CR_FULLPROTECTION:
		{
			unsigned int equip[] = {EQP_WEAPON, EQP_SHIELD, EQP_ARMOR, EQP_HEAD_TOP};
			int i_eqp, s = 0, skilltime = skill_get_time(skill_id,skill_lv);

			for (i_eqp = 0; i_eqp < 4; i_eqp++) {
				if( bl->type != BL_PC /*|| ( dstsd && pc_checkequip(dstsd,equip[i_eqp]) < 0 )*/ )
					continue;
				status_change_end(bl, (sc_type)(SC_STRIPWEAPON + i), INVALID_TIMER);
				status_change_end(bl, (sc_type)(SC_STRIPHELM + i), INVALID_TIMER);
				status_change_end(bl, (sc_type)(SC_STRIPSHIELD + i), INVALID_TIMER);
				status_change_end(bl, (sc_type)(SC_STRIPARMOR + i), INVALID_TIMER);
				sc_start(src,bl,(sc_type)(SC_CP_WEAPON + i_eqp),100,skill_lv,skilltime);
				s++;
			}
			if( sd && !s ){
				clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
				map_freeblock_unlock(); // Don't consume item requirements
				return 0;
			}
			clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
		}
		break;

 

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