brasilis.txt 4.8 KB

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