npc_test_quest.txt 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Before installing an NPC like the one below, you would
  2. // need to add the quest to /db/quest_db.txt - e.g:
  3. // 9000,0,1002,3,0,0,0,0,"3 Splats Please!"
  4. prontera,90,95,1 script Jelly 123,{
  5. if(checkquest(9000) == -1) { // Quest not yet started.
  6. mes "[Jelly]";
  7. mes "Hey there! Would you help me?";
  8. next;
  9. switch(select("I'd rather not:What's up?")){
  10. case 1:
  11. mes "[Jelly]";
  12. mes "I didn't want your help anyway!";
  13. close;
  14. case 2:
  15. mes "[Jelly]";
  16. mes "Those Porings are weirding me out.";
  17. mes "Would you kill 3 for me?";
  18. setquest 9000; // Adds the quest to your Quest Window.
  19. close;
  20. }
  21. } else if(checkquest(9000) == 1) { // Quest is active.
  22. mes "[Jelly]";
  23. mes "Keep going, almost there!";
  24. close;
  25. } else if(checkquest(9000,HUNTING) == 2) { // All monsters killed.
  26. mes "[Jelly]";
  27. mes "Awesome! Thank you!";
  28. getexp 10000,0;
  29. dispbottom "You have been rewarded with 10,000 Base Exp.";
  30. completequest 9000; // Sets quest status to "complete".
  31. close;
  32. } else if(checkquest(9000) == 2) { // Quest finished.
  33. mes "[Jelly]";
  34. mes "Thanks again for doing that for me!";
  35. close;
  36. }
  37. }