From ac65431f720b21b566bb1f9b20229df9ed1b923e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 9 Dec 2021 14:11:41 -0300 Subject: Maptimers at Gak. Prevent rushers. --- npc/080-1/final.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/npc/080-1/final.txt b/npc/080-1/final.txt index a720bc26..4ac66fde 100644 --- a/npc/080-1/final.txt +++ b/npc/080-1/final.txt @@ -45,6 +45,11 @@ OnInit: closedialog; end; } + /* Prevent rushers */ + if (getareausers(getmap(), 6) < getmapusers(getmap())) { + dispbottom l("I wait everyone reach here, first."); + end; + } inventoryplace Carrot, 1; .@gak$=instance_npcname("Gak#X21"); .@ali$=instance_npcname("Alissa#ED2"); @@ -112,10 +117,17 @@ OnInit: // We're done 'XMAS21CUTSCENE=false; 'XMAS21ENDING=true; - X21ED2_DOCLEAR(); - getitembound Carrot, 1, 4; + maptimer2(10, instance_npcname(.name$)+"::OnFin"); end; +OnFin: + // Originally not planned, but no time to finish + // Consider this just another corner I have cut... + if (!X21ED2_CLEAR()) { + X21ED2_DOCLEAR(); + getitembound Carrot, 1, 4; + } + end; OnInit: .distance=4; -- cgit v1.2.3-60-g2f50