summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-14 21:28:37 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-14 21:28:37 -0200
commit28e92d8bb50e70d51cf7d71c98b67468641efb28 (patch)
treec6e590a8852c96d6143a65076398f1866695c507 /npc/items
parent9ce466631d8be10eaf8d9b8e03c7efa54951f1c9 (diff)
downloadserverdata-28e92d8bb50e70d51cf7d71c98b67468641efb28.tar.gz
serverdata-28e92d8bb50e70d51cf7d71c98b67468641efb28.tar.bz2
serverdata-28e92d8bb50e70d51cf7d71c98b67468641efb28.tar.xz
serverdata-28e92d8bb50e70d51cf7d71c98b67468641efb28.zip
Redesign how shovel_scatter() works, I had to remove an option from Aeros master.
Now, Aeros is just an automatic scatter area.
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/shovel.txt46
1 files changed, 38 insertions, 8 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index e16fce0ce..63d4f677c 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -24,19 +24,18 @@ function script shovel_scriptItem {
return;
}
-// shovel_scatter( map, x1, y1, x2, y2, items_array, {amount} )
+// shovel_scatter( map, x1, y1, x2, y2, amount, item1, {item2, item3...} )
function script shovel_scatter {
.@map$=getarg(0);
.@x1=getarg(1);
.@y1=getarg(2);
.@x2=getarg(3);
.@y2=getarg(4);
- .@id=getarg(5);
- .@amount=getarg(6,1);
+ .@amount=getarg(5,1);
freeloop(true); // DANGEROUS
for (.@i = 0; .@i < .@amount; .@i++)
- shovel_scriptItem(.@map$, rand(.@x1,.@x2), rand(.@y1,.@y2), any_of(.@id));
+ shovel_scriptItem(.@map$, rand(.@x1,.@x2), rand(.@y1,.@y2), getarg(rand(getargcount()-6)+6));
freeloop(false);
.@wtc = getarraysize($@WBT_Random_id);
@@ -291,12 +290,43 @@ OnHour00:
// As we don't prevent treasure from falling on collision, it is pretty high.
// If two treasures fall on same place, the previous treasure will be deleted.
// Theoretical chance of uncovering a treasure on an attempt is 0.12% to 0.70%
- shovel_scatter("007-1", 20, 20, 180, 180, .@Treasure, rand(30,180));
- shovel_scatter("011-1", 20, 20, 180, 180, .@Treasure, rand(30,180));
- shovel_scatter("015-1", 20, 20, 180, 180, .@Treasure, rand(30,180));
+ shovel_scatter("007-1", 20, 20, 180, 180, rand(30,180),
+ Bread,Candy,BugLeg,Cheese,Acorn,
+ ScorpionStinger,CoinBag,RustyKnife,TreasureKey,CasinoCoins,SulfurPowder,
+ Coal,IronOre,CopperOre,LeadOre,TinOre,SilverOre,GoldOre,PlatinumOre,IridiumOre,TitaniumOre,
+ Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst,
+ BoneArrow,SacredBullet);
+ shovel_scatter("011-1", 20, 20, 180, 180, rand(30,180),
+ Bread,Candy,BugLeg,Cheese,Acorn,
+ ScorpionStinger,CoinBag,RustyKnife,TreasureKey,CasinoCoins,SulfurPowder,
+ Coal,IronOre,CopperOre,LeadOre,TinOre,SilverOre,GoldOre,PlatinumOre,IridiumOre,TitaniumOre,
+ Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst,
+ BoneArrow,SacredBullet);
+ shovel_scatter("015-1", 20, 20, 180, 180, rand(30,180),
+ Bread,Candy,BugLeg,Cheese,Acorn,
+ ScorpionStinger,CoinBag,RustyKnife,TreasureKey,CasinoCoins,SulfurPowder,
+ Coal,IronOre,CopperOre,LeadOre,TinOre,SilverOre,GoldOre,PlatinumOre,IridiumOre,TitaniumOre,
+ Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst,
+ BoneArrow,SacredBullet);
// Extra burried treasure (25~65 over 3600 tiles: aprox. 0.70% to 1.80%)
- shovel_scatter("018-1", 20, 20, 80, 80, .@Treasure, rand(25,65));
+ shovel_scatter("018-1", 20, 20, 80, 80, rand(25,65),
+ Bread,Candy,BugLeg,Cheese,Acorn,
+ ScorpionStinger,CoinBag,RustyKnife,TreasureKey,CasinoCoins,SulfurPowder,
+ Coal,IronOre,CopperOre,LeadOre,TinOre,SilverOre,GoldOre,PlatinumOre,IridiumOre,TitaniumOre,
+ Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst,
+ BoneArrow,SacredBullet);
+
+ // Aeros can't be forgotten
+ shovel_scatter("001-1", 171, 20, 340, 160, rand(80,180),
+ CoinBag,RustyKnife,TreasureKey,CasinoCoins,SulfurPowder,
+ Coal,IronOre,CopperOre,LeadOre,TinOre,SilverOre,GoldOre,PlatinumOre,IridiumOre,TitaniumOre,
+ Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst);
+ shovel_scatter("001-1", 20, 20, 140, 140, rand(80,180),
+ CoinBag,RustyKnife,TreasureKey,CasinoCoins,SulfurPowder,
+ Coal,IronOre,CopperOre,LeadOre,TinOre,SilverOre,GoldOre,PlatinumOre,IridiumOre,TitaniumOre,
+ Diamond,Ruby,Emerald,Sapphire,Topaz,Amethyst);
+
end;
}