guides_moc.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. //===== eAthena Script =======================================
  2. //= Morroc Guides
  3. //===== By: ==================================================
  4. //= kobra_k88; L0ne_W0lf
  5. //===== Current Version: =====================================
  6. //= 1.4a
  7. //===== Compatible With: =====================================
  8. //= eAthena SVN
  9. //===== Description: =========================================
  10. //= [Aegis Conversion]
  11. //= Guides for the City of Morroc
  12. //===== Additional Comments: =================================
  13. //= Fully working. Added a guide at every exit.
  14. //= v1.1 Now using duplicate command.
  15. //= 1.2 Optimized, updated common guide names [Lupus]
  16. //= 1.3 Removed Duplicates [Silent]
  17. //= 1.4 rescripted to Aegis 10.3 standards. [L0ne_W0lf]
  18. //= 1.4a Fixed some errors with the loop[Samuray22]
  19. // -Thanks to $ephiroth.
  20. //============================================================
  21. morocc,153,286,6 script Guide#moc::MocGuide 707,{
  22. cutin "moc_soldier",2;
  23. mes "[Morroc Guide]";
  24. mes "Welcome to Morroc,";
  25. mes "the frontier town of the";
  26. mes "Rune-Midgarts Kingdom.";
  27. mes "Please ask me for help if";
  28. mes "you're having any trouble";
  29. mes "finding anything in town.";
  30. set .@loop1,1;
  31. while (.@loop1) {
  32. next;
  33. switch(select("City Guide:Remove Marks from Mini-Map:Notice:Cancel")) {
  34. case 1:
  35. mes "[Morroc Guide]";
  36. mes "Please select";
  37. mes "a location from";
  38. mes "the following menu.";
  39. if (.@compass_check == 0) {
  40. mes "Would you like me";
  41. mes "to mark locations";
  42. mes "on your Mini-Map?";
  43. next;
  44. if (select("Yes.:No.") == 1) set .@compass_check,1;
  45. }
  46. set .@loop2,1;
  47. while(.@loop2) {
  48. if (.@wait_button_chk == 0) set .@wait_button_chk,1;
  49. else next;
  50. switch(select("^FF0000Thief Guild^000000:Weapon Shop:Inn:Pub:Mercenary Guild:Forge:Cancel")) {
  51. case 1:
  52. mes "[Morroc Guide]";
  53. mes "The Thief Guild is";
  54. mes "in charge of all Job";
  55. mes "Changes to the Thief";
  56. mes "Class. From what I hear,";
  57. mes "you can find them inside";
  58. mes "the Pyramids nearby...";
  59. if (.@compass_check)
  60. viewpoint 1,24,297,2,0xFF0000;
  61. break;
  62. case 2:
  63. mes "[Morroc Guide]";
  64. mes "The Weapon Shop";
  65. mes "is in the southeast";
  66. mes "end of Morroc.";
  67. if (.@compass_check)
  68. viewpoint 1,253,56,3,0xFF00FF;
  69. break;
  70. case 3:
  71. mes "[Morroc Guide]";
  72. mes "There are Inns";
  73. mes "where you can rest";
  74. mes "at the southeast and";
  75. mes "northeast ends of Morroc.";
  76. if (.@compass_check) {
  77. viewpoint 1,197,66,4,0xFF00FF;
  78. viewpoint 1,273,269,5,0xFF00FF;
  79. }
  80. break;
  81. case 4:
  82. mes "[Morroc Guide]";
  83. mes "You can find the";
  84. mes "Pub in northeast Morroc.";
  85. if (.@compass_check)
  86. viewpoint 1,52,259,6,0xFF00FF;
  87. break;
  88. case 5:
  89. mes "[Morroc Guide]";
  90. mes "The Mercenary";
  91. mes "Guild is located";
  92. mes "in East Morroc.";
  93. if (.@compass_check)
  94. viewpoint 1,284,171,7,0x00FF00;
  95. break;
  96. case 6:
  97. mes "[Morroc Guide]";
  98. mes "The Forge is";
  99. mes "located just";
  100. mes "southwest from";
  101. mes "the center of Morroc.";
  102. if (.@compass_check)
  103. viewpoint 1,47,47,7,0xFF00FF;
  104. break;
  105. case 7:
  106. mes "[Morroc Guide]";
  107. mes "Please ask me to ''Remove";
  108. mes "Marks from Mini-Map'' if you";
  109. mes "no longer wish to have the";
  110. mes "location marks displayed";
  111. mes "on your Mini-Map.";
  112. set .@loop2,0;
  113. }
  114. }
  115. break;
  116. case 2:
  117. viewpoint 2,237,41,2,0x00FF00;
  118. viewpoint 2,237,41,3,0x0000FF;
  119. viewpoint 2,46,345,4,0x00FF00;
  120. viewpoint 2,175,220,5,0xFF0000;
  121. viewpoint 2,175,220,6,0xFF0000;
  122. viewpoint 2,175,220,7,0xFF0000;
  123. set .@compass_check,0;
  124. break;
  125. case 3:
  126. mes "[Morroc Guide]";
  127. mes "Advances in sorcery and";
  128. mes "technology have allowed";
  129. mes "us to update our information";
  130. mes "system, enabling up to mark";
  131. mes "locations on your Mini-Map";
  132. mes "for easier navigation.";
  133. next;
  134. mes "[Morroc Guide]";
  135. mes "Your Mini-Map is located";
  136. mes "in the upper right corner";
  137. mes "of the screen. If you can't";
  138. mes "see it, press the Ctrl + Tab";
  139. mes "keys or click the ''Map'' button in your Basic Info Window.";
  140. next;
  141. mes "[Morroc Guide]";
  142. mes "On your Mini-Map,";
  143. mes "click on the ''+'' and ''-''";
  144. mes "symbols to zoom in and";
  145. mes "our of your Mini-Map. We";
  146. mes "hope you enjoy your travels";
  147. mes "here in the city of Morroc.";
  148. break;
  149. case 4:
  150. mes "[Morroc Guide]";
  151. mes "Alright then,";
  152. mes "try to stay out of";
  153. mes "too much trouble";
  154. mes "out there, adventurer.";
  155. close2;
  156. set .@loop1,0;
  157. }
  158. }
  159. cutin "moc_soldier",255;
  160. end;
  161. }
  162. morocc,54,97,0 duplicate(MocGuide) Guide#2moc 707