Jump to content
  • 0

Since "close" changed to "end" my warper has a huge bug


leertaste

Question


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

Hey guys,

 

as the title says, I have a big problem with my warper since the command "close" changed to "end".

The problem is, that the window where I can choose where I want to teleport to closes without any reason but I'm in dialog with that npc so I have to reconnect to go on playing...


Here is my warper:

 

//===== rAthena Script ======================================= 
//= Warper
//===== By: ================================================== 
//= Euphy
//===== Current Version: =====================================
//= 1.4
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: ========================================= 
//= A complete - but very condensed - warper script.
//= Some coordinates written by Tekno-Kanix and ToastOfDoom.
//===== Additional Comments: =================================
//= 1.0 Initial script.
//= 1.1 Added missing duplicates and fixed coordinates.
//= 1.2 Added new episodes and simplified functions.
//= 1.3 Added Renewal checks and Instances menu.
//=     Aligned coordinates with @go.
//= 1.4 Added new Guild Dungeons.
//============================================================

-	script	Warper	-1,{
function Go; function Disp; function Pick; function Restrict;

// --------------------------------------------------
//	Main Menu:
// --------------------------------------------------

menu	"Last Warp ^777777["+lastwarp$+"]^000000",-,
	" ~ Towns",Towns, 
	" ~ Dungeons",Dungeons,
	" ~ Special Areas",Special;

	if (lastwarp$ == "")
		message strcharinfo(0),"You haven't warped anywhere yet.";
	else
		warp lastwarp$,lastwarpx,lastwarpy;
	end;

// ------------------- Functions -------------------
// * Go("<map>",<x>,<y>);
//	~ Warps directly to a map.
//
// * Disp("<Menu Option>",<first option>,<last option>);
// * Pick("<map_prefix>"{,<index offset>});
//	~ Dynamic menu and map selection (auto-numbered).
//
// * Disp("<Option 1>:<Option 2>:<etc.>");
// * Pick("","<map1>","<map2>","<etc.>");
//	~ Manual menu and map selection (listed).
//
// * Restrict("<RE | Pre-RE>"{,<menu option numbers>});
//	~ Only allows map for Renewal or Pre-Renewal modes.
//     If menu option numbers are given, only those maps
//     will be restricted (i.e. not for "Go").
//
// Other notes:
//   ~ Array @c[] holds all (x,y) coordinates.
//   ~ Use @c[2] EXCEPT when maps begin dynamically
//	  at 0: use @c[0] and Pick() offset 1.
// --------------------------------------------------

function Go {
	warp getarg(0),getarg(1,0),getarg(2,0);
	getmapxy(lastwarp$,lastwarpx,lastwarpy,0);
	end;
}
function Disp {
	if (getargcount() < 3)
		set @menu$, getarg(0);
	else {
		set @menu$,"";
		for(set .@i,getarg(1); .@i<=getarg(2); set .@i,.@i+1)
			set @menu$, @menu$+getarg(0)+" "+.@i+":";
	}
	return;
}
function Pick {
	set .@warp_block,@warp_block;
	set @warp_block,0;
	if (getarg(0) == "") {
		set .@select, select(@menu$);
		set .@i, .@select;
		set .@map$, getarg(.@i);
	} else {
		set .@select, select(@menu$);
		set .@i, .@select-getarg(1,0);
		set .@map$, getarg(0)+((.@i<10)?"0":"")+.@i;
	}
	if (.@warp_block & (1<<.@select)) {
		message strcharinfo(0),"This map is not enabled in "+((checkre(0))?"":"Pre-")+"Renewal.";
		end;
	}
	warp .@map$,@c[.@i*2],@c[.@i*2+1];
	getmapxy(lastwarp$,lastwarpx,lastwarpy,0);
	deletearray @c[0],getarraysize(@c);
	end;
}
function Restrict {
	if ((getarg(0) == "RE" && !checkre(0)) || (getarg(0) == "Pre-RE" && checkre(0))) {
		if (getarg(1,0)) {
			set @warp_block,0;
			for(set .@i,1; .@i<getargcount(); set .@i,.@i+1)
				set @warp_block, @warp_block | (1<<getarg(.@i));
		} else {
			message strcharinfo(0),"This map is not enabled in "+((checkre(0))?"":"Pre-")+"Renewal.";
			end;
		}
	}
	return;
}

// --------------------------------------------------
	Towns:
// --------------------------------------------------
menu	"Maintown Prontera",T1, "Alberta",T2, "Aldebaran",T3, "Amatsu",T4, "Ayothaya",T5,
	"Brasilis",T6, "Comodo",T7, "Dewata",T29, "Eclage",T30, "Einbech",T8, 
	"Einbroch",T9, "El Dicastes",T31, "Geffen",T10, "Gonryun",T11, "Hugel",T12,
	"Izlude",T13, "Jawaii",T14, "Lighthalzen",T15, "Louyang",T16, "Lutie",T17,
	"Malangdo",T32, "Malaya",T33, "Manuk",T34, "Mora",T35, "Morocc",T18, "Moscovia",T19, "Nameless Island",T20,
	"Niflheim",T21, "Payon",T22, "Rachel",T23, "Splendide",T24, "The other World",T25, "Thor Camp",T36,
	"Umbala",T26, "Veins",T27, "Yuno",T28;

T1: Go("prontera",155,100);
T2: Go("alberta",28,234);
T3: Go("aldebaran",140,119);
T4: Go("amatsu",201,99);
T5: Go("ayothaya",150,118);
T6: Go("brasilis",196,217);
T7: Go("comodo",189,156);
T8: Go("einbech",70,95);
T9: Go("einbroch",64,200);
T10: GO("geffen",120,104);
T11: GO("gonryun",159,119);
T12: GO("hugel",97,157);
T13: GO("izlude",127,146);
T14: GO("jawaii",112,184);
T15: GO("lighthalzen",159,95);
T16: GO("louyang",218,101);
T17: GO("xmas",148,132);
T18: GO("morocc",158,96);
T19: GO("moscovia",224,195);
T20: GO("nameless_i",244,215);
T21: GO("niflheim",194,184);
T22: GO("payon",176,107);
T23: GO("rachel",120,141);
T24: GO("splendide",196,150);
T25: GO("mid_camp",219,238);
T26: GO("umbala",122,146);
T27: GO("veins",216,124);
T28: GO("yuno",158,172);
T29: Go("dewata",199,179);
T30: Go("eclage",111,39);
T31: Go("dicastes01",197,187);
T32: Go("malangdo",224,184);
T33: Go("malaya",212,206);
T34: Go("manuk",260,175);
T35: Go("mora",111,97);
T36: Go("thor_camp",246,68);

// --------------------------------------------------
	Dungeons: //nameless
// --------------------------------------------------
menu	"Abyss Lakes",D1, "Amatsu Dungeon",D2, "Anthell",D3,
	"Ayothaya Dungeon",D4, "Beach Dungeon",D5, "Bio Labs",D6,
	"Brasilis Dungeon",D7, "Bibilan Dungeon",D8, "Clock Tower",D9,
	"Coal Mine",D10, "Culvert",D11, "Dewata Dungeon",D41,
	"Einbech Dungeon",D12, "Endless Tower",D13, "Gefenia",D14,
	"Geffen Tower",D15, "Glast Heim",D16, "Gonryun Dungeon",D17,
	"Hidden Temple",D18, "Ice Cave",D19,
	"Juperos",D20, "Kiel Dungeon",D21, "Louyang Dungeon",D22,
	"Magma Dungeon",D23, "Malangdo Dungeon",D42, "Manuk Dungeon",D24, "Moscovia Forest",D25, "Nameless Dungeon",D26,
	"Nidhogg's Dungeon",D27, "Odin Temple",D28, "Orc Dungeon",D29, "Payon Cave",D30,
	"Pyramids",D31, "Rachel Sanctuary",D32,
	"Sphinx",D33, "Sunken Ship",D34, "Thanatos Tower",D35, "Thor Volcano",D36,
	"Toy Factory",D37, "Turtle Dungeon",D38, "Umbala Dungeon",D39, "Yggdrasil Dungeon",D40;

D1: GO("hu_fild05",190,206);
D2: GO("ama_dun01",227,11);
D3: GO("cmd_fild08",326,354);
D4: GO("ayo_fild02",276,150);
D5: GO("comodo",176,355);
D6: GO("lighthalzen",73,59);
D7: GO("bra_dun01",45,204);
D8: GO("izlu2dun",107,89);
D9: GO("c_tower1",200,163);
D10: GO("mjolnir_02",79,360);
D11: GO("prt_fild05",276,214);
D12: GO("einbech",138,247);
D13: GO("e_tower",75,111);
D14: GO("gefenia01",59,169);
D15: GO("gef_dun00",104,98);
D16: GO("glast_01",364,302);
D17: GO("gonryun",159,197);
D18: GO("prt_fild01",136,364);
D19: GO("ra_fild01",233,327);
D20: GO("yuno_fild07",215,176);
D21: GO("kh_dun01",64,12);
D22: GO("louyang",42,275);
D23: GO("yuno_fild03",41,141);
D24: GO("mid_camp",328,156);
D25: GO("mosk_fild02",192,248);
D26: GO("nameless_n",163,185);
D27: GO("spl_fild01",360,110);
D28: GO("hugel",202,108);
D29: GO("gef_fild10",69,333);
D30: GO("pay_arche",45,133);
D31: GO("moc_ruins",69,159);
D32: GO("ra_san01",140,134);
D33: GO("moc_fild19",109,99);
D34: GO("alb2trea",75,99);
D35: GO("tha_scene01",140,198);
D36: GO("ve_fild03",168,235);
D37: GO("xmas",143,308);
D38: GO("tur_dun01",154,235);
D39: GO("umbala",115,282);
D40: GO("spl_fild01",366,69);
D41: GO("dew_dun01",285,160);
D42: GO("mal_dun01",33,230);

// --------------------------------------------------
	Special:
// --------------------------------------------------
menu	"Premium Area",S1, "Refine House",S2, "Novice Grounds",S3, "Prison",S4;

S1: Go("new_2-2",27,179);
S2: Go("prt_in",60,66);
S3: Go("new_1-2",100,92);
S4: Go("sec_pri",23,59);
}

// --------------------------------------------------
//	Duplicates:
// --------------------------------------------------

		// Towns =============================

prontera,146,100,2	duplicate(Warper)	Warper#1	831
alberta,32,243,4	duplicate(Warper)	Warper#2	831
aldebaran,141,123,4	duplicate(Warper)	Warper#3	831
amatsu,208,103,4	duplicate(Warper)	Warper#4	831
ayothaya,155,121,4	duplicate(Warper)	Warper#5	831
comodo,195,158,4	duplicate(Warper)	Warper#6	831
einbech,73,97,4	duplicate(Warper)	Warper#7	831
einbroch,59,207,5	duplicate(Warper)	Warper#8	831
geffen,124,108,4	duplicate(Warper)	Warper#9	831
gonryun,152,130,4	duplicate(Warper)	Warper#10	831
hugel,91,158,5	duplicate(Warper)	Warper#11	831
izlude,131,154,4	duplicate(Warper)	Warper#12	831
jawaii,107,182,5	duplicate(Warper)	Warper#13	831
lighthalzen,162,100,4	duplicate(Warper)	Warper#14	831
louyang,212,106,5	duplicate(Warper)	Warper#15	831
morocc,163,98,4	duplicate(Warper)	Warper#16	831
niflheim,193,188,4	duplicate(Warper)	Warper#17	831
payon,181,110,4	duplicate(Warper)	Warper#18	831
rachel,113,141,5	duplicate(Warper)	Warper#19	831
splendide,197,154,4	duplicate(Warper)	Warper#20	831
umbala,117,152,5	duplicate(Warper)	Warper#21	831
xmas,154,139,4	duplicate(Warper)	Warper#22	831
yuno,168,176,4	duplicate(Warper)	Warper#23	831
veins,220,128,4	duplicate(Warper)	Warper#24	831
nameless_i,246,218,4	duplicate(Warper)	Warper#25	831
new_1-2,104,96,4	duplicate(Warper)	Warper#26	831
moscovia,230,198,4	duplicate(Warper)	Warper#27	831
thor_camp,245,126,4	duplicate(Warper)	Warper#28	831
brasilis,193,221,5	duplicate(Warper)	Warper#29	831
mid_camp,223,241,4	duplicate(Warper)	Warper#30	831
mora,107,93,2	duplicate(Warper)	Warper#75	831

		// Dungeons =============================

