summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-06-04 01:30:48 -0300
committerJesusaves <cpntb1@ymail.com>2022-06-04 01:30:48 -0300
commitcae71519b41e5ae1cb02bcd6e238a3c93b44365b (patch)
tree5f376c81fafbe9ed20af2f385f8d4b75eacac934 /npc
parentee421d461d8467ff0dcfbef78df79d5240edb5dd (diff)
downloadserverdata-cae71519b41e5ae1cb02bcd6e238a3c93b44365b.tar.gz
serverdata-cae71519b41e5ae1cb02bcd6e238a3c93b44365b.tar.bz2
serverdata-cae71519b41e5ae1cb02bcd6e238a3c93b44365b.tar.xz
serverdata-cae71519b41e5ae1cb02bcd6e238a3c93b44365b.zip
Random treasure may now drop in Legacy Tulimshar Caves if The Episode is done.
You'll find better items or higher amounts of them.
Diffstat (limited to 'npc')
-rw-r--r--npc/items/shovel.txt21
1 files changed, 18 insertions, 3 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index f5639f163..7cf2ac213 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -404,6 +404,8 @@ function script shovel_getcity {
return l("Hurnscald Mines");
if (.@a$ == "018-1")
return l("Sincerity Island");
+ if (.@a$ == "032-2")
+ return l("Tree Maze (Past Tulimshar)");
return .@a$;
}
@@ -414,17 +416,26 @@ function script shovel_randomtreasure {
.@id=any(TreasureKey,CoinBag,TreasureKey,CoinBag,CoinBag,GoldPieces,
Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst,
StrangeCoin, CasinoCoins, MercBoxA, AncientBlueprint);
+ // Legacy Tulimshar has different items
+ if (getmap() == "032-2") .@id = any(CoinBag, TreasureKey, GoldPieces,
+ Diamond,Ruby,Emerald,
+ Sapphire,Topaz,Amethyst,
+ StrangeCoin, MercBoxB, AncientBlueprint,
+ TulimWarpCrystal, AlchemyBlueprintC,
+ EarthPowder, MercBoxC, StrangeCoin);
if (rand2(400) == 136) .@id = EarthPowder; // 0.25% chance
if (rand2(2000) == 337) .@id = PirateBandana; // 0.05% chance
delitem TreasureMap, 1;
- .@amount=any(1,1,2);
+ .@amount=any(1,1,2)+(getmap() == "032-2" ? 1 : 0);
if (.@id == TreasureKey || .@id == CoinBag || .@id == StrangeCoin)
.@amount+=any(0,1,0,1,2);
if (.@id == CasinoCoins)
.@amount+=rand2(0,8);
if (.@id == MercBoxA || .@id == AncientBlueprint ||
.@id == GoldPieces || .@id == EarthPowder ||
- .@id == PirateBandana)
+ .@id == PirateBandana || .@id == MercBoxB ||
+ .@id == MercBoxC || .@id == TulimWarpCrystal ||
+ .@id == AlchemyBlueprintC)
.@amount=1;
getitem .@id, .@amount;
ShovelQuests_AssignedMAP$="";
@@ -440,7 +451,11 @@ function script shovel_randomtreasure {
}
function script shovel_genrandtreasure {
- .@m$=any("007-1", "011-1", "015-1", "018-1");
+ if (getq(LoFQuest_EPISODE) >= 16)
+ .@m$=any("007-1", "011-1", "015-1", "018-1", "032-2",
+ "007-1", "011-1", "015-1", "018-1");
+ else
+ .@m$=any("007-1", "011-1", "015-1", "018-1");
// Dangerous
do {
.@x=rand2(20, getmapinfo(MAPINFO_SIZE_X, .@m$)-20);