summaryrefslogtreecommitdiff
path: root/doc/sample/npc_test_quest.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-05 11:34:32 +0300
committerAndrei Karas <akaras@inbox.ru>2019-06-26 21:14:20 +0300
commit610130172552889d6dfb4c5ebc964bb90fdc73d2 (patch)
tree79b344a1753308a461c7a27613f92fc7f67a08ee /doc/sample/npc_test_quest.txt
parentba2840f8462390889ad5f3031b5bcc3068e3aba5 (diff)
downloadhercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.tar.gz
hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.tar.bz2
hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.tar.xz
hercules-610130172552889d6dfb4c5ebc964bb90fdc73d2.zip
Remove conf dir.
Diffstat (limited to 'doc/sample/npc_test_quest.txt')
-rw-r--r--doc/sample/npc_test_quest.txt52
1 files changed, 0 insertions, 52 deletions
diff --git a/doc/sample/npc_test_quest.txt b/doc/sample/npc_test_quest.txt
deleted file mode 100644
index 90659aa10..000000000
--- a/doc/sample/npc_test_quest.txt
+++ /dev/null
@@ -1,52 +0,0 @@
-//===== Hercules Script ======================================
-//= Sample: Quest Test
-//===== By: ==================================================
-//= Hercules Dev Team
-//===== Current Version: =====================================
-//= 20131225
-//===== Description: =========================================
-//= Demonstrates quest commands.
-//============================================================
-
-// Before installing an NPC like the one below, you would
-// need to add the quest to /db/quest_db.txt - e.g:
-// 70000,0,1002,3,0,0,0,0,"3 Splats Please!"
-
-prontera,90,95,1 script Jelly 2_F_MAGICMASTER,{
- if (!questprogress(70000)) {
- // 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 "[Jelly]";
- mes "I didn't want your help anyway!";
- close;
- case 2:
- mes "[Jelly]";
- mes "Those Porings are weirding me out.";
- mes "Would you kill 3 for me?";
- setquest 70000; // Adds the quest to your Quest Window.
- close;
- }
- } else if (questprogress(70000,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 70000; // Sets quest status to "complete".
- close;
- } else if (questprogress(70000) == 1) {
- // Quest is active.
- mes "[Jelly]";
- mes "Keep going, almost there!";
- close;
- } else if (questprogress(70000) == 2) {
- // Quest finished.
- mes "[Jelly]";
- mes "Thanks again for doing that for me!";
- close;
- }
-}