Jump to content
  • 0
Azhura

Endless Tower Limit

Question

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?

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
6 hours ago, Azhura said:

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

Share this post


Link to post
Share on other sites
  • 0
18 hours ago, Kuya Jeo said:

How about disable endless tower script and make a custom endless tower

But I am planning to release other levels too. 

Share this post


Link to post
Share on other sites
  • 0

/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:

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;
}

 

Share this post


Link to post
Share on other sites
  • 0
19 hours ago, Racaae said:

/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 :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.