brasilis.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. //===== rAthena Script =======================================
  2. //= Brasilis Town
  3. //===== Description: =========================================
  4. //= [Official Conversion]
  5. //= Brasilis Town Script
  6. //===== Changelog: ===========================================
  7. //= 1.0 First version. Transportation and Basic NPCs. [L0ne_W0lf]
  8. //= 1.1 Fixed Zeny not being removed for payment. [Kisuka]
  9. //= 1.2 Updated dialog, added Ice Cream Maker. [L0ne_W0lf]
  10. //= 1.3 Moved Alberta NPC to pre-re/re paths. [Euphy]
  11. //= 1.4 Added VIP features. [Euphy]
  12. //============================================================
  13. // Brasilis Transportation :: brasilis_trans
  14. //============================================================
  15. - script ::Crewman_bra2 -1,{
  16. mes "[Crewman]";
  17. mes "Hey, have you heard of a place called Brasilis?";
  18. mes "It's a tropical city that's hot like the desert but also rainy. It is a very mysterious place.";
  19. next;
  20. mes "[Crewman]";
  21. mes "We recently found a new ocean route to get there easily.";
  22. if (VIP_SCRIPT) {
  23. set .@cost, vip_status(VIP_STATUS_ACTIVE)?1000:10000;
  24. mes "It's just 10,000 zeny for a round trip, and 1,000 for VIP! So do you want to go?"; //custom translation (VIP)
  25. } else {
  26. set .@cost,10000;
  27. mes "It's just 10,000 zeny for a round trip! So do you want to go?";
  28. }
  29. next;
  30. switch(select("Take me to Brasilis!:I'll stay here.")) {
  31. case 1:
  32. if (Zeny < .@cost) {
  33. mes "[Crewman]";
  34. mes "I said "+callfunc("F_InsertComma",.@cost)+" zeny.";
  35. close;
  36. }
  37. else {
  38. mes "[Crewman]";
  39. mes "Cool~!! Let's go~!";
  40. set Zeny, Zeny-.@cost;
  41. close2;
  42. warp "brasilis",314,60;
  43. end;
  44. }
  45. case 2:
  46. mes "[Crewman]";
  47. mes "Well if you're ever interested, let me know and I can take you there.";
  48. close;
  49. }
  50. }
  51. brasilis,316,57,3 script Crewman#bra1 100,{
  52. mes "[Crewman]";
  53. mes "My ship is going to back to Alberta, do you want to join us?";
  54. next;
  55. switch(select("Go back to Alberta.:Not yet~.")) {
  56. case 1:
  57. mes "[Crewman]";
  58. mes "I sure do miss home.";
  59. close2;
  60. if (checkre(0))
  61. warp "alberta",243,82;
  62. else
  63. warp "alberta",244,115;
  64. end;
  65. case 2:
  66. mes "[Crewman]";
  67. mes "Ok, suit yourself. We'll see you when we get back then.";
  68. close;
  69. }
  70. }
  71. // Generic Brasilis NPCs :: brazil_tre
  72. //============================================================
  73. brasilis,155,165,3 script Signpost#bra1 858,{
  74. mes ":: Art Museum ::";
  75. close;
  76. }
  77. brasilis,191,239,3 script Signpost#bra2 858,{
  78. mes ":: Verass Monument ::";
  79. close;
  80. }
  81. brasilis,240,247,3 script Signpost#bra3 858,{
  82. mes ":: Market ::";
  83. mes " ";
  84. mes "- For your Potions and Weaponry -";
  85. close;
  86. }
  87. brasilis,303,309,3 script Signpost#bra4 858,{
  88. mes ":: Jungle Cable ::";
  89. mes "- Not for the faint of heart -";
  90. close;
  91. }
  92. brasilis,278,137,3 script Signpost#bra5 858,{
  93. mes ":: Brasilis Hotel ::";
  94. close;
  95. }
  96. brasilis,137,77,5 script Ice-Cream Maker 85,{
  97. mes "[Ice Cream Maker]";
  98. mes "Come~come~";
  99. mes "Ice cream is the perfect snack for a hot day~";
  100. mes "It's just ^3355FF100 Zeny^000000~";
  101. mes "Ice Cream~";
  102. mes "Get 'yer Ice Cream!";
  103. next;
  104. switch(select("Give me one!:Ice Cream?:Cancel.")) {
  105. case 1:
  106. mes "[Ice Cream Maker]";
  107. mes "Since there are so many people want to get a cool ice cream you can order only 5 at a time.";
  108. mes "So how many d'ya want?";
  109. next;
  110. while(1) {
  111. input .@input; //,1,5;
  112. if (.@input == 0) {
  113. mes "[Ice Cream Maker]";
  114. mes "None?";
  115. mes "Fine get outta the way, I have customers to serve.";
  116. close;
  117. }
  118. else if ((.@input < 0) || (.@input > 5)) {
  119. mes "[Ice Cream Maker]";
  120. mes "Wow.";
  121. mes "You ordered too much.";
  122. mes "If you eat over 5 you might need to fight with a monster in your stomach. Calm down buddy.";
  123. next;
  124. }
  125. else
  126. break;
  127. }
  128. set .@icecream_hap,.@input*100;
  129. if (Zeny < .@icecream_hap) {
  130. mes "[Ice Cream Maker]";
  131. mes "Dood~! You don't have enough money.";
  132. mes "It's only ^3355FF100 Zeny^000000~ Seriously!";
  133. close;
  134. }
  135. if (!checkweight(536,.@input)) {
  136. mes "[Ice Cream Maker]";
  137. mes "You seem to have too much stuff.";
  138. mes "Lighten your pack before buying this.";
  139. close;
  140. }
  141. set Zeny, Zeny-.@icecream_hap;
  142. getitem 536,.@input; //Ice_Cream
  143. close;
  144. case 2:
  145. mes "[Ice Cream Maker]";
  146. mes "'Ice cream is...";
  147. mes "Wait, don't you know";
  148. mes "what Ice Cream is?";
  149. mes "What rock have you";
  150. mes "been living under?";
  151. next;
  152. mes "[Ice Cream Maker]";
  153. mes "I'm not going to even start with how weird that sounds.";
  154. mes "Anyway, get 'yer Ice Cream right here while it's nice and cold.";
  155. close;
  156. case 3:
  157. mes "[Ice Cream Maker]";
  158. mes "Don't miss your chance to eat the greatest Ice Cream in all the land~!";
  159. close;
  160. }
  161. }