Example of an NPC that checks if a player has already learned a skill?

Zirius

New member
Messages
261
Points
0
Hello! Can somebody please give an example of an NPC that checks if a player has already learned the skill.

Example, Swordsman's Fatal Blow or Merchant's Change cart.

Thanks!

 
Code:
if( getskilllv(SM_FATALBLOW) ){  ....................................}if( getskilllv(MC_CHANGECART) ){  ....................................}
 
Please elaborate on "these stuffs". I thought your question was already answered by Angelmelody...

 
Please elaborate on "these stuffs". I thought your question was already answered by Angelmelody...
these functions (getskilllv()) and variables(SM_FATALBLOW). Sorry.

 
Last edited by a moderator:
You can find all the script functions in doc/script.commands.txt, variables are names of skills, you can see them in skill_db ( db/(pre-)re/skill_db.txt ).

Also, there's quite a few of script-used variables set in db/const.txt. This is not the case, but for the future reference
default_happy.png


 
You can find all the script functions in doc/script.commands.txt, variables are names of skills, you can see them in skill_db ( db/(pre-)re/skill_db.txt ).

Also, there's quite a few of script-used variables set in db/const.txt. This is not the case, but for the future reference
default_happy.png
Thanks thanks thanks!

 
Back
Top