summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-28 12:04:34 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-28 12:04:34 -0300
commit5b79c118612ab2f91df5f3ae05538374ce44f5da (patch)
treec344214e5f29f198f35cca13a07ef7b5bc552c38
parent236b667f2265c29251449db0a1aefc8c9ebb5765 (diff)
downloadserverdata-5b79c118612ab2f91df5f3ae05538374ce44f5da.tar.gz
serverdata-5b79c118612ab2f91df5f3ae05538374ce44f5da.tar.bz2
serverdata-5b79c118612ab2f91df5f3ae05538374ce44f5da.tar.xz
serverdata-5b79c118612ab2f91df5f3ae05538374ce44f5da.zip
Christmas 2021 event rewards, except experience - will be manual
-rw-r--r--db/re/item_db.conf2
-rw-r--r--npc/functions/clientversion.txt36
2 files changed, 37 insertions, 1 deletions
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
////////////////////////////////////