THQS_GuildNPC.txt 3.0 KB

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