Jump to content
  • 0
Sign in to follow this  
nasagnilac

How to show active skills that supported?

Question

	/// List of AFK supported skills.
	const char afk_supported_skill[] {
		SM_BASH,
		SM_ENDURE,

		MG_ENERGYCOAT,
		MG_SIGHT,
		MG_FIREWALL,
		MG_FROSTDIVER,
		MG_FIREBOLT,
		MG_COLDBOLT,
		MG_LIGHTNINGBOLT,
		MG_SOULSTRIKE,
		MG_THUNDERSTORM,

		AC_DOUBLE,
		AC_CHARGEARROW,
		AC_SHOWER,
		AC_CONCENTRATION,

		AL_INCAGI,
		AL_BLESSING,
		AL_ANGELUS,
		AL_RUWACH,
		AL_CURE,
		AL_PNEUMA,
		AL_HEAL,

		MC_MAMMONITE,
		MC_CARTREVOLUTION,
		MC_LOUD,

		TF_POISON,
		TF_HIDING,
		TF_DETOXIFY,

		KN_PIERCE,
		KN_BOWLINGBASH,
		KN_BRANDISHSPEAR,
		KN_TWOHANDQUICKEN,

		PR_TURNUNDEAD,
		WZ_FROSTNOVA,
		WZ_JUPITEL,
		WZ_STORMGUST,
		WZ_QUAGMIRE,
		WZ_VERMILION,
		WZ_METEOR,
		WZ_SIGHTBLASTER,

		BS_ADRENALINE,
		BS_OVERTHRUST,
		BS_WEAPONPERFECT,
		BS_MAXIMIZE,

		HT_DETECTING,

		AS_GRIMTOOTH,
		AS_SONICBLOW,

		CR_SPEARQUICKEN,
		CR_REFLECTSHIELD,
		CR_DEFENDER,
		CR_GRANDCROSS,
		CR_AUTOGUARD,

		MO_CHAINCOMBO,
		MO_COMBOFINISH,
		MO_INVESTIGATE,
		MO_FINGEROFFENSIVE,
		MO_EXPLOSIONSPIRITS,
		MO_CALLSPIRITS,

		LK_AURABLADE,
		LK_PARRYING,
		LK_CONCENTRATION,

		HW_MAGICPOWER,

		WS_CARTBOOST,
		WS_OVERTHRUSTMAX,
		WS_CARTTERMINATION,

		SN_SIGHT,
		SN_WINDWALK,

		ASC_BREAKER,
		ASC_METEORASSAULT,

		PA_PRESSURE,
		PA_SHIELDCHAIN,

		PF_MEMORIZE,
		PF_DOUBLECASTING,

		ST_PRESERVE,

	};


			for(i=0;i<MAX_SKILL;i++){
				inf = skill_get_inf(sd->status.skill[i].id);
				if (!(inf == 0) && sd->status.skill[i].id > 0 && sd->status.skill[i].lv > 0) {
					j++;
				}
			}

			if(j > 0){
				clif_displaymessage(fd, "[ Character Skills ]");
				for(i=0;i<MAX_SKILL;i++){
					inf = skill_get_inf(sd->status.skill[i].id);

					if (!(inf == 0) && sd->status.skill[i].id > 0 && sd->status.skill[i].lv > 0) {
						ARR_FIND(0, sizeof(afk_supported_skill), a, skill_get_index(afk_supported_skill[a]) == skill_get_index(sd->status.skill[i].id));
						if(b == sizeof(afk_supported_skill)){
							snprintf(atcmd_output, sizeof atcmd_output, "-- Skill ID: %d | [ %s ] Lv:%d", sd->status.skill[i].id, skill_get_desc(sd->status.skill[i].id), sd->status.skill[i].lv );
							clif_displaymessage(fd, atcmd_output);
						}
					}
				}
			}else{
				clif_displaymessage(fd, "Can't find a non-passive skills.");
			}

I want to display the skills that supported only. Thanks in advance to those who can help me.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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