From 7fa4a1e41d43f3da04ffe8fbeba1498ab96385b9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 7 May 2020 14:58:56 +0000 Subject: Random, Wild Treasure Chests were sighted in Hurnscald Caves! Watch out for them! --- db/constants.conf | 4 ++++ db/re/item_db.conf | 28 ++++++++++++++++++++++++++++ db/re/mob_db.conf | 12 ++++++++---- 3 files changed, 40 insertions(+), 4 deletions(-) (limited to 'db') diff --git a/db/constants.conf b/db/constants.conf index 19a812e8..4c83ec8c 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -4128,6 +4128,7 @@ constants_db: { NPC_FLAG_L: 464 NPC_FLAG_R: 465 NPC_TOICHI: 466 + NPC_TREASURE: 469 NPC_TEST1: 800 NPC_PLAYER: 801 @@ -4239,5 +4240,8 @@ constants_db: { LANG_ON_SEA: 1 LANG_IN_SHIP: 2 + comment__: "Misc settings" + CHEST_WAITTIME: 900 // 15 minutes + @include "conf/import/constants.conf" } diff --git a/db/re/item_db.conf b/db/re/item_db.conf index adf5fcec..38963955 100644 --- a/db/re/item_db.conf +++ b/db/re/item_db.conf @@ -1184,6 +1184,24 @@ item_db: ( sc_start SC_INCHITRATE, 80000, 300; "> }, +{ + Id: 615 + AegisName: "TreasureMap" + Name: "Treasure Map" + Type: "IT_USABLE" + Buy: 45000 + Sell: 300 + Weight: 14 + KeepAfterUse: true + Refine: false + Script: <" + // ShovelQuests_Assigned → Coordinates for Treasure Map + if (!ShovelQuests_AssignedX) { + callfunc "shovel_genrandtreasure"; + } + dispbottom l("A treasure is burried in @@, (@@, @@)", ShovelQuests_AssignedMAP$, ShovelQuests_AssignedX, ShovelQuests_AssignedY); + "> +}, // Generic { @@ -1849,6 +1867,16 @@ item_db: ( nogstorage: true } }, +{ + Id: 808 + AegisName: "TreasureKey" + Name: "Treasure Key" + Type: "IT_ETC" + Buy: 500 + Sell: 110 + Weight: 2 + Refine: false +}, // Necklaces { Id: 1000 diff --git a/db/re/mob_db.conf b/db/re/mob_db.conf index 220ff6c1..fc3f8b9e 100644 --- a/db/re/mob_db.conf +++ b/db/re/mob_db.conf @@ -1058,8 +1058,9 @@ mob_db: ( DamageMotion: 1026 Drops: { MaggotSlime: 800 - HalfEggshell: 200 Moss: 400 + HalfEggshell: 200 + TreasureKey: 100 } }, { @@ -2647,8 +2648,9 @@ mob_db: ( AttackMotion: 672 DamageMotion: 900 Drops: { - BottleOfWater: 250 CoinBag: 500 + BottleOfWater: 250 + TreasureKey: 200 Dagger: 90 BanditTrousers: 1 BanditHood: 1 @@ -2692,11 +2694,12 @@ mob_db: ( AttackMotion: 672 DamageMotion: 900 Drops: { - EmptyBottle: 500 - CoinBag: 500 TrainingArrow: 5000 TrainingArrow: 1000 TrainingArrow: 500 + EmptyBottle: 500 + CoinBag: 500 + TreasureKey: 200 BanditTrousers: 1 BanditHood: 1 BanditGloves: 1 @@ -2741,6 +2744,7 @@ mob_db: ( AttackMotion: 672 DamageMotion: 900 Drops: { + TreasureKey: 2000 CoinBag: 750 Dagger: 150 BanditShawl: 10 -- cgit v1.2.3-70-g09d2