Advertisement
hendra814

Warper town and dungeon only

Nov 8th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 8.85 KB | None | 0 0
  1. -   script  Warper  -1,{
  2. function Go; function Disp; function Pick; function Restrict;
  3.  
  4. menu    "Simpan Posisi",simpan_posisi,
  5.     "Last Warp ^777777["+lastwarp$+"]^000000",-,
  6.     "Storage",L_storage,
  7.     "Warper",warper;
  8.  
  9.     if (lastwarp$ == "")
  10.         message strcharinfo(0),"You haven't warped anywhere yet.";
  11.     else
  12.         warp lastwarp$,lastwarpx,lastwarpy;
  13.     end;
  14.  
  15. simpan_posisi:
  16.     atcommand "@save";
  17.     callfunc "F_KafEnd",0,1,".";
  18.  
  19. L_storage:
  20. mes .@name$;
  21. mes "Would you like to view your storage?";
  22. next;
  23. switch(select("Use Storage:Storage Password Service:Cancel")){
  24. case 1:
  25.     mes "[Cool Event Corp. Staff]";
  26.     if(!callfunc("F_CanOpenStorage")){
  27.         mes "I'm sorry, but you";
  28.         mes "need the Novice's";
  29.         mes "Basic Skill Level 6 to";
  30.         mes "use the Storage Service.";
  31.         close2;
  32.         break;
  33.     }
  34.     if(countitem(7059)){
  35.     delitem 7059,1;
  36.     close2;
  37.     openstorage;
  38.     end;
  39.     }
  40.     if(Zeny < 30){
  41.         mes "I'm sorry, but you don't";
  42.         mes "have enough Zeny to use";
  43.         mes "the Storage Service. Our";
  44.         mes "Storage access fee is 30 Zeny.";
  45.         close2;
  46.         break;
  47.     }
  48.     mes "Let me open your personal";
  49.     mes "storage for you right away.";
  50.     mes "Thanks for supporting Cool";
  51.     mes "Event Corp. by using our";
  52.     mes "services. Have a good day~";
  53.     callfunc("F_CheckKafCode"); //check your storage password, if set
  54.     close2;
  55.     openstorage;
  56.     set Zeny, Zeny - 30;
  57.     end;
  58. case 2:
  59.     callfunc("F_SetKafCode","[Cool Event Corp. Staff]","Cool Event Corp.");
  60. case 3:
  61. default:
  62.     mes "[Cool Event Corp. Staff]";
  63.     mes "Cool Event Corp. is always";
  64.     mes "striving to provide the best";
  65.     mes "services for our customers.";
  66.     mes "Help us become the best by";
  67.     mes "providing us with your opinions";
  68.     mes "and honest feedback. Thank you.";
  69.     close2;
  70. }
  71.  
  72. warper:
  73. if(countitem(7060)){
  74.     delitem 7060,1;
  75.     goto choose;
  76.     end;
  77.     }
  78.     if(Zeny < 30){
  79.         mes "I'm sorry, but you don't";
  80.         mes "have enough Zeny to use";
  81.         mes "the warp Service. Our";
  82.         mes "Warp services fee is 30 Zeny.";
  83.         end;
  84.     }
  85.     mes "Let me warp you";
  86.     mes "Thanks for supporting Cool";
  87.     mes "Event Corp. by using our";
  88.     mes "services. Have a good day~";
  89.     set Zeny, Zeny - 30;
  90.     goto choose;
  91.     end;
  92. choose:
  93. menu    " ~ Towns",Towns, " ~ Dungeons",Dungeons;
  94.  
  95. function Go {
  96.     set lastwarp$, getarg(0);
  97.     set lastwarpx, getarg(1,0);
  98.     set lastwarpy, getarg(2,0);
  99.     warp getarg(0),getarg(1,0),getarg(2,0);
  100.     end;
  101. }
  102. function Disp {
  103.     if (getargcount() < 3)
  104.         set @menu$, getarg(0);
  105.     else {
  106.         set @menu$,"";
  107.         for (set .@i,getarg(1); .@i<=getarg(2); set .@i,.@i+1)
  108.             set @menu$, @menu$+getarg(0)+" "+.@i+":";
  109.     }
  110.     return;
  111. }
  112. function Pick {
  113.     set .@warp_block,@warp_block;
  114.     set @warp_block,0;
  115.     set .@select, select(@menu$);
  116.     if (getarg(0) == "") {
  117.         set .@i, .@select;
  118.         set .@map$, getarg(.@i);
  119.     } else {
  120.         set .@i, .@select-getarg(1,0);
  121.         set .@map$, getarg(0)+((.@i<10)?"0":"")+.@i;
  122.     }
  123.     if (.@warp_block & (1<<.@select)) {
  124.         message strcharinfo(0),"This map is not enabled in "+((checkre(0))?"":"Pre-")+"Renewal.";
  125.         end;
  126.     }
  127.     set .@x, @c[.@i*2];
  128.     set .@y, @c[.@i*2+1];
  129.     deletearray @c[0],getarraysize(@c);
  130.     Go(.@map$,.@x,.@y);
  131. }
  132. function Restrict {
  133.     if ((getarg(0) == "RE" && !checkre(0)) || (getarg(0) == "Pre-RE" && checkre(0))) {
  134.         if (getarg(1,0)) {
  135.             set @warp_block,0;
  136.             for (set .@i,1; .@i<getargcount(); set .@i,.@i+1)
  137.                 set @warp_block, @warp_block | (1<<getarg(.@i));
  138.         } else {
  139.             message strcharinfo(0),"This map is not enabled in "+((checkre(0))?"":"Pre-")+"Renewal.";
  140.             end;
  141.         }
  142.     }
  143.     return;
  144. }
  145.  
  146.     Towns:
  147. menu    "Prontera",T1, "Alberta",T2, "Aldebaran",T3, "Amatsu",T4, "Ayothaya",T5,
  148.         "Brasilis",T6, "Comodo",T7, "Dewata",T8, "Eclage",T9, "Einbech",T10,
  149.         "Einbroch",T11, "El Dicastes",T12, "Geffen",T13, "Gonryun",T14, "Hugel",T15,
  150.         "Izlude",T16, "Jawaii",T17, "Lighthalzen",T18, "Louyang",T19, "Lutie",T20,
  151.         "Malangdo",T21, "Malaya",T22, "Manuk",T23, "Midgarts Expedition Camp",T24,
  152.         "Mora",T25, "Morroc",T26, "Moscovia",T27, "Nameless Island",T28,
  153.         "Niflheim",T29, "Payon",T30, "Rachel",T31, "Splendide",T32, "Thor Camp",T33,
  154.         "Umbala",T34, "Veins",T35, "Yuno",T36;
  155.  
  156. T1: Go("prontera",155,178);
  157. T2: Go("alberta",28,234);
  158. T3: Go("aldebaran",140,131);
  159. T4: Go("amatsu",198,84);
  160. T5: Go("ayothaya",208,166);
  161. T6: Restrict("RE");
  162.     Go("brasilis",196,217);
  163. T7: Go("comodo",209,143);
  164. T8: Restrict("RE");
  165.     Go("dewata",200,180);
  166. T9: Restrict("RE");
  167.     Go("ecl_in01",48,53);
  168. T10: Go("einbech",63,35);
  169. T11: Go("einbroch",64,200);
  170. T12: Restrict("RE");
  171.      Go("dicastes01",198,187);
  172. T13: Go("geffen",119,59);
  173. T14: Go("gonryun",160,120);
  174. T15: Go("hugel",96,145);
  175. T16: Go("izlude",128,(checkre(3)?146:114));
  176. T17: Go("jawaii",251,132);
  177. T18: Go("lighthalzen",158,92);
  178. T19: Go("louyang",217,100);
  179. T20: Go("xmas",147,134);
  180. T21: Restrict("RE");
  181.      Go("malangdo",140,114);
  182. T22: Restrict("RE");
  183.      Go("malaya",231,200);
  184. T23: Go("manuk",282,138);
  185. T24: Go("mid_camp",210,288);
  186. T25: Restrict("RE");
  187.      Go("mora",55,146);
  188. T26: Go("morocc",156,93);
  189. T27: Go("moscovia",223,184);
  190. T28: Go("nameless_n",256,215);
  191. T29: Go("niflheim",202,174);
  192. T30: Go("payon",179,100);
  193. T31: Go("rachel",130,110);
  194. T32: Go("splendide",201,147);
  195. T33: Go("thor_camp",246,68);
  196. T34: Go("umbala",97,153);
  197. T35: Go("veins",216,123);
  198. T36: Go("yuno",157,51);
  199.  
  200.  
  201.     Dungeons:
  202. menu    "Abyss Lakes",D1, "Amatsu Dungeon",D2, "Anthell",D3,
  203.         "Ayothaya Dungeon",D4, "Bifrost Tower",D41,
  204.         "Bio Labs",D6, "Brasilis Dungeon",D7, "Byalan Dungeon",D8,
  205.         "Coal Mines",D10, "Culvert",D11, "Cursed Abbey",D12,
  206.         "Glast Heim",D17, "Hidden Dungeon",D19,
  207.         "Ice Dungeon",D20, "Juperos",D21, "Kiel Dungeon",D22,
  208.         "Magma Dungeon",D24, "Orc Dungeon",D29,
  209.         "Payon Dungeon",D30, "Pyramids",D31, "Rachel Sanctuary",D32,
  210.         "Scaraba Hole",D33, "Sphinx",D34, "Sunken Ship",D35, "Thanatos Tower",D36,
  211.         "Thor Volcano",D37;
  212.  
  213. D1: Go("hu_fild05",167,312);
  214. D2: Go("ama_in02",119,181);  
  215. D3: Go("cmd_fild08",328,356);
  216. D4: Go("ayo_fild02",279,150);
  217. D6: Go("lighthalzen",310,302);
  218. D7: Go("bra_in01",11,180);
  219. D8: Go("izlu2dun",108,88);
  220. D10: Go("mjolnir_02",79,363);
  221. D11: Go("prt_fild05",274,208);
  222. D12: Go("ve_fild07",128,133);
  223. D17: Go("glast_01",370,304);
  224. D19: Go("mjolnir_12",44,21);
  225. D20: Go("ra_fild01",233,327);
  226. D21: Go("jupe_cave",32,53);
  227. D22: Go("yuno_fild08",74,174);
  228. D24: Go("yuno_fild03",34,139);
  229. D29: Go("gef_fild10",65,335);
  230. D30: Go("pay_arche",39,131);
  231. D31: Go("moc_ruins",60,161);
  232. D32: Go("ra_temple",119,174);
  233. D33: Restrict("RE");
  234.      Go("dic_fild01",29,78);
  235. D34: Go("moc_fild19",100,99);
  236. D35: Go("alb2trea",85,107);
  237. D36: Go("hu_fild01",141,158);
  238. D37: Go("ve_fild03",168,235);
  239. D41: Restrict("RE");
  240. Go("ecl_fild01",180,86);
  241.  
  242. alb2trea,57,70,6    duplicate(Warper)   Warper#tre  811
  243. alberta,28,240,4    duplicate(Warper)   Warper#alb  811
  244. aldebaran,145,118,4 duplicate(Warper)   Warper#alde 811
  245. amatsu,203,87,4 duplicate(Warper)   Warper#ama  811
  246. ayothaya,209,169,6  duplicate(Warper)   Warper#ayo  811
  247. comodo,194,158,4    duplicate(Warper)   Warper#com  811
  248. einbech,59,38,6 duplicate(Warper)   Warper#einbe    811
  249. einbroch,69,202,4   duplicate(Warper)   Warper#einbr    811
  250. gef_fild10,71,339,4 duplicate(Warper)   Warper#orc  811
  251. geffen,127,62,4 duplicate(Warper)   Warper#gef  811
  252. glast_01,372,308,4  duplicate(Warper)   Warper#glh  811
  253. gonryun,162,128,4   duplicate(Warper)   Warper#gon  811
  254. hugel,101,151,4 duplicate(Warper)   Warper#hug  811
  255. izlu2dun,110,92,4   duplicate(Warper)   Warper#izd  811
  256. izlude,134,150,4    duplicate(Warper)   Warper#izl  811 //Pre-RE: (132,120)
  257. jawaii,253,138,4    duplicate(Warper)   Warper#jaw  811
  258. lighthalzen,162,102,4   duplicate(Warper)   Warper#lhz  811
  259. louyang,208,103,6   duplicate(Warper)   Warper#lou  811
  260. manuk,274,146,6 duplicate(Warper)   Warper#man  811
  261. mid_camp,216,288,4  duplicate(Warper)   Warper#mid  811
  262. mjolnir_02,85,364,4 duplicate(Warper)   Warper#mjo  811
  263. moc_ruins,64,164,4  duplicate(Warper)   Warper#moc  811
  264. morocc,159,97,4 duplicate(Warper)   Warper#mor  811
  265. moscovia,229,191,4  duplicate(Warper)   Warper#mos  811
  266. nameless_n,259,213,4    duplicate(Warper)   Warper#nam  811
  267. niflheim,205,179,4  duplicate(Warper)   Warper#nif  811
  268. pay_arche,42,134,4  duplicate(Warper)   Warper#arc  811
  269. payon,182,108,4 duplicate(Warper)   Warper#pay  811
  270. prontera,159,183,4  duplicate(Warper)   Warper#prt  811
  271. prt_fild05,279,223,6    duplicate(Warper)   Warper#cul  811
  272. rachel,135,116,4    duplicate(Warper)   Warper#rac  811
  273. splendide,205,153,4 duplicate(Warper)   Warper#spl  811
  274. thor_camp,249,76,4  duplicate(Warper)   Warper#thor 811
  275. umbala,106,150,3    duplicate(Warper)   Warper#umb  811
  276. veins,214,123,4 duplicate(Warper)   Warper#ve   811
  277. xmas,150,136,6  duplicate(Warper)   Warper#xmas 811
  278. yuno,162,47,4   duplicate(Warper)   Warper#yuno 811
  279. brasilis,201,222,4  duplicate(Warper)   Warper#bra  811
  280. dewata,204,186,6    duplicate(Warper)   Warper#dew  811
  281. dicastes01,194,194,6    duplicate(Warper)   Warper#dic  811
  282. ecl_in01,51,60,4    duplicate(Warper)   Warper#ecl  811
  283. malangdo,134,117,6  duplicate(Warper)   Warper#mal  811
  284. malaya,231,204,4    duplicate(Warper)   Warper#ma   811
  285. mora,57,152,4   duplicate(Warper)   Warper#mora 811
  286. moc_para01,32,35,4  duplicate(Warper)   Warper#eden 811
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement