Difference between revisions of "PC Checkskill"

From Hercules Wiki
Jump to: navigation, search
(Created page with "== Check Skill LVL on the character == int pc_checkskill(struct map_session_data *sd,int skill_id) pc_checkskill(sd,SKILLID)>X) * sd = Only players have skills (mobs are...")
 

Latest revision as of 03:22, 13 January 2013

Check Skill LVL on the character

int pc_checkskill(struct map_session_data *sd,int skill_id)
pc_checkskill(sd,SKILLID)>X)
  • sd = Only players have skills (mobs are forced skill uses)
  • SKILLID = Skill ID, can be numeric (28=heal) or the client name (AL_HEAL=heal)
  • X = Skill Level (>0 he only needs 1 point)
  • int = Return the skill level learned by player

Note: This can be used to check if the character has the skill or not (same as >0)

pc_checkskill(sd,SKILLID)