1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// rEvolt functions.
// Description:
// Mining functions.
//
// Called after you kill a mineral to check mining skill and optionally giving +ore
function script mining {
if (!LVL_MINE) return;
// It works essentially the same to hunting, but only with minerables
// At mining level 100, you always get an extra mining loot
if (rand2(100) >= LVL_MINE) return;
// default loot: <array: 0, {[loot, probability]..}>
setarray .@loot_id,
Coal, 500,
IronOre, 240,
TreasureKey, 110,
GoldNuggets, 80,
DiamondShard, 16,
SilverOre, 15,
RubyShard, 12,
CopperOre, 10,
TopazShard, 9,
EmeraldShard, 8,
AmethystShard, 7,
GoldOre, 6,
TerraniteOre, 5,
SapphireShard, 5,
DiamondPowder, 4,
RubyPowder, 4,
EmeraldPowder, 4,
SapphirePowder, 4,
TopazPowder, 4,
AmethystPowder, 4,
PlatinumOre, 3,
RotoniumOre, 2,
CrudeDiamond, 2,
CrudeRuby, 2,
CrudeEmerald, 2,
CrudeSapphire, 2,
CrudeTopaz, 2,
CrudeAmethyst, 2,
ZealiteOre, 1;
.@drop = relative_array_random(.@loot_id);
getmapxy(.@m$, .@x, .@y, 0);
makeitem(.@drop, 1, .@m$, .@x, .@y);
return;
}
|