From fbffaa62b04962741e8311114d1c0ec9b4dd050a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 May 2020 13:26:51 -0300 Subject: Implement Boss Gifts, which will replace the dropped gifts --- db/re/item_db.conf | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++ db/re/mob_db.conf | 16 +++++------ npc/003-1/events.txt | 2 ++ 3 files changed, 88 insertions(+), 8 deletions(-) diff --git a/db/re/item_db.conf b/db/re/item_db.conf index fef2749c1..c3fd02990 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -16064,6 +16064,84 @@ item_db: ( callfunc("SC_Bonus", SC_KAIZEL, 60000, 40); // Revives with 40% HP if you die "> }, +{ + Id: 8021 + AegisName: "BronzeBossGift" + Name: "Bronze Boss Gift" + Type: "IT_USABLE" + Buy: 0 + Sell: 0 + Weight: 25 + KeepAfterUse: false + Refine: false + Trade: { + noselltonpc: true + nogstorage: true + nomail: true + noauction: true + } + Script: <" + setarray .@r, StrangeCoin, StrangeCoin, StrangeCoin, StrangeCoin, SharpKnife, BugLeg, Cheese, Aquada, BronzeGladius, Aquada, Lockpicks, IronAmmoBox, ArrowAmmoBox, ElixirOfLife; + .@n=rand(getarraysize(.@r)); + + if (.@n > 3) + getitem .@r[.@n], 1; + else + getitem .@r[.@n], rand(5,10); + "> +}, +{ + Id: 8022 + AegisName: "SilverBossGift" + Name: "Silver Boss Gift" + Type: "IT_USABLE" + Buy: 0 + Sell: 0 + Weight: 45 + KeepAfterUse: false + Refine: false + Trade: { + noselltonpc: true + nogstorage: true + nomail: true + noauction: true + } + Script: <" + setarray .@r, StrangeCoin, StrangeCoin, StrangeCoin, StrangeCoin, StrangeCoin, SnakeEgg, BronzeGift, Dagger, Aquada, Chagashroom, MoubooSteak, RedApple, IronOre, Coal, CursedAmmoBox, IronAmmoBox, SilverRing; + .@n=rand(getarraysize(.@r)); + + if (.@n > 4) + getitem .@r[.@n], 1; + else + getitem .@r[.@n], rand(9,21); + "> +}, +{ + Id: 8023 + AegisName: "GoldenBossGift" + Name: "Golden Boss Gift" + Type: "IT_USABLE" + Buy: 0 + Sell: 0 + Weight: 65 + KeepAfterUse: false + Refine: false + Trade: { + noselltonpc: true + nogstorage: true + nomail: true + noauction: true + } + Script: <" + setarray .@r, StrangeCoin, StrangeCoin, CasinoCoins, IronIngot, SaxsoKey, GoldenApple, GoldenRing, GoldOre, PoisonAmmoBox, CursedAmmoBox, MercBoxA, AncientBlueprint, SilverGift; + .@n=rand(getarraysize(.@r)); + + if (.@n > 2) + getitem .@r[.@n], 1; + else + getitem .@r[.@n], rand(20,40); + "> +}, ) diff --git a/db/re/mob_db.conf b/db/re/mob_db.conf index dbcd489a8..5a6f67b34 100644 --- a/db/re/mob_db.conf +++ b/db/re/mob_db.conf @@ -1549,10 +1549,10 @@ mob_db: ( StrangeCoin: 7000 StrangeCoin: 2000 AnimalBones: 1500 - BronzeGift: 1000 - SilverGift: 500 + BronzeBossGift: 1000 + SilverBossGift: 500 ArcmageBoxset: 135 - GoldenGift: 100 + GoldenBossGift: 100 YetiMask: 50 } }, @@ -7779,7 +7779,7 @@ mob_db: ( DamageMotion: 200 Drops: { DivineApple: 500 - SupremeGift: 10 + GoldenBossGift: 180 } }, { @@ -8257,8 +8257,8 @@ mob_db: ( FrozenYetiTear: 10000 AnimalBones: 8000 StrangeCoin: 3000 - BronzeGift: 2000 - SilverGift: 1000 + BronzeBossGift: 2000 + SilverBossGift: 1000 MercBoxA: 100 ArcmageBoxset: 80 YetiMask: 50 @@ -8701,7 +8701,7 @@ mob_db: ( TitaniumOre: 2500 Brainstem: 1700 StrangeCoin: 2000 - BronzeGift: 500 + BronzeBossGift: 500 SacredManaPotion: 5 } }, @@ -8749,7 +8749,7 @@ mob_db: ( Beer: 2000 CursedAmmoBox: 1500 ClothoLiquor: 1500 - BronzeGift: 1000 + BronzeBossGift: 1000 ArcmageBoxset: 150 GoldenApple: 5 } diff --git a/npc/003-1/events.txt b/npc/003-1/events.txt index e0d855863..dcb600d20 100644 --- a/npc/003-1/events.txt +++ b/npc/003-1/events.txt @@ -3,6 +3,8 @@ // Jesusalva // Description: // The NPCs on this file are for when events end. +// TODO: Unify the script, change the NPC display depending on event +// Use duplicate() command to make it available in other towns as well // Easter 003-1,47,53,0 script Lilica#final NPC_EASTER,{ -- cgit v1.2.3-70-g09d2