rathena/doc/sample/npc_test_quest.txt
euphyy d2d9897606 * Standardization of doc\sample\ folder.
* Deleted doc\sample\PCLoginEvent.txt, which contained outdated information.
* Follow-up r16812, fixed file encoding.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-10-03 23:13:33 +00:00

48 lines
1.5 KiB
Plaintext

//===== rAthena Script =======================================
//= Sample: Quest Test
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 20120904
//===== 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:
// 9000,0,1002,3,0,0,0,0,"3 Splats Please!"
prontera,90,95,1 script Jelly 123,{
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 "[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 9000; // Adds the quest to your Quest Window.
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;
}
}