summaryrefslogtreecommitdiff
path: root/npc/functions/clear_vars.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/clear_vars.txt')
-rw-r--r--npc/functions/clear_vars.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt
index be895576..063feaec 100644
--- a/npc/functions/clear_vars.txt
+++ b/npc/functions/clear_vars.txt
@@ -142,3 +142,20 @@ function script ClearVariables {
}
+function script ServerUpdate {
+ if ($@STARTUP) {
+ debugmes "Cowardly refusing to update server outside startup";
+ return;
+ }
+
+ // Correct Mana Pearl ID
+ // qui jul 29 11:21:38 BRT 2021
+ if ($VERSION < 1627568498) {
+ ReplaceItemFromEveryPlayer(5270, 5272);
+ $VERSION = 1627568498;
+ }
+
+ $@STARTUP = true;
+ return;
+}
+