Endless Tower Limit

Azhura

New member
Messages
50
Points
0
Anyone knows how to correctly limit the level in endless tower? for example I will only allow players to defeat until level 25.

Tried to disable the warp function and it does work but is there a better way to limit it?

 
Anyone knows how to correctly limit the level in endless tower? for example I will only allow players to defeat until level 25.

Tried to disable the warp function and it does work but is there a better way to limit it?
How about disable endless tower script and make a custom endless tower

 
Moving to correct area... This is a script release area - please post in the correct section.

 
/npc/instances/EndlessTower.txt

Find this line:

mapannounce(strnpcinfo(NPC_MAP), sprintf(_$("All Monsters on the %s Level have been defeated."), callsub(L_Display, .@level)), bc_map, C_YELLOW);


Add below:

if (.@level == 25) { //final floor
donpcevent(instance_npcname("#et_end::OnEnable"));
end;
}




Add this NPC:

Code:
1@tower,355,51,0	script	#et_end	WARPNPC,2,2,{
	mes("^0000ffA mysterious voice echoes through the room as you step in the portal.^000000");
	next();
	mes("[Mysterious Voice]");
	mes("It's still too early for you to continue to climb my tower.");
	mes("Good-bye for now.");
	next();
	mes("^0000ffAs soon as the voice stopped talking, an irresistible force lifted and moved you somewhere else.");
	close2();
	warp("alberta", 223, 36);
	end;

OnInstanceInit:
	disablenpc(instance_npcname("#et_end"));
	end;

OnEnable:
	enablenpc(instance_npcname("#et_end"));
	while (true) {
		specialeffect(EF_ENHANCE);
		sleep 1000;
	}
	end;
}
 
/npc/instances/EndlessTower.txt

Find this line:

mapannounce(strnpcinfo(NPC_MAP), sprintf(_$("All Monsters on the %s Level have been defeated."), callsub(L_Display, .@level)), bc_map, C_YELLOW);

mapannounce(strnpcinfo(NPC_MAP), sprintf(_$("All Monsters on the %s Level have been defeated."), callsub(L_Display, .@level)), bc_map, C_YELLOW);


Add below:

if (.@level == 25) { //final floor
donpcevent(instance_npcname("#et_end::OnEnable"));
end;
}

if (.@level == 25) { //final floor
donpcevent(instance_npcname("#et_end::OnEnable"));
end;
}




Add this NPC:

1@tower,355,51,0 script #et_end WARPNPC,2,2,{
mes("^0000ffA mysterious voice echoes through the room as you step in the portal.^000000");
next();
mes("[Mysterious Voice]");
mes("It's still too early for you to continue to climb my tower.");
mes("Good-bye for now.");
next();
mes("^0000ffAs soon as the voice stopped talking, an irresistible force lifted and moved you somewhere else.");
close2();
warp("alberta", 223, 36);
end;

OnInstanceInit:
disablenpc(instance_npcname("#et_end"));
end;

OnEnable:
enablenpc(instance_npcname("#et_end"));
while (true) {
specialeffect(EF_ENHANCE);
sleep 1000;
}
end;
}

1@tower,355,51,0 script #et_end WARPNPC,2,2,{
mes("^0000ffA mysterious voice echoes through the room as you step in the portal.^000000");
next();
mes("[Mysterious Voice]");
mes("It's still too early for you to continue to climb my tower.");
mes("Good-bye for now.");
next();
mes("^0000ffAs soon as the voice stopped talking, an irresistible force lifted and moved you somewhere else.");
close2();
warp("alberta", 223, 36);
end;

OnInstanceInit:
disablenpc(instance_npcname("#et_end"));
end;

OnEnable:
enablenpc(instance_npcname("#et_end"));
while (true) {
specialeffect(EF_ENHANCE);
sleep 1000;
}
end;
}

Thank you for your suggestion :)

 
Back
Top