summaryrefslogtreecommitdiff
path: root/npc/functions/clear_vars.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-29 11:24:29 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-29 11:24:29 -0300
commitc7e7ed20611e63b06dfb06340127d6ac9ddc9f78 (patch)
treed9f2fe2e8a9c3a45e7534e6b15bd536535731338 /npc/functions/clear_vars.txt
parentc901566df9aa4b0b23dace21bbaec52670c5ddf1 (diff)
downloadserverdata-c7e7ed20611e63b06dfb06340127d6ac9ddc9f78.tar.gz
serverdata-c7e7ed20611e63b06dfb06340127d6ac9ddc9f78.tar.bz2
serverdata-c7e7ed20611e63b06dfb06340127d6ac9ddc9f78.tar.xz
serverdata-c7e7ed20611e63b06dfb06340127d6ac9ddc9f78.zip
This not so pretty function is Moubootaur Legends Server Updater.
It is much simpler than Hercules version and does not require admin intervention. Although more dangerous and slower.
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;
+}
+