inn.txt 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. //===== rAthena Script =======================================
  2. //= Inn Npcs
  3. //===== By: ==================================================
  4. //= Darkchild (1.1)
  5. //= Playtester (1.2)
  6. //===== Current Version: =====================================
  7. //= 2.9a
  8. //===== Compatible With: =====================================
  9. //= rAthena Project
  10. //===== Description: =========================================
  11. //= Inn Npcs, Save and Heal
  12. //============================================================
  13. //= variables:
  14. //= arg0 - name of npc
  15. //= arg1 - name of the inn
  16. //= arg2 - map to save at
  17. //= arg3, arg4 - x and y cord. to save at
  18. //= @cost - cost of renting a room
  19. //===== Additional Comments: =================================
  20. //= 1.1 Blind Effect By Kobra_k88 (Taken from his old script)
  21. //= I added it to all of them though [Darkchild]
  22. //= 1.1a Minor bug fixes and optimizations. Switched from @variables
  23. //= to arguments.[kobra_k88]
  24. //= 1.2 Rewrote inn script [Playtester]
  25. //= 1.3 Added (finally) Rachel Inn Maid. Official warp
  26. //= and save points[erKURITA]
  27. //= 1.4 Added Hugel inn [erKurita]
  28. //= 1.5 Added "end;" after warping the player. [L0ne_W0lf]
  29. //= - Small corrections to the prontera Inns.
  30. //= - Removed the Cancel dialog.
  31. //= 1.6 More fixes, changed progression of "Rest"ing.
  32. //= - Corrected Morocc NPCs. [L0ne_W0lf]
  33. //= 1.7 Corrected Payon NPC. [L0ne_W0lf]
  34. //= 1.8 Corrected Geffen NPC. [L0ne_W0lf]
  35. //= 1.9 Added the Inn for Al De baran. [L0ne_W0lf]
  36. //= 2.0 Added Inn for the Town of Veins. [L0ne_W0lf]
  37. //= 2.1 Corrected NPC names to fall within proper restrictions. [L0ne_W0lf]
  38. //= 2.1a Corrected a little Typo error. (bugreport:536 & 537) [Samuray22]
  39. //= 2.2 Small update to Vein's Inn Master. [L0ne_W0lf]
  40. //= 2.3 Added Lighthalzen Inn from Lighthalzen town file. [L0ne_W0lf]
  41. //= 2.4 Fixed Inn Employee#Ahlma warping to same destination as save point, bugreport: 191.
  42. //= 2.5 Added Moskovia Gostinitsa (Inn) from jA
  43. //= 2.6 Updated Alberta inn to official. [L0ne_W0lf]
  44. //= 2.7 Removed Morocc Inns as per episode 12.1. [L0ne_W0lf]
  45. //= 2.8 Removed Moscovia Inn; Its in quests/quest_moscovia.txt [Kisuka]
  46. //= 2.9 Added switch menus, updated to match AEGIS scripts. [Kisuka]
  47. //= 2.9a Added 'npcskill' command. [Euphy]
  48. //============================================================
  49. //======================== Prontera ===================================
  50. // West Side Inn -------------------
  51. prt_in,244,135,2 script Inn Employee#Sammy 53,{
  52. callfunc "F_InnMaid","[Employee Sammy]","Nenkaras","prt_in",238,130;
  53. warp "prt_in",247,104; end;
  54. }
  55. // East Side Inn ------------------
  56. prt_in,61,141,2 script Inn Employee#Ahlma 53,{
  57. callfunc "F_InnMaid","[Employee Ahlma]","Nenkaras","prt_in",64,136;
  58. warp "prt_in",60,166; end;
  59. }
  60. //======================== Alberta ====================================
  61. alberta_in,32,142,3 script Inn Employee#Jennie 53,{
  62. callfunc "F_InnMaid","[Employee Jennie]","'Fisherman Inn'!","alberta_in",26,142;
  63. warp "alberta_in",18,188; end;
  64. }
  65. //====================== Geffen ======================================
  66. geffen_in,70,64,5 script Inn Employee#Cena 53,{
  67. callfunc "F_InnMaid","[Employee Cena]","'Ifrit,' the only Inn in the city of Geffen.","geffen_in",70,59;
  68. warp "geffen_in",31,31; end;
  69. }
  70. //======================= Payon ======================================
  71. payon_in01,132,62,5 script Inn Employee#Ahee 53,{
  72. callfunc "F_InnMaid","[Employee Ahee]","Payon Inn","payon_in01",136,61;
  73. warp "payon_in01",132,11; end;
  74. }
  75. //======================== Morocc ====================================
  76. // North East --------------------------
  77. /*
  78. morocc_in,147,141,3 script Inn Employee#Hasna 53,{
  79. callfunc "F_InnMaid","[Employee Hasna]","Morocc Inn","morocc_in",142,140;
  80. warp "morocc_in",173,135; end;
  81. }
  82. // South --------------------------------
  83. morocc_in,80,100,5 script Inn Employee#Manar 53,{
  84. callfunc "F_InnMaid","[Employee Manar]","Morocc Inn","morocc_in",78,95;
  85. warp "morocc_in",79,123; end;
  86. }
  87. */
  88. //====================== Aldebaran ===================================
  89. aldeba_in,92,58,5 script Inn Maid#Rilim 53,{
  90. callfunc "F_InnMaid","[Rilim]","Al De Baran Inn","aldeba_in",92,50;
  91. warp "aldeba_in",92,112; end;
  92. }
  93. //======================== Rachel ====================================
  94. ra_in01,376,69,4 script Inn Keeper#Annie 931,{
  95. callfunc "F_InnMaid","[Annie]","Rachel Inn","ra_in01",375,58;
  96. warp "ra_in01",384,128; end;
  97. }
  98. //====================== Lighthalzen =================================
  99. lhz_in02,230,284,4 script Hotel Employee#01 86,{
  100. mes "[Hotel Employee]";
  101. mes "Welcome to";
  102. mes "the Royal Dragon,";
  103. mes "where you can find the";
  104. mes "finest accomodations";
  105. mes "and the best service.";
  106. next;
  107. switch(select("Save Point:Rest - 5,000 zeny:Cancel")) {
  108. case 1:
  109. savepoint "lhz_in02",209,275,1,1;
  110. mes "[Hotel Employee]";
  111. mes "Thank you, your";
  112. mes "Respawn Point has";
  113. mes "been saved here in";
  114. mes "the Royal Dragon.";
  115. close;
  116. case 2:
  117. if(Zeny < 5000) {
  118. mes "[Hotel Employee]";
  119. mes "I'm sorry, but";
  120. mes "you need 5,000 zeny";
  121. mes "in order to check in.";
  122. close;
  123. }
  124. set Zeny,Zeny - 5000;
  125. mes "[Hotel Employee]";
  126. mes "Thank you~";
  127. mes "I hope you enjoy";
  128. mes "your stay in the";
  129. mes "Royal Dragon.";
  130. close2;
  131. warp "lhz_in02",219,150;
  132. percentheal 100,100;
  133. npcskill "AL_BLESSING",10,99,99;
  134. end;
  135. case 3:
  136. mes "[Hotel Employee]";
  137. mes "Thank you and";
  138. mes "have a nice day.";
  139. close;
  140. }
  141. }
  142. //======================== Hugel ====================================
  143. hu_in01,246,107,3 script Inn Maid#Receptionist 53,{
  144. callfunc "F_InnMaid","[Receptionist]","Hugel Inn","hu_in01",263,95;
  145. warp "hu_in01",267,5; end;
  146. }
  147. //======================== Veins ====================================
  148. ve_in,157,219,5 script Inn Master#Receptionist 709,{
  149. mes "[Inn Master]";
  150. mes "Good day~";
  151. mes "Welcome to the";
  152. mes "most comfortable";
  153. mes "inn here in Veins~";
  154. next;
  155. switch(select("Save:Take a Rest -> 5000 zeny:Quit")) {
  156. case 1:
  157. mes "[Inn Master]";
  158. mes "Your Respawn Point";
  159. mes "has been saved in Veins.";
  160. mes "Enjoy your stay in town~";
  161. savepoint "ve_in",157,209,1,1;
  162. close;
  163. case 2:
  164. mes "[Inn Master]";
  165. if(Zeny < 5000){
  166. mes "I'm sorry, but I don't";
  167. mes "think you have enough";
  168. mes "money to check in. The";
  169. mes "service charge is 5,000 zeny.";
  170. close;
  171. }
  172. mes "Enjoy your stay~";
  173. close2;
  174. set Zeny,Zeny - 5000;
  175. percentheal 100,100;
  176. warp "ve_in",184,228;
  177. end;
  178. case 3:
  179. mes "[Inn Master]";
  180. mes "Please come again.";
  181. close;
  182. }
  183. }
  184. //======================= Inn Function ==============================
  185. function script F_InnMaid {
  186. .@npc_name$ = getarg(0);
  187. mes .@npc_name$;
  188. mes "Welcome to";
  189. mes getarg(1) + ".";
  190. mes "How may I help you?";
  191. next;
  192. switch(select("Save:Take a Rest -> 5000 zeny:Cancel")) {
  193. case 1:
  194. mes .@npc_name$;
  195. mes "Your respawn point";
  196. mes "has been saved.";
  197. mes "Thank you,";
  198. mes "please come again.";
  199. savepoint getarg(2),getarg(3),getarg(4),1,1;
  200. close;
  201. case 2:
  202. mes .@npc_name$;
  203. if(Zeny < 5000){
  204. mes "I'm sorry, but the service charge is 5,000 zeny. Please make sure that you have enough money to check in next time, okay?";
  205. close;
  206. }
  207. mes "Thank you.";
  208. mes "I hope you";
  209. mes "enjoy your rest~";
  210. close2;
  211. set Zeny,Zeny - 5000;
  212. percentheal 100,100;
  213. return;
  214. case 3:
  215. close;
  216. }
  217. }