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

5 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

/npc/instances/EndlessTower.txt

Find this line:

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

Add below:

if ([email protected] == 25) { //final floor
	donpcevent(instance_npcname("#et_end::OnEnable"));
	end;
}

 

Add this NPC:

[email protected],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, [email protected])), bc_map, C_YELLOW);

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

Add below:

if ([email protected] == 25) { //final floor donpcevent(instance_npcname("#et_end::OnEnable")); end; }

if ([email protected] == 25) { //final floor
	donpcevent(instance_npcname("#et_end::OnEnable"));
	end;
}

 

Add this NPC:

[email protected],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; }

[email protected],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

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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

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