inn.txt 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  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. //======================== Brasilis =================================
  185. bra_in01,27,24,3 script Hotel Keeper#bra1 478,{
  186. mes "[Hotel Keeper]";
  187. mes "Welcome to the beautiful Brasilis Hotel.";
  188. next;
  189. switch(select("Save:Rest -5000 zeny:Cancel")) {
  190. case 1:
  191. mes "[Hotel Keeper]";
  192. mes "Do you want to save here at the Brasilis Hotel?";
  193. next;
  194. switch(select("No thank you.:Absolutely.")) {
  195. case 1:
  196. mes "[Hotel Keeper]";
  197. mes "Ok then, enjoy your stay.";
  198. close;
  199. case 2:
  200. mes "[Hotel Keeper]";
  201. mes "Your respawn has been saved here at the hotel. I hope that you enjoy your stay here in Brasilis.";
  202. savepoint "bra_in01",144,69,1,1;
  203. close;
  204. }
  205. end;
  206. case 2:
  207. if (Zeny > 4999) {
  208. mes "[Hotel Keeper]";
  209. mes "I will show you a great room.";
  210. close2;
  211. if (Zeny < 5000)
  212. end;
  213. Zeny -= 5000;
  214. percentheal 100,100;
  215. warp "bra_in01",144,69;
  216. end;
  217. }
  218. mes "[Hotel Keeper]";
  219. mes "I'm sorry, but the service charge is 5,000 zeny per night.";
  220. case 3:
  221. close;
  222. }
  223. }
  224. //======================== Einbroch =================================
  225. ein_in01,206,224,3 script Hotel Employee#ein 855,{
  226. mes "[Hotel Employee]";
  227. mes "Good day, welcome to the";
  228. mes "Einbroch Hotel. The staff is";
  229. mes "always striving to accommodate";
  230. mes "our guests with the highest";
  231. mes "standards in cleanliness,";
  232. mes "service and convenience~";
  233. next;
  234. if (kain_ticket == 5) {
  235. mes "[Hotel Employee]";
  236. mes "Are you looking";
  237. mes "for Mr. Defru Ark?";
  238. mes "Oh right, he did mention";
  239. mes "waiting for some package";
  240. mes "from the Airport. Now let";
  241. mes "me pull up that information...";
  242. next;
  243. mes "[Hotel Employee]";
  244. mes "Ah, here we are.";
  245. mes "Mr. Defru Ark is";
  246. mes "staying in Room 201.";
  247. next;
  248. }
  249. else {
  250. switch(select("Save:Take Rest - 5,000 zeny:Cancel")) {
  251. case 1:
  252. mes "[Hotel Employee]";
  253. mes "Your Respawn Point";
  254. mes "has been saved here";
  255. mes "in the Einbroch Hotel.";
  256. mes "Thank you, and please";
  257. mes "come again.";
  258. close2;
  259. savepoint "ein_in01",200,224,1,1;
  260. end;
  261. case 2:
  262. if (Zeny > 4999) {
  263. mes "[Hotel Employee]";
  264. mes "Thank you.";
  265. mes "Please enjoy";
  266. mes "your rest~";
  267. close2;
  268. set Zeny, Zeny-5000;
  269. percentheal 100,100;
  270. warp "ein_in01",272,167;
  271. end;
  272. }
  273. else {
  274. mes "[Hotel Employee]";
  275. mes "I'm sorry, but the";
  276. mes "accommodation fee is";
  277. mes "5,000 zeny. Next time,";
  278. mes "please make sure that you";
  279. mes "bring enough zeny, okay?";
  280. close;
  281. }
  282. case 3:
  283. mes "[Hotel Employee]";
  284. mes "Thank you and";
  285. mes "please come again~";
  286. close;
  287. }
  288. }
  289. mes "[Hotel Employee]";
  290. mes "Have a good day.";
  291. close;
  292. }
  293. //======================= Inn Function ==============================
  294. function script F_InnMaid {
  295. .@npc_name$ = getarg(0);
  296. mes .@npc_name$;
  297. mes "Welcome to";
  298. mes getarg(1) + ".";
  299. mes "How may I help you?";
  300. next;
  301. switch(select("Save:Take a Rest -> 5000 zeny:Cancel")) {
  302. case 1:
  303. mes .@npc_name$;
  304. mes "Your respawn point";
  305. mes "has been saved.";
  306. mes "Thank you,";
  307. mes "please come again.";
  308. savepoint getarg(2),getarg(3),getarg(4),1,1;
  309. close;
  310. case 2:
  311. mes .@npc_name$;
  312. if(Zeny < 5000){
  313. 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?";
  314. close;
  315. }
  316. mes "Thank you.";
  317. mes "I hope you";
  318. mes "enjoy your rest~";
  319. close2;
  320. set Zeny,Zeny - 5000;
  321. percentheal 100,100;
  322. return;
  323. case 3:
  324. close;
  325. }
  326. }