inn.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //===== rAthena Script =======================================
  2. //= Inn Npcs
  3. //===== By: ==================================================
  4. //= c, L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Inn Npcs, Save and Heal
  11. //===== Additional Comments: =================================
  12. //= 1.0 Added Brasilis inn receptionist. [c]
  13. //= 1.1 Updated dialog for Brasilis inn. [L0ne_W0lf]
  14. //============================================================
  15. // Brasilis
  16. //============================================================
  17. bra_in01,27,24,3 script Hotel Keeper#bra1 478,{
  18. mes "[Hotel Keeper]";
  19. mes "Welcome to the beautiful Brasilis Hotel.";
  20. next;
  21. switch(select("Save:Rest -5000 zeny")) {
  22. case 1:
  23. mes "[Hotel Keeper]";
  24. mes "Do you want to save here at the Brasilis Hotel?";
  25. next;
  26. switch(select("No thank you.:Absolutely.")) {
  27. case 1:
  28. mes "[Hotel Keeper]";
  29. mes "Ok then, enjoy your stay.";
  30. close;
  31. case 2:
  32. mes "[Hotel Keeper]";
  33. mes "Your respawn has been saved here at the hotel. I hope that you enjoy your stay here in Brasilis.";
  34. savepoint "bra_in01",144,69,1,1;
  35. close;
  36. }
  37. case 2:
  38. if (Zeny > 4999) {
  39. mes "[Hotel Keeper]";
  40. mes "I will show you a great room.";
  41. close2;
  42. set Zeny, Zeny-5000;
  43. percentheal 100,100;
  44. warp "bra_in01",144,69;
  45. end;
  46. }
  47. else {
  48. mes "[Hotel Keeper]";
  49. mes "I'm sorry, but the service charge is 5,000 zeny per night.";
  50. close;
  51. }
  52. }
  53. }