Search the Commands

Home  All  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z 

Details for command getskilllv:
* getskilllv <skill id>;
This function returns the level of the specified skill that the invoking
character has. If they don't have the skill, 0 will be returned. The full list
of character skills is available in 'db/skill_db.txt'.

There are two main uses for this function, it can check whether the character
has a skill or not, and it can tell you if the level is high enough.

Example 1:

if (getskilllv(152)) goto L_HasSkillThrowStone;
mes "You don't have Throw Stone";
mes "You have got the skill Throw Stone";

Example 2:

if (getskilllv(28) >= 5) goto L_HasSkillHeallvl5orMore;
if (getskilllv(28) == 10) goto L_HasSkillHealMaxed;
mes "You heal skill is below lvl 5";
mes "Your heal lvl is 5 or more";
mes "Your heal lvl has been maxed";

Valid XHTML 1.0 Strict Valid CSS!