diff options
author | Jesusaves <cpntb1@ymail.com> | 2025-01-17 10:04:23 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2025-01-17 10:04:23 -0300 |
commit | 23ff20f560cb8350bfcf8d6394f2cd190ee068c0 (patch) | |
tree | e1c0edb3af07b68748137e42f3c49544dd3fcc4c | |
parent | e428df46fa834b57f9d92d178fe120a787a04079 (diff) | |
download | serverdata-23ff20f560cb8350bfcf8d6394f2cd190ee068c0.tar.gz serverdata-23ff20f560cb8350bfcf8d6394f2cd190ee068c0.tar.bz2 serverdata-23ff20f560cb8350bfcf8d6394f2cd190ee068c0.tar.xz serverdata-23ff20f560cb8350bfcf8d6394f2cd190ee068c0.zip |
Remove some old code (Valentine's Day 2020)
-rw-r--r-- | npc/003-3/malindou.txt | 16 | ||||
-rw-r--r-- | npc/functions/clientversion.txt | 53 |
2 files changed, 16 insertions, 53 deletions
diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index 73f232013..0e00f68bf 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -689,7 +689,6 @@ OnInit: debugmes "* New homunculus skills"; debugmes ""; } - */ // The following UPDATE value on: Sun Aug 20 17:11:45 CEST 2023 // Typo update: FMOLY -> FYMOLY. if ($UPDATE < 1692544305) { @@ -1005,6 +1004,7 @@ OnInit: disablenpc "Lightbringer"; $UPDATE = 1702683000; } + */ // Current UPDATE value: Dom Jun 02 13:14:50 -03 2024 // Replace ShipQuests_Julia ID, eliminate artifacts if needed if ($UPDATE < 1717344890) { @@ -1036,7 +1036,19 @@ OnInit: debugmes "* Invalidate quest ID 0 and Alcohol memory, restart Aurora"; debugmes ""; } - + // Current UPDATE value: Sex 17 Jan 2025 10:04:00 -03 + // Accumulated bugs cleanup + if ($UPDATE < 1737119040) { + $UPDATE=1737119040; + debugmes "* [Bugfix] Remove old variables..."; + DelAccRegFromEveryPlayer("#VALENTINE20_REWARDS"); + DelAccRegFromEveryPlayer("#ADD_TMP_LVL"); + DelAccRegFromEveryPlayer("#SAVED_LVL"); + DelAccRegFromEveryPlayer("#DEBUG_LEVEL1"); + DelAccRegFromEveryPlayer("DEBUG_LEVEL2"); + DelAccRegFromEveryPlayer("DEBUG_LEVEL3"); + DelAccRegFromEveryPlayer("DEBUG_EXP"); + } // This mensures Contributors Credits, and changes only during updates. // All names in lower case. Only TMW2 direct work! Non-TMW2 contributors diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 490471346..5e45bdd3e 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -1338,18 +1338,6 @@ function script clientupdater { // :// End of Regular Update System //////////////////////////////////// - // Valentine 2020 Record - if (#VALENTINE20_REWARDS) { - .@dg=1; - // Get misc items - getitem OolongTea, 3; - getitem SpearmintTea, 5; - getitem CrazyRum, 1; - getitem DwarvenSake, 3; - dispbottom col(l("THANK YOU for participating on cross-server Valentine 2020 Event! We hope you had fun!"), 7); - #VALENTINE20_REWARDS=false; - } - // Deconstitute global login variables if ($BETASERVER && ##ADD_SC) { #ADD_SC += ##ADD_SC; @@ -1395,45 +1383,8 @@ function script clientupdater { } } - // Non Permament Level Boost - if (#ADD_TMP_LVL) { - // Grant the level - if (numdate() <= 20200216 && !#SAVED_LVL) { - #SAVED_LVL=BaseLevel; - BaseLevel=#ADD_TMP_LVL; - dispbottom l("Level set from %d to %d", #SAVED_LVL, BaseLevel); - - // Welcome message - .@dg=true; - showavatar NPC_LOF_RICH; - mesn "Moubootaur Legends Server"; - mesc l("First of all: Welcome! Your level was temporaly modified, it'll be reverted once event is over."), 3; - next; - mesn "Moubootaur Legends Server"; - mesc l("You will be able to pick basic weapons and skills at the Event Soul Menhir."), 3; - next; - mesn "Moubootaur Legends Server"; - mesc l("Be careful during night, use \"@tutorial\" in case of doubt, use \"%s\" to go to the event, and good luck!", b("@toevent")), 3; - next; - // Restore the level - } else if (numdate() > 20200216 && #SAVED_LVL) { - dispbottom l("Level reset from %d to %d", BaseLevel, #SAVED_LVL); - // Save - #DEBUG_LEVEL1=#ADD_TMP_LVL; - #DEBUG_LEVEL2=BaseLevel; - #DEBUG_LEVEL3=#DEBUG_LEVEL2-#DEBUG_LEVEL1; - #DEBUG_EXP=BaseExp; - // Reset - //BaseLevel=#SAVED_LVL; - //#SAVED_LVL=0; - #ADD_TMP_LVL=0; - // Player too late for event! - } else if (numdate() > 20200216) { - dispbottom l("This event has already ended."); - #ADD_TMP_LVL=0; - } - } - + // If there was a dialog box, show the close button + // (But keep in mind others scripts will run after this) if (.@dg) { next; closeclientdialog; |