-
-
Notifications
You must be signed in to change notification settings - Fork 852
Expand file tree
/
Copy paththe_monster.lua
More file actions
121 lines (108 loc) · 3.57 KB
/
the_monster.lua
File metadata and controls
121 lines (108 loc) · 3.57 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
local mType = Game.createMonsterType("The Monster")
local monster = {}
monster.description = "The Monster"
monster.experience = 30000
monster.outfit = {
lookType = 1600,
}
monster.bosstiary = {
bossRaceId = 2299,
bossRace = RARITY_ARCHFOE,
}
monster.health = 450000
monster.maxHealth = 450000
monster.race = "blood"
monster.corpse = 42247
monster.speed = 180
monster.manaCost = 0
monster.changeTarget = {
interval = 4000,
chance = 15,
}
monster.strategiesTarget = {
nearest = 60,
health = 30,
damage = 10,
}
monster.flags = {
summonable = false,
attackable = true,
hostile = true,
convinceable = false,
pushable = false,
rewardBoss = true,
illusionable = false,
canPushItems = true,
canPushCreatures = true,
critChance = 10,
staticAttackChance = 90,
targetDistance = 1,
runHealth = 0,
healthHidden = false,
isBlockable = false,
canWalkOnEnergy = true,
canWalkOnFire = true,
canWalkOnPoison = true,
}
monster.light = {
level = 0,
color = 0,
}
monster.loot = {
{ name = "platinum coin", chance = 100000, maxcount = 30 },
{ id = 3039, chance = 35542, maxCount = 2 }, -- red gem
{ name = "ultimate health potion", chance = 27000, maxcount = 7 },
{ name = "ultimate mana potion", chance = 24300, maxcount = 5 },
{ name = "ultimate spirit potion", chance = 25750, maxcount = 4 },
{ name = "mastermind potion", chance = 23200, maxcount = 3 },
{ id = 49271, chance = 23200, maxcount = 3 }, -- transcendence potion
{ name = "berserk potion", chance = 24800, maxcount = 3 },
{ name = "bullseye potion", chance = 23500, maxcount = 3 },
{ name = "yellow gem", chance = 26200, maxcount = 5 },
{ name = "blue gem", chance = 25100 },
{ name = "green gem", chance = 24600 },
{ name = "violet gem", chance = 25350 },
{ name = "giant amethyst", chance = 4300 },
{ name = "giant topaz", chance = 4600 },
{ name = "giant emerald", chance = 4500 },
{ id = 33778, chance = 900 }, -- raw watermelon turmaline
{ name = "alchemist's notepad", chance = 420 },
{ name = "antler-horn helmet", chance = 390 },
{ name = "mutant bone kilt", chance = 450 },
{ name = "mutated skin armor", chance = 430 },
{ name = "mutated skin legs", chance = 410 },
{ name = "stitched mutant hide legs", chance = 440 },
{ name = "alchemist's boots", chance = 460 },
{ name = "mutant bone boots", chance = 400 },
{ name = "mutant hide trousers", chance = 400 },
}
monster.attacks = {
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -2800 },
{ name = "combat", interval = 2000, chance = 35, type = COMBAT_ENERGYDAMAGE, minDamage = -600, maxDamage = -1200, effect = CONST_ME_ENERGYAREA, target = true, radius = 5, range = 3 },
{ name = "destroy magic walls", interval = 1000, chance = 50 },
}
monster.defenses = {
defense = 54,
armor = 59,
mitigation = 3.7,
{ name = "combat", interval = 2000, chance = 25, type = COMBAT_HEALING, minDamage = 900, maxDamage = 2400, effect = CONST_ME_MAGIC_BLUE, target = false },
}
monster.elements = {
{ type = COMBAT_PHYSICALDAMAGE, percent = 0 },
{ type = COMBAT_ENERGYDAMAGE, percent = 0 },
{ type = COMBAT_EARTHDAMAGE, percent = 0 },
{ type = COMBAT_FIREDAMAGE, percent = 0 },
{ type = COMBAT_LIFEDRAIN, percent = 0 },
{ type = COMBAT_MANADRAIN, percent = 0 },
{ type = COMBAT_DROWNDAMAGE, percent = 0 },
{ type = COMBAT_ICEDAMAGE, percent = 0 },
{ type = COMBAT_HOLYDAMAGE, percent = 0 },
{ type = COMBAT_DEATHDAMAGE, percent = 0 },
}
monster.immunities = {
{ type = "paralyze", condition = true },
{ type = "outfit", condition = false },
{ type = "invisible", condition = true },
{ type = "bleed", condition = false },
}
mType:register(monster)