diff options
-rw-r--r-- | npc/items/shovel.txt | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index 9cd36ac5b..9537ef3da 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -331,22 +331,6 @@ OnHour00: } -function script shovel_randomtreasure { - .@id=any(TreasureKey,CoinBag,TreasureKey,CoinBag,CoinBag,GoldPieces, - Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst); - delitem TreasureMap, 1; - .@amount=any(1,1,2); - getitem .@id, .@amount; - ShovelQuests_AssignedMAP$=""; - ShovelQuests_AssignedX=0; - ShovelQuests_AssignedY=0; - - narrator S_FIRST_BLANK_LINE, - l("You found something!"), - l("It's @@ @@.", .@amount, getitemname(.@id)); - return; -} - function script shovel_addquest { if (getargcount() < 4) { @@ -401,6 +385,24 @@ function script shovel_getcity { return .@a$; } +// [Treasure Map] functions + +function script shovel_randomtreasure { + .@id=any(TreasureKey,CoinBag,TreasureKey,CoinBag,CoinBag,GoldPieces, + Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst); + delitem TreasureMap, 1; + .@amount=any(1,1,2); + getitem .@id, .@amount; + ShovelQuests_AssignedMAP$=""; + ShovelQuests_AssignedX=0; + ShovelQuests_AssignedY=0; + + narrator S_FIRST_BLANK_LINE, + l("You found something!"), + l("It's @@ @@.", .@amount, getitemname(.@id)); + return; +} + function script shovel_genrandtreasure { .@m$=any_of("007-1", "011-1", "015-1", "018-1"); // Dangerous |