excalibur.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // Excalibur Quest NPC
  2. // By: Syrus22
  3. // Version 1.0
  4. // Any comments or questions PM me on the Yare forums
  5. // Description: This is a simple item quest NPC. The player must find an
  6. // Angel Band, a Heaven Ring, and an Emperium. If they do they will receive
  7. // the Excalibur.
  8. prt_castle.gat,81,171,5 script Mysterious King 108,{
  9. mes "[Excalibur Quest Rep]";
  10. mes "Hello Adventurer.";
  11. mes "I'm glad to announce that we are sponsoring a hunt for the legendary sword, Excalibur. Or more appropriately a hunt for certain rare items that can be traded in for the legendary sword.";
  12. next;
  13. goto ExMenu;
  14. ExMenu:
  15. menu "Required Items",ExItems,"Create Excalibur",ExCreate,"End",ExEnd;
  16. ExItems:
  17. mes "[Excalibur Quest Rep]";
  18. mes "You need the following items to create the Excalibur.";
  19. mes "Angel Band";
  20. mes "Heaven Ring";
  21. mes "Emperium";
  22. next;
  23. goto ExMenu;
  24. ExCreate:
  25. mes "[Excalibur Quest Rep]";
  26. mes "Let me check your inventory!";
  27. next;
  28. if(countitem(2254)<1) goto NoAngel;
  29. if(countitem(2282)<1) goto NoHeaven;
  30. if(countitem(714)<1) goto NoEmp;
  31. goto ExGive;
  32. NoAngel:
  33. mes "[Excalibur Quest Rep]";
  34. mes "Sorry but you must have at least 1 Angel Band.";
  35. mes "Come back after you get ALL the items.";
  36. close;
  37. NoHeaven:
  38. mes "[Excalibur Quest Rep]";
  39. mes "Sorry but you must have at least 1 Heaven Ring.";
  40. mes "Come back after you get ALL the items.";
  41. close;
  42. NoEmp:
  43. mes "[Excalibur Quest Rep]";
  44. mes "Sorry but you must have at least 1 Emperium.";
  45. mes "Come back after you get ALL the items.";
  46. close;
  47. ExGive:
  48. mes "[Excalibur Quest Rep]";
  49. mes "Congratulations. You have collected all necessary items. I give to you the Excalibur!!!";
  50. delitem 2254,1;
  51. delitem 2282,1;
  52. delitem 714,1;
  53. getitem 1137,1;
  54. mes "Thank you for your participation!";
  55. close;
  56. ExEnd:
  57. mes "[Excalibur Quest Rep]";
  58. mes "Good bye then. Hope you try the quest!";
  59. close;
  60. close; }
  61. }