From ec20fbba4f5e03c9b03b26e110984e64cb89b6cb Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 28 Jul 2019 18:21:23 -0300 Subject: Test Server automatic shutdown --- npc/003-1/aahna.txt | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/npc/003-1/aahna.txt b/npc/003-1/aahna.txt index 94fff454a..3171edbd9 100644 --- a/npc/003-1/aahna.txt +++ b/npc/003-1/aahna.txt @@ -22,6 +22,75 @@ OnInit: .distance = 5; end; +// Test Server Utilities +OnClock0000: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("It's the last event day! Server shutting down in 20 hours!"); + end; + +OnClock1000: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("Event Server shutting down in 10 hours!"); + end; + +OnClock1500: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("Event Server shutting down in 5 hours!"); + end; + +OnClock1800: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("Event Server shutting down in 2 hours!"); + end; + +OnClock1900: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("Event Server shutting down in 1 hour!"); + end; + +OnClock1930: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("Event Server shutting down in 30 minutes!"); + end; + +OnClock1945: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("Event Server shutting down in 15 minutes!"); + end; + +OnClock1955: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("Event Server shutting down in 5 minutes!"); + end; + +OnClock1958: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("##1ATTENTION: THIS IS THE LAST OPPORTUNITY TO SELL STORAGE ITEMS AND EMPTY THE BANK."); + end; + +OnClock2000: + if (gettime(GETTIME_DAYOFMONTH) != 31) + end; + kamibroadcast("Wp everyone", "Saulc"); + sleep(500); + kamibroadcast("Thanks everyone for participating on the event.", "Jesusalva"); + sleep(2000); + kamibroadcast("Event Server will now shutdown, I hope to be handing out the rewards within the next 15 days.", "Jesusalva"); + sleep(5000); + kamibroadcast("Stay tuned with the updates!", "Jesusalva"); + sleep(3000); + atcommand "@serverexit 100"; + end; + // Server Happy Hour OnSun1800: $@EXP_EVENT=rand2(15, 20); -- cgit v1.2.3-60-g2f50