npc_test_skill.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. //===== rAthena Script =======================================
  2. //= Sample: Skill
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20140208
  7. //===== Description: =========================================
  8. //= Demonstrates the 'skill' command.
  9. //============================================================
  10. // skill <skill id>,<level>{,<flag>};
  11. // flag=0 Grants the skill permanently
  12. // flag=1 Grants the skill temporarily
  13. // flag=2 Level bonus, stackable
  14. // If flag is undefined, it defaults to 1
  15. // View db/(pre-)re/skill_db.txt for skill IDs
  16. prontera,157,182,0 script Skills 116,{
  17. mes "What skill would you like?";
  18. next;
  19. switch(select("First Aid:Play Dead:Heal:None")) {
  20. case 1:
  21. skill "NV_FIRSTAID",1,0; // Permanently gives player level 1 First Aid
  22. close;
  23. case 2:
  24. skill "NV_TRICKDEAD",1,0; // Permanently gives player level 1 Play Dead
  25. close;
  26. case 3:
  27. skill "AL_HEAL",3,1; // Temporarily gives player level 3 Heal
  28. close;
  29. case 4:
  30. close;
  31. }
  32. }