summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_skill.txt
diff options
context:
space:
mode:
authorTrojal <trojal@gmail.com>2013-01-10 20:09:39 -0800
committerTrojal <trojal@gmail.com>2013-01-10 20:32:02 -0800
commit83e7a4954437c13aec639b0b512252cc20a8f36c (patch)
treeb7f6d11b2058248d026f2d9944e8f4b6ac288d50 /doc/sample/npc_test_skill.txt
parent51bfeb38eb139e97e0e1c096c85c15fba234f35b (diff)
parent38e583df21eccd9e4f31d38acaae32579c6f0d27 (diff)
downloadhercules-83e7a4954437c13aec639b0b512252cc20a8f36c.tar.gz
hercules-83e7a4954437c13aec639b0b512252cc20a8f36c.tar.bz2
hercules-83e7a4954437c13aec639b0b512252cc20a8f36c.tar.xz
hercules-83e7a4954437c13aec639b0b512252cc20a8f36c.zip
Merge rathena repository to form Hercules initial commit.
Diffstat (limited to 'doc/sample/npc_test_skill.txt')
-rw-r--r--doc/sample/npc_test_skill.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/sample/npc_test_skill.txt b/doc/sample/npc_test_skill.txt
new file mode 100644
index 000000000..99eaa9f37
--- /dev/null
+++ b/doc/sample/npc_test_skill.txt
@@ -0,0 +1,33 @@
+//===== rAthena Script =======================================
+//= Sample: Skill
+//===== By: ==================================================
+//= rAthena Dev Team
+//===== Current Version: =====================================
+//= 20121003
+//===== Description: =========================================
+//= Demonstrates the 'skill' command.
+//============================================================
+
+// skill <skill id>,<level>{,<flag>};
+// flag=0 Grants the skill permanently
+// flag=1 Grants the skill temporarily
+// flag=2 Level bonus, stackable
+// If flag is undefined, it defaults to 1
+// View db/(pre-)re/skill_db.txt for skill IDs
+
+prontera,157,182,0 script Skills 116,{
+ mes "What skill would you like?";
+ switch(select("First Aid:Play Dead:Heal:None")) {
+ case 1:
+ skill 142,1,0; // Permanently gives player level 1 First Aid
+ close;
+ case 2:
+ skill 143,1,0; // Permanently gives player level 1 Play Dead
+ close;
+ case 3:
+ skill 28,3,1; // Temporarily gives player level 3 Heal
+ close;
+ case 4:
+ close;
+ }
+}