brasilis.txt 4.2 KB

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