summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_quest.txt
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-05 02:42:20 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-05 02:42:20 +0000
commit4e6774e4173eccff9d0b51b45fe2af07e682e67d (patch)
tree9f2d1c6e3c28343f601247bb9db557a45317fb3c /doc/sample/npc_test_quest.txt
parente7a4ce6eb8222a4abba8ee44d318c1d803c79797 (diff)
downloadhercules-4e6774e4173eccff9d0b51b45fe2af07e682e67d.tar.gz
hercules-4e6774e4173eccff9d0b51b45fe2af07e682e67d.tar.bz2
hercules-4e6774e4173eccff9d0b51b45fe2af07e682e67d.tar.xz
hercules-4e6774e4173eccff9d0b51b45fe2af07e682e67d.zip
* Follow-up r16742, revised quest sample (doc\sample\npc_test_quest.txt) and whisper system documentation (doc\whisper_sys.txt)
* Follow-up r16745, fixed a few typos in atcommand documentation (doc\atcommands.txt) * Minor cleaning - spacing, tabulation, comments, dividers git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16746 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/sample/npc_test_quest.txt')
-rw-r--r--doc/sample/npc_test_quest.txt52
1 files changed, 23 insertions, 29 deletions
diff --git a/doc/sample/npc_test_quest.txt b/doc/sample/npc_test_quest.txt
index 097f7655b..2ac0ae173 100644
--- a/doc/sample/npc_test_quest.txt
+++ b/doc/sample/npc_test_quest.txt
@@ -2,43 +2,37 @@
// need to add the quest to /db/quest_db.txt - e.g:
// 9000,0,1002,3,0,0,0,0,"3 Splats Please!"
-
prontera,90,95,1 script Jelly 123,{
-set .@n$, "["+strnpcinfo(1)+"]";
-if(checkquest(9000) == -1) goto L_Start;
-if(checkquest(9000,HUNTING) == 2) goto L_Reward;
-if(checkquest(9000) == 2) goto L_Done;
-
-L_Start:
- mes .@n$;
- mes "Hey there! Would you help me?";
- next;
+ if(checkquest(9000) == -1) { // Quest not yet started.
+ mes "[Jelly]";
+ mes "Hey there! Would you help me?";
+ next;
switch(select("I'd rather not:What's up?")){
case 1:
- mes .@n$;
+ mes "[Jelly]";
mes "I didn't want your help anyway!";
close;
-
case 2:
- mes .@n$;
+ mes "[Jelly]";
mes "Those Porings are weirding me out.";
mes "Would you kill 3 for me?";
- setquest 9000; // Adds the quest to your Quest Window.
+ setquest 9000; // Adds the quest to your Quest Window.
close;
- }
}
- close;
-
-L_Reward:
- mes .@n$;
- mes "Awesome! Than you =)";
- getexp 10000,0;
- dispbottom "You have been rewarded with 10,000 Base Exp.";
- completequest 9000;
- close;
-
-L_Done:
- mes .@n$;
- mes "Thanks again for doing that for me =)";
- close;
+ } else if(checkquest(9000) == 1) { // Quest is active.
+ mes "[Jelly]";
+ mes "Keep going, almost there!";
+ close;
+ } else if(checkquest(9000,HUNTING) == 2) { // All monsters killed.
+ mes "[Jelly]";
+ mes "Awesome! Thank you!";
+ getexp 10000,0;
+ dispbottom "You have been rewarded with 10,000 Base Exp.";
+ completequest 9000; // Sets quest status to "complete".
+ close;
+ } else if(checkquest(9000) == 2) { // Quest finished.
+ mes "[Jelly]";
+ mes "Thanks again for doing that for me!";
+ close;
+ }
} \ No newline at end of file