summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-09 22:09:50 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-09 22:09:50 -0300
commit61e6ab6364da84b58d14a38bcfc8cd1d374c7835 (patch)
treeab2c0bb48f04c8a6415455860c0d31efb9444ea6 /npc
parentdf43fa10c0e96a58ea06b67f7234e718c959592d (diff)
downloadserverdata-61e6ab6364da84b58d14a38bcfc8cd1d374c7835.tar.gz
serverdata-61e6ab6364da84b58d14a38bcfc8cd1d374c7835.tar.bz2
serverdata-61e6ab6364da84b58d14a38bcfc8cd1d374c7835.tar.xz
serverdata-61e6ab6364da84b58d14a38bcfc8cd1d374c7835.zip
Reorder stuff internally, no effect whatsoever.
Diffstat (limited to 'npc')
-rw-r--r--npc/items/shovel.txt34
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