Advertisement
johnlol

Kafra Suprema

Aug 2nd, 2023
1,051
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VeriLog 4.89 KB | Gaming | 0 0
  1. /*
  2. ________________     ______            ________      
  3. ___    |_____  /________  /______      ___  __ \_____
  4. __  /| |  __  /_  __ \_  __ \  _ \     __  /_/ /  __ \
  5. _  ___ / /_/ / / /_/ /  /_/ /  __/     _  _, _// /_/ /
  6. /_/  |_\__,_/  \____//_.___/\___/      /_/ |_| \____/
  7.  
  8. */
  9.  
  10. prontera,143,179,5  script  Kafra Suprema   894,{
  11. function Go; function Disp; function Pick; function Restrict;
  12.  
  13. function Go {
  14.     set lastwarp$, getarg(0);
  15.     set lastwarpx, getarg(1,0);
  16.     set lastwarpy, getarg(2,0);
  17.     warp getarg(0),getarg(1,0),getarg(2,0);
  18.     end;
  19. }
  20. function Disp {
  21.     if (getargcount() < 3)
  22.         set @menu$, getarg(0);
  23.     else {
  24.         set @menu$,"";
  25.         for (set .@i,getarg(1); .@i<=getarg(2); set .@i,.@i+1)
  26.             set @menu$, @menu$+getarg(0)+" "+.@i+":";
  27.     }
  28.     return;
  29. }
  30. function Pick {
  31.     set .@warp_block,@warp_block;
  32.     set @warp_block,0;
  33.     set .@select, select(@menu$);
  34.     if (getarg(0) == "") {
  35.         set .@i, .@select;
  36.         set .@map$, getarg(.@i);
  37.     } else {
  38.         set .@i, .@select-getarg(1,0);
  39.         set .@map$, getarg(0)+((.@i<10)?"0":"")+.@i;
  40.     }
  41.     if (.@warp_block & (1<<.@select)) {
  42.         message strcharinfo(0),"This map is not enabled in "+((checkre(0))?"":"Pre-")+"Renewal.";
  43.         end;
  44.     }
  45.     set .@x, @c[.@i*2];
  46.     set .@y, @c[.@i*2+1];
  47.     deletearray @c[0],getarraysize(@c);
  48.     Go(.@map$,.@x,.@y);
  49. }
  50. function Restrict {
  51.     if ((getarg(0) == "RE" && !checkre(0)) || (getarg(0) == "Pre-RE" && checkre(0))) {
  52.         if (getarg(1,0)) {
  53.             set @warp_block,0;
  54.             for (set .@i,1; .@i<getargcount(); set .@i,.@i+1)
  55.                 set @warp_block, @warp_block | (1<<getarg(.@i));
  56.         } else {
  57.             message strcharinfo(0),"This map is not enabled in "+((checkre(0))?"":"Pre-")+"Renewal.";
  58.             end;
  59.         }
  60.     }
  61.     return;
  62. }
  63.  
  64. mes "[^FF8000Kafra Suprema^000000]";
  65. mes "Olá, ^0000CD"+strcharinfo(0)+"^000000 Estou aqui para servi-lo! Por favor selecione um serviço.";
  66. menu "-^FFD700Salvar^000000.",-,"-^808000Towns^000000",Towns,"-^006400Teleporte WoE^000000.",woe,"-^800000Nada Obrigado^000000.",nao;
  67. next;
  68. M_Save:
  69.     savepoint "prontera",155,184;
  70.     callfunc "F_KafEnd",0,1,"na cidade de Prontera";
  71.  
  72. // --------------------------------------------------
  73.     Towns:
  74. // --------------------------------------------------
  75. next;
  76. mes "[^FF8000Kafra Express^000000]";
  77. mes "Por favor ^0000CD"+strcharinfo(0)+"^000000 selecione a cidade:";
  78. menu    "Prontera",G1, "Alberta",G2, "Aldebaran",G3, "Amatsu",G4, "Ayothaya",G5,
  79.         "Brasilis",G6, "Comodo",G7, "Dewata",G8, "Eclage",G9, "Einbech",G10,
  80.         "Einbroch",G11, "El Dicastes",G12, "Geffen",G13, "Gonryun",G14, "Hugel",G15,
  81.         "Izlude",G16, "Jawaii",G17, "Lighthalzen",G18, "Louyang",G19, "Lutie",G20,
  82.         "Malangdo",G21, "Malaya",G22, "Manuk",G23, "Midgarts Expedition Camp",G24,
  83.         "Mora",G25, "Morroc",G26, "Moscovia",G27, "Nameless Island",G28,
  84.         "Niflheim",G29, "Payon",G30, "Rachel",G31, "Splendide",G32, "Thor Camp",G33,
  85.         "Umbala",G34, "Veins",G35, "Yuno",G36;
  86.  
  87. G1: Go("prontera",155,183);
  88. G2: Go("alberta",28,234);
  89. G3: Go("aldebaran",140,131);
  90. G4: Go("amatsu",198,84);
  91. G5: Go("ayothaya",208,166);
  92. G6: Restrict("RE");
  93.     Go("brasilis",196,217);
  94. G7: Go("comodo",209,143);
  95. G8: Restrict("RE");
  96.     Go("dewata",200,180);
  97. G9: Restrict("RE");
  98.     Go("ecl_in01",48,53);
  99. G10: Go("einbech",63,35);
  100. G11: Go("einbroch",64,200);
  101. G12: Restrict("RE");
  102.      Go("dicastes01",198,187);
  103. G13: Go("geffen",119,59);
  104. G14: Go("gonryun",160,120);
  105. G15: Go("hugel",96,145);
  106. G16: Go("izlude",128,(checkre(3)?146:114));
  107. G17: Go("jawaii",251,132);
  108. G18: Go("lighthalzen",158,92);
  109. G19: Go("louyang",217,100);
  110. G20: Go("xmas",147,134);
  111. G21: Restrict("RE");
  112.      Go("malangdo",140,114);
  113. G22: Restrict("RE");
  114.      Go("malaya",231,200);
  115. G23: Go("manuk",282,138);
  116. G24: Go("mid_camp",210,288);
  117. G25: Restrict("RE");
  118.      Go("mora",55,146);
  119. G26: Go("morocc",156,93);
  120. G27: Go("moscovia",223,184);
  121. G28: Go("nameless_n",256,215);
  122. G29: Go("niflheim",202,174);
  123. G30: Go("payon",179,100);
  124. G31: Go("rachel",130,110);
  125. G32: Go("splendide",201,147);
  126. G33: Go("thor_camp",246,68);
  127. G34: Go("umbala",97,153);
  128. G35: Go("veins",216,123);
  129. G36: Go("yuno",157,51);
  130.  
  131. woe:
  132. next;
  133. mes "[^FF8000Kafra Express^000000]";
  134. mes "Por favor ^0000CD"+strcharinfo(0)+"^000000 selecione o castelo:";
  135. menu "-Kriemhild.",-,"-Brynhildr.",bry,"-Hrist",hri,"-Gondul.",gon,"-Skoegul",sko,"Nenhum, obrigado.",nao;
  136.  
  137. //Kiremhild
  138.  
  139. next;
  140. mes "[^FF8000Kafra Express^000000]";
  141. mes "Boa viagem!";
  142. warp "prt_gld",135,64;
  143. end;
  144.  
  145. //Brynhildr
  146.  
  147. bry:
  148. next;
  149. next;
  150. mes "[^FF8000Kafra Express^000000]";;
  151. mes "Boa viagem!";
  152. warp "prt_gld",153,136;
  153. end;
  154.  
  155. //Hrist
  156.  
  157. hri:
  158. next;
  159. mes "[^FF8000Kafra Express^000000]";
  160. mes "Boa viagem!";
  161. warp "prt_gld",240,129;
  162. end;
  163.  
  164. //Gondul
  165.  
  166. gon:
  167. next;
  168. mes "[^FF8000Kafra Express^000000]";
  169. mes "Boa viagem!";
  170. warp "prt_gld",198,239;
  171. end;
  172.  
  173. //Skoegul
  174.  
  175. sko:
  176. next;
  177. mes "[^FF8000Kafra Express^000000]";
  178. mes "Boa viagem!";
  179. warp "prt_gld",121,240;
  180. end;
  181.  
  182. nao:
  183. next;
  184. mes "[^FF8000Kafra Express^000000]";
  185. mes "Tudo bem, volte quando quiser!";
  186. close;
  187. }
  188.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement