diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-09 14:11:41 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-09 14:11:41 -0300 |
commit | ac65431f720b21b566bb1f9b20229df9ed1b923e (patch) | |
tree | a66a723a00c363e794cd34b050ad15aab19008f7 | |
parent | 20eaaafd84f391f72c66adef6e89cea9de3168ad (diff) | |
download | serverdata-ac65431f720b21b566bb1f9b20229df9ed1b923e.tar.gz serverdata-ac65431f720b21b566bb1f9b20229df9ed1b923e.tar.bz2 serverdata-ac65431f720b21b566bb1f9b20229df9ed1b923e.tar.xz serverdata-ac65431f720b21b566bb1f9b20229df9ed1b923e.zip |
Maptimers at Gak. Prevent rushers.
-rw-r--r-- | npc/080-1/final.txt | 16 |
1 files 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; |