summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2025-01-19 12:21:46 -0300
committerJesusaves <cpntb1@ymail.com>2025-01-19 12:21:46 -0300
commit7aad3b12465b7c9efc63f82a7ff6cc9101fa20ad (patch)
tree467be71f24b8158481b5e3538bcf8be6057c4a4a
parent092b59076e6efef6186bb30095a773a42177b8e8 (diff)
downloadserverdata-7aad3b12465b7c9efc63f82a7ff6cc9101fa20ad.tar.gz
serverdata-7aad3b12465b7c9efc63f82a7ff6cc9101fa20ad.tar.bz2
serverdata-7aad3b12465b7c9efc63f82a7ff6cc9101fa20ad.tar.xz
serverdata-7aad3b12465b7c9efc63f82a7ff6cc9101fa20ad.zip
Add more reminders for Warp Mage about Aeros Events.
-rw-r--r--npc/functions/event.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 603f5c607..f5ca2d615 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -148,6 +148,14 @@ OnInit:
.event=0;
.quota=300;
OnTimer90000:
+ // [Temporary] Warp Mage additional message
+ // (If others have interest, we can convert this in an $array$)
+ // (And then add an @ucp option to "subscribe" to it)
+ if (.event && is_between(gettimetick(2)-300, gettimetick(2)-210, .event)) {
+ if (isloggedin(2001143))
+ message(2001143, "Aeros : Hey, an Aeros Event is about to end.");
+ }
+
// Abort event and reset score
if (.event && .event < gettimetick(2)) {
.event=0;
@@ -189,6 +197,12 @@ OnTimer90000:
if ($EVENT$ == "Thanksgiving")
announce ("##1THANKSGIVING SPECIAL. TIME LIMIT: ##B45 MINUTES.##b##0"), bc_all|bc_npc;
channelmes("#world", "An event is happening on Aeros! Hurry up!");
+
+ // [Temporary] Warp Mage additional message
+ // (If others have interest, we can convert this in an $array$)
+ // (And then add an @ucp option to "subscribe" to it)
+ if (isloggedin(2001143))
+ addtimer(300000, "sThankAeros::OnReminder", 2001143);
}
// Handle Siege season
@@ -225,6 +239,10 @@ OnTimer90000:
OnForceInit:
.score+=9999;
goto OnTimer90000;
+
+OnReminder:
+ announce("Aeros Event : You have asked to be reminded five minutes after an Aeros Event is started.", bc_self|bc_pc);
+ end;
}
function script sThanksgiving {