From fb9ee180b8939c5fc07e505bf6f1b302cb87b20f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Feb 2020 18:28:34 +0000 Subject: Give players 5 seconds to collect the loot. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inform them of victory with a dispbottom, and increase OnTimeout in 5 seconds to prevent accidental explosion. Please note that player could run to ship hold's door and really mess the quest. (It would cause a double-warp effect, and Peter would ask, “I am broken?”). --- npc/000-2-1/peter.txt | 1 + npc/000-2-2/ratto.txt | 7 ++++--- npc/001-2-22/peter.txt | 1 + npc/001-2-23/ratto.txt | 5 +++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/npc/000-2-1/peter.txt b/npc/000-2-1/peter.txt index 060fa660..06825f0c 100644 --- a/npc/000-2-1/peter.txt +++ b/npc/000-2-1/peter.txt @@ -256,6 +256,7 @@ OnTimeout: // It's not _buggy_, it is just reckless. I would like a setting to restrict it // to destroy only instances owned by the char, or to destroy by name :p OnDone: + warp "000-2-1", 72, 36; .@q3 = getq3(ShipQuests_Peter); //instance_destroy(.@q3); if (@peter) diff --git a/npc/000-2-2/ratto.txt b/npc/000-2-2/ratto.txt index 14f98201..d30ccd17 100644 --- a/npc/000-2-2/ratto.txt +++ b/npc/000-2-2/ratto.txt @@ -86,12 +86,13 @@ OnRatto4Death: // This label is reached when all rattos are dead. We clear the respawn timers // (as we are going to delete the instance map anyway), warp you outside, and // from there onwards, Peter handles properly rewarding you. -L_Victor: - warp "000-2-1", 72, 36; +OnVictor: deltimer("RattosControl::OnRatto1Respawn"); deltimer("RattosControl::OnRatto2Respawn"); deltimer("RattosControl::OnRatto3Respawn"); deltimer("RattosControl::OnRatto4Respawn"); - doevent("Peter::OnDone"); + addtimercount("Peter::OnTimeout", 5000); + addtimer(5000, "Peter::OnDone"); + dispbottom l("It looks like all monsters were killed."); end; } diff --git a/npc/001-2-22/peter.txt b/npc/001-2-22/peter.txt index 85d80bbb..9c4402a2 100644 --- a/npc/001-2-22/peter.txt +++ b/npc/001-2-22/peter.txt @@ -256,6 +256,7 @@ OnTimeout: // It's not _buggy_, it is just reckless. I would like a setting to restrict it // to destroy only instances owned by the char, or to destroy by name :p OnDone: + warp "001-2-22", 72, 36; .@q3 = getq3(ShipQuests_Peter); //instance_destroy(.@q3); if (@peter) diff --git a/npc/001-2-23/ratto.txt b/npc/001-2-23/ratto.txt index 9b4130f6..24bb1e1a 100644 --- a/npc/001-2-23/ratto.txt +++ b/npc/001-2-23/ratto.txt @@ -87,11 +87,12 @@ OnRatto4Death: // (as we are going to delete the instance map anyway), warp you outside, and // from there onwards, Peter handles properly rewarding you. L_Victor: - warp "001-2-22", 72, 36; deltimer("RattosControl#Artis::OnRatto1Respawn"); deltimer("RattosControl#Artis::OnRatto2Respawn"); deltimer("RattosControl#Artis::OnRatto3Respawn"); deltimer("RattosControl#Artis::OnRatto4Respawn"); - doevent("Peter#Artis::OnDone"); + addtimercount("Peter#Artis::OnTimeout", 5000); + addtimer(5000, "Peter#Artis::OnDone"); + dispbottom l("It looks like all monsters were killed."); end; } -- cgit v1.2.3-70-g09d2