From 5b79c118612ab2f91df5f3ae05538374ce44f5da Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 28 Dec 2021 12:04:34 -0300 Subject: Christmas 2021 event rewards, except experience - will be manual --- db/re/item_db.conf | 2 +- npc/functions/clientversion.txt | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index 742f601f0..f0f04191d 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -18793,7 +18793,7 @@ item_db: ( noauction: true } Script: <" - setarray .@r, AncientBlueprint, ElixirOfLife, Manapple, SilverGift, GoldenGift, TreasureMap, MysteriousBottle, HousingLetterI, BrokenWarpCrystal, StatusResetPotion, ArcmageBoxset, SacredImmortalityPotion, BossHunterBoina, IridiumOre, DarkDesertMushroom, ArcanumStone; // ~6.25% each + setarray .@r, AncientBlueprint, ElixirOfLife, Manapple, SilverGift, GoldenGift, TreasureMap, MysteriousBottle, HousingLetterI, BrokenWarpCrystal, StatusResetPotion, ArcmageBoxset, SacredImmortalityPotion, BossHunterBoina, IridiumOre, DarkDesertMushroom, Arcanum; // ~6.25% each .@n=rand(getarraysize(.@r)); getitem .@r[.@n], 1; "> diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 0492279bc..2b04bc466 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -978,6 +978,42 @@ function script clientupdater { UPDATE=1632324640; setq1 HalinarzoQuest_Alvasus, getq(HalinarzoQuest_Alvasus)+1; } + // Christmas 2021 + // ter dez 28 11:57:17 BRT 2021 + if (UPDATE < 1640703437) { + setarray .@xmas21$, "jesusalva", "poppet"; + if (array_exists(.@xmas21$, .@u$)) { + .@dg=1; + showavatar NPC_LOF_RICH; + mesn ("TMW2 Staff"); + mesc l("Hello, %s! Congratulations for finishing the %s!", strcharinfo(0), b(l("Christmas 2021 Joint Event"))), 3; + mesc l("You need to pick your prizes!"), 3; + inventoryplace NPCEyes, 6, Iten, 1; + next; + mesc l("Select one:"), 3; + menuint + l("Elixir of Life"), ElixirOfLife, + l("Sacred Immortality Potion"), SacredImmortalityPotion; + mes ""; + .@it1 = @menuret; + mesc l("Select one:"), 3; + menuint + l("Short Gunstaff"), PynRevolver, + l("Rapid Gunstaff"), PynGatling, + l("Explosive Gunstaff"), PynShotgun, + l("Powerful Gunstaff"), PynRifle; + mes ""; + .@it2 = @menuret; + getitem .@it1, 5; + getitembound .@it2, 1, 1; + getitem GoldenBossGift, 1; + getitem SupremeGift, 1; + getitem MagicApple, 1; + getitem Arcanum, 1; + getitem StrangeCoin, 30; + } + UPDATE=1640703437; + } // :// End of Regular Update System //////////////////////////////////// -- cgit v1.2.3-70-g09d2