Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================================
- //= 10/27/2012
- //= Valiente - New script! Warps players anywhere they want
- //= by just typing the map name!
- //= DigmaanRO - Permitted servers: www.woon-ro.com
- //============================================================
- prontera.gat,151,181,3 script Warper2::Warper2 874,{
- cutin "ep13_ahat_f",2;
- mes "[Warper]";
- mes "Would you like to be warped somewhere?";
- next;
- mes "[Warper]";
- mes "Where would you like to be warp?";
- next;
- menu "Last Warp",lastmap,"Type Map Name",type;
- lastmap:
- if(lastmap$=="") { mes "You have not warped anywhere yet!"; cutin "",255; close; }
- if(lastmap$=="arug_dun01" || lastmap$=="schg_dun01" || lastmap$=="gld_dun02" || lastmap$=="gld_dun04") {
- mes "Warping here costs ^FF0000" + BaseLevel*5000 + "^000000 Zeny.";
- next;
- switch(select("Proceed:Nevermind")) {
- case 1:
- if(BaseLevel*5000 > Zeny) {
- mes "[Warper]";
- mes "You don't have enough zeny.";
- cutin "",255;
- close;
- }
- else
- {
- warp lastmap$,lastx,lasty;
- set Zeny,Zeny-(BaseLevel*5000);
- }
- case 2:
- mes "[Warp Agent]";
- mes "Have a nice day.";
- cutin "",255;
- close;
- }
- }
- warp lastmap$,lastx,lasty; end;
- type:
- setarray .@towns$,
- "amatsu",
- "ayothaya",
- "brasilis",
- "comodo",
- "dewata",
- "dicastes01",
- "eclage",
- "einbroch",
- "geffen",
- "gonryun",
- "hugel",
- "izlude",
- "jawaii",
- "lighthalzen",
- "louyang",
- "malangdo",
- "malaya",
- "manuk",
- "mora",
- "morocc",
- "moscovia",
- "niflheim",
- "payon",
- "prontera",
- "rachel",
- "splendide",
- "thor_camp",
- "umbala",
- "veins",
- "xmas",
- "yuno"; // 31
- setarray .@tcoordsx, 197, 150, 196, 209, 199, 197, 111, 64, 120, 160, 96, 128, 213, 158, 217, 224, 212, 260, 111, 156, 219, 202, 179, 155, 130, 200, 246, 127, 216, 147, 157,52;
- setarray .@tcoordsy, 89, 113, 227, 143, 179, 187, 39, 200, 68, 121, 145, 114, 230, 92, 100, 184, 206, 175, 97, 93, 193, 174, 100, 183, 111, 153, 68, 128, 123, 134, 151,17;
- setarray .@dungeons$,
- "abyss_01",
- "abyss_02",
- "abyss_03",
- "ama_dun01",
- "ama_dun02",
- "ama_dun03",
- "anthell01",
- "anthell02",
- "ayo_dun01",
- "ayo_dun02",
- "beach_dun",
- "beach_dun2",
- "beach_dun3",
- /*"ecl_tdun01",
- "ecl_tdun02",
- "ecl_tdun03",
- "ecl_tdun04",*/
- "lhz_dun01",
- "lhz_dun02",
- "lhz_dun03",
- /*"lhz_dun04",*/
- "bra_dun01",
- "bra_dun02",
- /*"izlu2dun",*/
- "iz_dun00",
- "iz_dun01",
- "iz_dun02",
- "iz_dun03",
- "iz_dun04",
- "c_tower1",
- "c_tower2",
- "c_tower3",
- "c_tower4",
- "alde_dun01",
- "alde_dun02",
- "alde_dun03",
- "alde_dun04",
- "mjo_dun01",
- "mjo_dun02",
- "mjo_dun03",
- "dew_dun01",
- "dew_dun02",
- "ein_dun01",
- "ein_dun02",
- "gef_dun00",
- "gef_dun01",
- "gef_dun02",
- "gef_dun03",
- "gefenia01",
- "gefenia02",
- "gefenia03",
- "gefenia04",
- "glast_01",
- "gl_church",
- "gl_chyard",
- "gl_cas01",
- "gl_cas02",
- "gl_prison",
- "gl_prison1",
- "gl_knt01",
- "gl_knt02",
- "gl_in01",
- "gl_step",
- "gl_sew01",
- "gl_sew02",
- "gl_sew03",
- "gl_sew04",
- "gl_dun01",
- "gl_dun02",
- "gon_dun01",
- "gon_dun02",
- "gon_dun03",
- "prt_maze01",
- "prt_maze02",
- "prt_maze03",
- "ice_dun01",
- "ice_dun02",
- "ice_dun03",
- "ice_dun04",
- "juperos_01",
- "juperos_02",
- "jupe_core",
- "kh_dun01",
- "kh_dun02",
- "lou_dun01",
- "lou_dun02",
- "lou_dun03",
- "mag_dun01",
- "mag_dun02",
- "mosk_dun01",
- "most_dun02",
- "most_dun03",
- "nameless_n",
- "abbey01",
- "abbey02",
- "abbey03",
- "1@nyd",
- "2@nyd",
- "odin_temp01",
- "odin_temp02",
- "odin_temp03",
- "orcsdun01",
- "orcsdun02",
- "pay_dun00",
- "pay_dun01",
- "pay_dun02",
- "pay_dun03",
- "pay_dun04",
- "prt_sewb1",
- "prt_sewb2",
- "prt_sewb3",
- "prt_sewb4",
- "moc_pryd01",
- "moc_pryd02",
- "moc_pryd03",
- "moc_pryd04",
- "moc_pryd05",
- "moc_pryd06",
- "ra_san01",
- "ra_san02",
- "ra_san03",
- "ra_san04",
- "ra_san05",
- "dic_dun01",
- "dic_dun02",
- "dic_dun03",
- "in_sphinx1",
- "in_sphinx2",
- "in_sphinx3",
- "in_sphinx4",
- "in_sphinx5",
- "treasure01",
- "treasure02",
- "tha_t01";
- setarray .@dcoordsx, 264, 275, 116, 228, 34, 119, 35, 168, 275, 24, 266, 255, 23,/*ecl*/ 150, 150, 140,/*lhz_dun04*/ 199, 22,/*izlu2dun*/ 168, 253, 236, 32, 26, 199, 148, 65, 56, 297, 127, 277, 268,52,381,302,286,277,22,292,104,115,106,203, 40,203,266,130,270,156,147,199,104,14,150,150,157,77,12,258,108,171, 68,133,224,153, 28,68,176,93,23,157,151,149, 33, 53,37,150, 28, 41,218,282,165,126,47,189,163, 33,256,51,150,120,311,163,298,224,266, 32, 21, 21,19,19,155,201,131,19,180,100,192, 10,100,181,94,192,139, 32, 10,204,150, 151,365,103,288,149,210, 10,100,69,102,150;
- setarray .@dcoordsy, 272, 270, 28, 11, 41, 14, 262, 170, 19, 26, 67, 244, 260,/*ecl*/ 228, 18, 133,/*lhz_dun04*/ 41, 30,/*izlu2dun*/ 168, 252, 204, 63, 27, 159, 283, 147, 115, 25, 169, 178, 74,17,343,262,162, 31,14,290, 99,236,132,200,103, 34,168,272,304, 7, 15, 29, 25,70, 14, 15,287,68, 7,255,291,283,277,271,274, 53,113,16, 7,20, 8, 14,155, 22,158,247,63,285,226,198,196, 20, 38, 68,30, 46, 33,136,215,14, 11, 10,196,157,167,149,280,170,185,163,33,63,159,204,247,19,169, 92, 9,192, 92, 11,96, 8, 17, 21,149,218, 9, 181, 45,141, 9, 81, 54,222, 99,24, 27, 39;
- setarray .@dungeons2$,
- "tha_t02",
- "tha_t03",
- "tha_t04",
- "tha_t05",
- "tha_t06",
- "tha_t07",
- "tha_t08",
- "tha_t09",
- "tha_t10",
- "tha_t11",
- "tha_t12",
- "thor_v01",
- "thor_v02",
- "thor_v03",
- "xmas_dun01",
- "xmas_dun02",
- "tur_dun01",
- "tur_dun02",
- "tur_dun03",
- "tur_dun04",
- "um_dun01",
- "um_dun02",
- "gld_dun02",
- "gld_dun04",
- "arug_dun01",
- "schg_dun01";
- setarray .@d2coordsx,150,220, 59,62, 89, 35, 93, 29,159,19,130, 21, 75, 34,205,129,154,148,132,100,42,51, 26,200,111,200;
- setarray .@d2coordsy,136,158,143,11,221,166,148,107,138,20, 52,228,205,272, 15,133, 49,261,189,192,31,25,161,193, 31,137;
- setarray .@fields$,
- "ama_fild01",
- "ayo_fild01",
- "ayo_fild02",
- "bif_fild01",
- "bif_fild02",
- "bra_fild01",
- "cmd_fild01",
- "cmd_fild02",
- "cmd_fild03",
- "cmd_fild04",
- "cmd_fild05",
- "cmd_fild06",
- "cmd_fild07",
- "cmd_fild08",
- "cmd_fild09",
- "dew_fild01",
- "einbech",
- "ein_fild01",
- "ein_fild02",
- "ein_fild03",
- "ein_fild04",
- "ein_fild05",
- "ein_fild06",
- "ein_fild07",
- "ein_fild08",
- "ein_fild09",
- "ein_fild10",
- "dicastes02",
- "dic_fild01",
- "dic_fild02",
- "gef_fild00",
- "gef_fild01",
- "gef_fild02",
- "gef_fild03",
- "gef_fild04",
- "gef_fild05",
- "gef_fild06",
- "gef_fild07",
- "gef_fild08",
- "gef_fild09",
- "gef_fild10",
- "gef_fild11",
- "gef_fild12",
- "gef_fild13",
- "gef_fild14",
- "gon_fild01",
- "hu_fild01",
- "hu_fild02",
- "hu_fild03",
- "hu_fild04",
- "hu_fild05",
- "hu_fild06",
- "hu_fild07",
- "lhz_fild01",
- "lhz_fild02",
- "lhz_fild03",
- "lou_fild01",
- "xmas_fild01",
- "man_fild01",
- "man_fild02",
- "man_fild03",
- "moc_fild01",
- "moc_fild02",
- "moc_fild03",
- "moc_fild04",
- "moc_fild05",
- "moc_fild06",
- "moc_fild07",
- "moc_fild08",
- "moc_fild09",
- "moc_fild10",
- "moc_fild11",
- "moc_fild12",
- "moc_fild13",
- "moc_fild14",
- "moc_fild15",
- "moc_fild16",
- "moc_fild17",
- "moc_fild18",
- "moc_fild19",
- "moc_fild21",
- "moc_fild22",
- "mosk_fild01",
- "mosk_fild02",
- "mjolnir_01",
- "mjolnir_02",
- "mjolnir_03",
- "mjolnir_04",
- "mjolnir_05",
- "mjolnir_06",
- "mjolnir_07",
- "mjolnir_08",
- "mjolnir_09",
- "mjolnir_10",
- "mjolnir_11",
- "mjolnir_12",
- "nif_fild01",
- "nif_fild02",
- "pay_fild01",
- "pay_fild02",
- "pay_fild03",
- "pay_fild04",
- "pay_fild05",
- "pay_fild06",
- "pay_fild07",
- "pay_fild08",
- "pay_fild09",
- "pay_fild10",
- "pay_fild11",
- "prt_fild00",
- "prt_fild01",
- "prt_fild02",
- "prt_fild03",
- "prt_fild04",
- "prt_fild05",
- "prt_fild06",
- "prt_fild07",
- "prt_fild08",
- "prt_fild09",
- "prt_fild10",
- "prt_fild11",
- "ra_fild01",
- "ra_fild02",
- "ra_fild03",
- "ra_fild04",
- "ra_fild05",
- "ra_fild06",
- "ra_fild07";
- setarray .@fcoordsx, 190,173,212,161,156,78,180,231,191,228,224,190,234,194,172,55,190,142,182,187,185,216,195,272,173,207,196,198,34, 71, 46,213,195,257,188,166,248,195,186,221,178,136,240,235,211,220,268,222,232,252,196,216,227,240,185,240,229,115,364, 38, 84,219,177,194,184,203,213,224,229,195,209,198,156,185,209,223,206,208,209,85, 35, 37, 99,204,204,175,208,179,181,195,235,188,205,245,180,196,215,167,158,151,205,186,134,193,200,137,201,160,194,184,190,240,190,307,239,185,193,187,210,195,198,192,235,202,202,225,202,263;
- setarray .@fcoordsy, 197,134,150,322,232,34,178,160,172,194,203,223,177,175,172,68, 79,225,141,228,173,173,148,220,214,174,200,192,84,364,199,204,212,192,171,263,158,191,183,117,218,328,181,235,185,227,101,193,185,189,106,220,197,179,235,226,187,145,230,261,364,205,206,182,217,213,208,170,177,198,168,216,187,263,219,188,228,238,223,97,193,195,105, 59,120,193,213,180,240,270,202,215,144,223,206,208,229,234,206,219,148,247,204,235,177,189,224,205,150,235,206,206,143,252,213,188,194,218,183,149,164,162,166,206,208,202,214,196;
- setarray .@fields2$,
- "ra_fild08",
- "ra_fild09",
- "ra_fild10",
- "ra_fild11",
- "ra_fild12",
- "ra_fild13",
- "spl_fild01",
- "spl_fild02",
- "spl_fild03",
- "um_fild01",
- "um_fild02",
- "um_fild03",
- "um_fild04",
- "ve_fild01",
- "ve_fild02",
- "ve_fild03",
- "ve_fild04",
- "ve_fild05",
- "ve_fild06",
- "ve_fild07",
- "yggdrasil01",
- "yuno_fild01",
- "yuno_fild02",
- "yuno_fild03",
- "yuno_fild04",
- "yuno_fild05",
- "yuno_fild06",
- "yuno_fild07",
- "yuno_fild08",
- "yuno_fild09",
- "yuno_fild10",
- "yuno_fild11",
- "yuno_fild12";
- setarray .@f2coordsx, 217, 87, 277, 221, 175, 174, 288, 98, 98,217,223,237,202,186,196,222, 51,202,150,149,204,189,192,221,226,227,187,231,196,183,200,195,196;
- setarray .@f2coordsy, 201,121,181, 185, 200, 197, 34, 35,365,206,221,215,197,175,370, 45,250,324,223,307, 78,224,207,157,199,177,232,174,203,214,124,226,370;
- set .@tarraysize, getarraysize(.@towns$);
- set .@darraysize, getarraysize(.@dungeons$);
- set .@d2arraysize, getarraysize(.@dungeons2$);
- set .@farraysize, getarraysize(.@fields$);
- set .@f2arraysize, getarraysize(.@fields2$);
- set .@totalmapsize,.@totalmapsize+.@tarraysize+.@darraysize+.@d2arraysize+.@farraysize+.@f2arraysize;
- set .@darraysize,.@darraysize+.@d2arraysize;
- set .@farraysize,.@farraysize+.@f2arraysize;
- set .@warp$,"prontera"; //default value
- mes "[Warp Agent]";
- mes "There are "+ .@totalmapsize +" maps that can be inputted";
- mes "- "+ .@tarraysize +" towns";
- mes "- "+ .@darraysize +" dungeons";
- mes "- "+ .@farraysize +" fields";
- next;
- mes "Please type the name of the map you want to go:";
- mes "NOTE: ONLY FIELDS, DUNGEONS AND TOWNS.";
- mes "Example: prontera, prt_fild08, /etc.";
- next;
- input .@warp$;
- set .@i,0;
- while ((.@warp$ != .@towns$[.@i] && .@warp$ != .@dungeons$[.@i] && .@warp$ != .@dungeons2$[.@i] && .@warp$ != .@fields$[.@i] && .@warp$ != .@fields2$[.@i]) && .@i < 128) {
- set .@i,.@i+1;
- if(.@i == 128) {
- mes "[Warp Agent]";
- mes "Invalid map! You must have typed a restricted map";
- mes "or misspelled the map name.";
- cutin "",255;
- close;
- }
- }
- next;
- mes "[Warp Agent]";
- mes "You'll be warped to "+ .@warp$ +".";
- next;
- if(.@towns$[.@i] == .@warp$ ) { warp .@towns$[.@i],.@tcoordsx[.@i],.@tcoordsy[.@i]; set lastmap$,.@towns$[.@i]; set lastx,.@tcoordsx[.@i]; set lasty,.@tcoordsx[.@i]; }
- else if(.@dungeons$[.@i] == .@warp$ ) { warp .@dungeons$[.@i],.@dcoordsx[.@i],.@dcoordsy[.@i]; set lastmap$,.@dungeons$[.@i]; set lastx,.@dcoordsx[.@i]; set lasty,.@dcoordsx[.@i]; }
- else if(.@fields$[.@i] == .@warp$ ) { warp .@fields$[.@i],.@fcoordsx[.@i],.@fcoordsy[.@i]; set lastmap$,.@fields$[.@i]; set lastx,.@fcoordsx[.@i]; set lasty,.@fcoordsx[.@i]; }
- else if(.@fields2$[.@i] == .@warp$ ) { warp .@fields2$[.@i],.@f2coordsx[.@i],.@f2coordsy[.@i]; set lastmap$,.@fields2$[.@i]; set lastx,.@f2coordsx[.@i]; set lasty,.@f2coordsx[.@i]; }
- else if(.@dungeons2$[.@i] == .@warp$ ) {
- if (.@warp$ == "gld_dun02" || .@warp$ == "arug_dun01" || .@warp$ == "gld_dun04" || .@warp$ == "schg_dun01"){
- mes "[Warp NPC]";
- mes "Warping to this area costs ^FF0000" + BaseLevel*5000 + "^000000 Zeny.";
- mes "Is that ok with you?";
- next;
- switch(select("Yes:No")) {
- case 1:
- if(BaseLevel*5000 > Zeny){
- mes "[Warp Agent]";
- mes "I'm sorry, you don't have the required Zeny.";
- mes "Please come back once you earned enough.";
- cutin "",255;
- close;
- }
- else {
- set Zeny,Zeny-(BaseLevel*5000);
- warp .@dungeons2$[.@i],.@d2coordsx[.@i],.@d2coordsy[.@i];
- set lastmap$,.@dungeons2$[.@i];
- set lastx,.@d2coordsx[.@i];
- set lasty,.@d2coordsy[.@i];
- }
- case 2:
- mes "[Warp Agent]";
- mes "Have a nice day.";
- cutin "",255;
- close;
- }
- }
- else {
- warp .@dungeons2$[.@i],.@d2coordsx[.@i],.@d2coordsy[.@i];
- set lastmap$,.@dungeons2$[.@i];
- set lastx,.@d2coordsx[.@i];
- set lasty,.@d2coordsy[.@i];
- }
- }
- else {
- next;
- mes "[Warp Agent]";
- mes "I'm sorry, something appears to be wrong.";
- mes "I will contact the developer to fix this issue." ;
- mes "Sorry for the inconvenience.";
- cutin "",255;
- close;
- }
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement