Skip to content

Commit

Permalink
fix: add missing 'alchemist container' monster (#2036)
Browse files Browse the repository at this point in the history
  • Loading branch information
luan authored Dec 17, 2023
1 parent 282e73e commit 7647e1f
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions data-otservbr-global/monster/bosses/alchemist_container.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
local mType = Game.createMonsterType("Alchemist Container")
local monster = {}

monster.description = "Alchemist Container"
monster.experience = 0
monster.outfit = {
lookTypeEx = 39952,
}

monster.health = 1200
monster.maxHealth = 1200
monster.race = "undead"
monster.corpse = 39949
monster.speed = 0
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 = false,
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.attacks = {}

monster.defenses = {
defense = 54,
armor = 59,
mitigation = 3.7,
}

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.onThink = function(monster, interval) end

mType.onAppear = function(monster, creature)
if monster:getType():isRewardBoss() then
monster:setReward(true)
end
end

mType.onDisappear = function(monster, creature) end

mType.onMove = function(monster, creature, fromPosition, toPosition) end

mType.onSay = function(monster, creature, type, message) end

mType:register(monster)

0 comments on commit 7647e1f

Please sign in to comment.