THQS_GuildNPC.txt 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //===== Athena Script =====================================
  2. //= Treasure Hunter Script
  3. //===== Converted By ======================================
  4. //= Fredzilla
  5. //= Original
  6. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  7. // Treasure Hunter Quests //
  8. // By: Ezekial //
  9. // for the use on nRO run by Newbe5 //
  10. // revised By Warlock //
  11. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  12. //===== Version ===========================================
  13. //= 1.0 - Straight conversion of Aegis NPC file
  14. //===== Compatible With ===================================
  15. //= eAthena 1.0
  16. //===== Description =======================================
  17. //= Start for Treasure hunter quests
  18. //===== Comments ==========================================
  19. //= Event_THQS - Used to check if you have already registerd
  20. //= #Treasure_Token - used to keep track of tokens
  21. //////////////////////////////////////////////////////////
  22. yuno_in01.gat,124,164,6 script Guild Leader 108,{
  23. mes "[Keegan]";
  24. mes "What brings you here? Have something to say?";
  25. next;
  26. menu "I want to be a Treasure Hunter",-,"Take a New Quest.",N_NQuest,"Take me to the Official Shop.",N_OShop,"Nevermind.",N_NVM;
  27. if(Event_THQS==1) goto N_AlreadyReg;
  28. mes "[Keegan]";
  29. mes "Well "+strcharinfo(0)+" if you want to be a Treasure Hunter first you must.";
  30. mes " ";
  31. mes "^FF00001.^000000 You well be changed ^FF000025,000z^000000 for basic training and your proof of being a member.";
  32. mes " ";
  33. mes "Umm... Well that is all you need to do. Hahaha.";
  34. next;
  35. menu "Pay ^FF000025,000z^000000.",-,"Thats way to high!!",N_HighPrice;
  36. if (zeny < 25000) goto N_NoZeny;
  37. set Zeny,Zeny-25000;
  38. //getitem 7950, 1;
  39. //getitem 7951, 1;
  40. set Event_THQS,1;
  41. mes "[Keegan]";
  42. mes "Congratulations!";
  43. emotion 46;
  44. next;
  45. mes "[Keegan]";
  46. mes "Welcome to the Guild of Treasure Hunters.";
  47. mes "You may now take a Treasure Hunting Quest as you see fit.";
  48. close;
  49. N_NoZeny:
  50. mes "[Keegan]";
  51. mes "Hmmm you don't seem to have ^FF000025,000z^000000 "+strcharinfo(0)+". Please come back when you do.";
  52. close;
  53. N_HighPrice:
  54. mes "[Keegan]";
  55. mes "Well if you can't afford a small ^FF000025,000z^000000 you shouldent be a Treasure Hunter yet.";
  56. close;
  57. N_AlreadyReg:
  58. mes "[Keegan]";
  59. mes "Ha ha ha...you are already a member.";
  60. close;
  61. N_NQuest:
  62. if (Event_THQS!=1) goto A_NeedReg;
  63. mes "[Keegan]";
  64. mes "Well "+strcharinfo(0)+" if you wish to take a quest go talk to the fellow Treasure Hunter in the other room there.";
  65. close;
  66. A_NeedReg:
  67. mes "[Keegan]";
  68. mes "Sorry you must be a member of the Treasure Hunter Guild if you wish to take a quest.";
  69. mes " ";
  70. mes "Also now that you are a member feel free to use our shops anytime you wish.They are all located on this floor.";
  71. mes " ";
  72. mes "We also have another shop for members only,in which we use little metal diamonds called Treasure Hunter Tokens to exchange for rare goods.";
  73. mes " ";
  74. mes "You will even have access to our exclusive personal Dungeon.";
  75. close;
  76. N_OShop:
  77. if (Event_THQS!=1) goto N_NeedMem;
  78. mes "[Keegan]";
  79. mes "Yes "+strcharinfo(0)+" I will take you to our shop right away!";
  80. next;
  81. warp "prt_in.gat",166,171;
  82. close;
  83. end;
  84. N_NeedMem:
  85. mes "[Keegan]";
  86. mes "Im sorry only members may visit our private shop.";
  87. close;
  88. N_NVM:
  89. mes "[Keegan]";
  90. mes "Alright come back when you have the free time to spare.";
  91. close;
  92. }