Azhura 0 Posted April 8, 2021 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? Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted April 8, 2021 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 Quote Share this post Link to post Share on other sites
0 Luciar 14 Posted April 8, 2021 Moving to correct area... This is a script release area - please post in the correct section. 1 Azhura reacted to this Quote Share this post Link to post Share on other sites
0 Azhura 0 Posted April 9, 2021 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. Quote Share this post Link to post Share on other sites
0 Racaae 10 Posted April 10, 2021 /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; } 1 Azhura reacted to this Quote Share this post Link to post Share on other sites
0 Azhura 0 Posted April 11, 2021 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 Quote Share this post Link to post Share on other sites
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