diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-16 13:26:51 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-16 13:26:51 -0300 |
commit | fbffaa62b04962741e8311114d1c0ec9b4dd050a (patch) | |
tree | 460cbcaa037fcdd460ab472108a90466f166361a | |
parent | 58eae4877b014135fb5d0fc7ca858f083d1e68b3 (diff) | |
download | serverdata-fbffaa62b04962741e8311114d1c0ec9b4dd050a.tar.gz serverdata-fbffaa62b04962741e8311114d1c0ec9b4dd050a.tar.bz2 serverdata-fbffaa62b04962741e8311114d1c0ec9b4dd050a.tar.xz serverdata-fbffaa62b04962741e8311114d1c0ec9b4dd050a.zip |
Implement Boss Gifts, which will replace the dropped gifts
-rw-r--r-- | db/re/item_db.conf | 78 | ||||
-rw-r--r-- | db/re/mob_db.conf | 16 | ||||
-rw-r--r-- | 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,{ |