diff options
author | euphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-10-03 23:13:33 +0000 |
---|---|---|
committer | euphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-10-03 23:13:33 +0000 |
commit | bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d (patch) | |
tree | 65732204e49c51946b48244eabaeae2747cc7e81 /doc/sample/npc_test_skill.txt | |
parent | d4cec2529589b43bb4fd70ba79589bc1bb75da98 (diff) | |
download | hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.tar.gz hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.tar.bz2 hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.tar.xz hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.zip |
* Standardization of doc\sample\ folder.
* Deleted doc\sample\PCLoginEvent.txt, which contained outdated information.
* Follow-up r16812, fixed file encoding.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16813 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/sample/npc_test_skill.txt')
-rw-r--r-- | doc/sample/npc_test_skill.txt | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/doc/sample/npc_test_skill.txt b/doc/sample/npc_test_skill.txt index 8d7d88dfe..99eaa9f37 100644 --- a/doc/sample/npc_test_skill.txt +++ b/doc/sample/npc_test_skill.txt @@ -1,4 +1,12 @@ -// Giving skills to characters via an NPC +//===== 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 @@ -9,16 +17,17 @@ prontera,157,182,0 script Skills 116,{ mes "What skill would you like?"; - menu "First Aid",L_GETSKILL142,"Play Dead",L_GETSKILL143,"Heal",L_GETSKILL28,"None",L_YAME; -L_GETSKILL142: - skill 142,1,0; // Permanently gives player level 1 First Aid - close; -L_GETSKILL143: - skill 143,1,0; // Permanently gives player level 1 Play Dead - close; -L_GETSKILL28: - skill 28,3,1; // Temporarily gives player level 3 Heal - close; -L_YAME: - close; + 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; + } } |