summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-06-23 22:45:15 -0300
committerJesusaves <cpntb1@ymail.com>2020-06-23 22:45:15 -0300
commit529e1757ccdf2627e6b47ce2703901f753e78381 (patch)
treeea5f282acc24be6e5df14ada3399a926b96de82b
parent102e5a02609eb8cf3739589ea120647215e6d2c2 (diff)
downloadserverdata-529e1757ccdf2627e6b47ce2703901f753e78381.tar.gz
serverdata-529e1757ccdf2627e6b47ce2703901f753e78381.tar.bz2
serverdata-529e1757ccdf2627e6b47ce2703901f753e78381.tar.xz
serverdata-529e1757ccdf2627e6b47ce2703901f753e78381.zip
You have now 0.25% chance to unearth an [Earth Powder] from a Treasure Map
-rw-r--r--npc/items/shovel.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index bf7edcaa7..76e5d61bf 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -412,13 +412,15 @@ function script shovel_randomtreasure {
.@id=any(TreasureKey,CoinBag,TreasureKey,CoinBag,CoinBag,GoldPieces,
Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst,
StrangeCoin, CasinoCoins, MercBoxA, AncientBlueprint);
+ if (rand2(400) == 136) .@id = EarthPowder; // 0.25% chance
delitem TreasureMap, 1;
.@amount=any(1,1,2);
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)
+ if (.@id == MercBoxA || .@id == AncientBlueprint ||
+ .@id == GoldPieces || .@id == EarthPowder)
.@amount=1;
getitem .@id, .@amount;
ShovelQuests_AssignedMAP$="";