summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_quest.txt
diff options
context:
space:
mode:
authorthatakkarin <thatakkarin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-03 23:59:46 +0000
committerthatakkarin <thatakkarin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-03 23:59:46 +0000
commit5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae (patch)
treecba96df072699040b4372aee6767a1ba1653f0a8 /doc/sample/npc_test_quest.txt
parent6329c98d4af9afb03bbe9b31ed9291f010c53dec (diff)
downloadhercules-5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae.tar.gz
hercules-5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae.tar.bz2
hercules-5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae.tar.xz
hercules-5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae.zip
* Fixed bugreport:6619 with correct ammo view id in /doc/item_db.txt
* Slight cleanup in /doc/atcommands.txt * Added quest sample NPC in /doc/npc_test_quest.txt * Added an additional example in /doc/whisper_sys.txt to show extended usage git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16742 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/sample/npc_test_quest.txt')
-rw-r--r--doc/sample/npc_test_quest.txt44
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/sample/npc_test_quest.txt b/doc/sample/npc_test_quest.txt
new file mode 100644
index 000000000..097f7655b
--- /dev/null
+++ b/doc/sample/npc_test_quest.txt
@@ -0,0 +1,44 @@
+// Before installing an NPC like the one below, you would
+// 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;
+ switch(select("I'd rather not:What's up?")){
+ case 1:
+ mes .@n$;
+ mes "I didn't want your help anyway!";
+ close;
+
+ case 2:
+ mes .@n$;
+ mes "Those Porings are weirding me out.";
+ mes "Would you kill 3 for me?";
+ 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;
+} \ No newline at end of file