nameless_n,159,187,4	duplicate(Warper)	Warper#31	831
hu_fild05,186,209,4	duplicate(Warper)	Warper#32	831
ama_dun01,229,14,4	duplicate(Warper)	Warper#33	831
cmd_fild08,328,357,4	duplicate(Warper)	Warper#34	831
ayo_fild02,278,154,4	duplicate(Warper)	Warper#35	831
comodo,178,355,4	duplicate(Warper)	Warper#36	831
izlu2dun,110,92,4	duplicate(Warper)	Warper#37	831
c_tower1,202,166,4	duplicate(Warper)	Warper#38	831
mjolnir_02,76,362,5	duplicate(Warper)	Warper#39	831
prt_fild05,276,218,5	duplicate(Warper)	Warper#40	831
einbech,132,249,5	duplicate(Warper)	Warper#41	831
gef_dun00,108,100,4	duplicate(Warper)	Warper#42	831
gefenia01,61,172,4	duplicate(Warper)	Warper#43	831
glast_01,367,305,4	duplicate(Warper)	Warper#44	831
kh_dun01,66,15,4	duplicate(Warper)	Warper#45	831
gonryun,156,199,5	duplicate(Warper)	Warper#46	831
ra_fild01,230,329,5	duplicate(Warper)	Warper#47	831
prt_fild01,138,368,4	duplicate(Warper)	Warper#48	831
yuno_fild07,212,179,4	duplicate(Warper)	Warper#49	831
lighthalzen,71,57,4	duplicate(Warper)	Warper#50	831
yuno_fild03,38,143,4	duplicate(Warper)	Warper#51	831
mosk_fild02,194,251,4	duplicate(Warper)	Warper#52	831
hugel,205,110,4	duplicate(Warper)	Warper#53	831
gef_fild10,63,330,5	duplicate(Warper)	Warper#54	831
pay_arche,42,136,4	duplicate(Warper)	Warper#55	831
moc_ruins,71,163,4	duplicate(Warper)	Warper#56	831
ra_san01,145,143,4	duplicate(Warper)	Warper#57	831
louyang,37,277,5	duplicate(Warper)	Warper#58	831
moc_fild19,110,101,4	duplicate(Warper)	Warper#59	831
alb2trea,74,101,4	duplicate(Warper)	Warper#60	831
tha_scene01,141,195,5	duplicate(Warper)	Warper#61	831
ve_fild03,172,238,4	duplicate(Warper)	Warper#62	831
xmas.gat,140,311,4	duplicate(Warper)	Warper#63	831
tur_dun01,159,240,4	duplicate(Warper)	Warper#64	831
umbala,113,286,4	duplicate(Warper)	Warper#65	831
spl_fild01,363,112,4	duplicate(Warper)	Warper#66	831
mid_camp,332,157,4	duplicate(Warper)	Warper#67	831
spl_fild01,371,71,4	duplicate(Warper)	Warper#68	831
e_tower,73,116,5	duplicate(Warper)	Warper#69	831
bra_dun01,38,204,5	duplicate(Warper)	Warper#70	831

		// Special Areas =============================

new_2-2,32,185,4	duplicate(Warper)	Warper#71	831
prt_in,65,64,2	duplicate(Warper)	Warper#72	831
sec_pri,26,47,5	duplicate(Warper)	Warper#73	831

What the hell is wrong? Why do this happen?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1131
  • Joined:  05/27/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

Hm.. but sometimes it happens after like 2-5 seconds.
Sometimes it doesnt happen at all

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...