OSDN Git Service

First version
[st-ro/stro.git] / doc / sample / npc_test_skill.txt
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
11 // skill <skill id>,<level>{,<flag>};
12 //      flag=0 Grants the skill permanently
13 //      flag=1 Grants the skill temporarily
14 //      flag=2 Level bonus, stackable
15 // If flag is undefined, it defaults to 1
16 // View db/(pre-)re/skill_db.txt for skill IDs
17
18 prontera,157,182,0      script  Skills  116,{
19         mes "What skill would you like?";
20         next;
21         switch(select("First Aid:Play Dead:Heal:None")) {
22         case 1:
23                 skill "NV_FIRSTAID",1,0;        // Permanently gives player level 1 First Aid
24                 close;
25         case 2:
26                 skill "NV_TRICKDEAD",1,0;       // Permanently gives player level 1 Play Dead
27                 close;
28         case 3:
29                 skill "AL_HEAL",3,1;    // Temporarily gives player level 3 Heal
30                 close;
31         case 4:
32                 close;
33         }
34 }