diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-18 05:50:27 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-18 05:50:27 -0300 |
commit | 5c90003cf468780c7dc6c3860928749afaf07a42 (patch) | |
tree | ffe832ee4e34feec4f8e4186e57de2a75424489d /npc/functions | |
parent | f3251c4c49743dbdaf9cb22a4f4d10ff07d118eb (diff) | |
download | serverdata-5c90003cf468780c7dc6c3860928749afaf07a42.tar.gz serverdata-5c90003cf468780c7dc6c3860928749afaf07a42.tar.bz2 serverdata-5c90003cf468780c7dc6c3860928749afaf07a42.tar.xz serverdata-5c90003cf468780c7dc6c3860928749afaf07a42.zip |
Sketch Normalize functions for Aurora Events (will be cast after a server restart)
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/aurora.txt | 13 | ||||
-rw-r--r-- | npc/functions/event.txt | 1 |
2 files changed, 13 insertions, 1 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt index 1eca1f6a8..02b4aae35 100644 --- a/npc/functions/aurora.txt +++ b/npc/functions/aurora.txt @@ -24,7 +24,7 @@ // $@REGNUM_BLESSMAP_H$ // Human-readable form of the map under Regnum's Blessing // Q_AuroraEvent -// Quest Variable: FYEVENT_CYCLE, Score, ClaimedControl +// Quest Variable: DayCtrl, Score, ClaimedControl // AEF: BEGIN function script FYNewEvent { @@ -226,3 +226,14 @@ function script FYRewardEvent { return; } + + +// Normalize Aurora Event after a server restart +function script FYE_Normalize { + if ($EVENT$ == "Regnum") { + // Reapply the Regnum's blessing + setmapflag($REGNUM_BLESSMAP$, mf_bexp, 200); + } + return; +} + diff --git a/npc/functions/event.txt b/npc/functions/event.txt index 1bd39b2b8..8f55bfb21 100644 --- a/npc/functions/event.txt +++ b/npc/functions/event.txt @@ -276,6 +276,7 @@ OnInit: // Some setup disablenpc "sPatrick"; + FYE_Normalize(); // Check for events every midnight OnClock0000: |