local mType = Game.createMonsterType("demon")
local monster = {}
monster.name = "demon"
monster.description = "a demon"
monster.experience = 6000
monster.outfit = {
lookType = 35,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 8200
monster.maxHealth = 8200
monster.runHealth = 0
monster.race = "fire"
monster.corpse = 2916
monster.speed = 200
monster.summonCost = 0
monster.changeTarget = {
interval = 2000,
chance = 10
}
monster.targetstrategy = {
nearest = 70,
weakest = 10,
mostdamage = 10,
random = 10,
}
monster.flags = {
attackable = true,
hostile = true,
summonable = false,
convinceable = false,
illusionable = false,
boss = false,
ignoreSpawnBlock = false,
pushable = false,
canPushItems = true,
canPushCreatures = true,
staticAttackChance = 90,
targetDistance = 1,
healthHidden = false,
canWalkOnEnergy = false,
canWalkOnFire = false,
canWalkOnPoison = false
}
monster.light = {
level = 0,
color = 0
}
monster.voices = {
interval = 5000,
chance = 10,
{text = "MUHAHAHAHA!", yell = true},
{text = "I SMELL FEEEEEAAAR!", yell = true},
{text = "CHAMEK ATH UTHUL ARAK!", yell = true},
{text = "Your resistance is futile!", yell = false},
{text = "Your soul will be mine!", yell = true}
}
monster.immunities = {
{type = "paralyze", condition = true},
{type = "outfit", condition = false},
{type = "invisible", condition = true},
{type = "drunk", condition = true},
{type = "bleed", condition = false}
}
monster.elements = {
{type = COMBAT_PHYSICALDAMAGE, percent = 0},
{type = COMBAT_ENERGYDAMAGE, percent = 100},
{type = COMBAT_EARTHDAMAGE, percent = 100},
{type = COMBAT_FIREDAMAGE, percent = 100},
{type = COMBAT_LIFEDRAIN, percent = 100},
{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.attacks = {
{name ="melee", interval = 2000, chance = 100, skill = 120, attack = 80},
{name ="combat", interval = 2000, chance = 13, type = COMBAT_MANADRAIN, minDamage = -40, maxDamage = -100, range = 7},
{name ="combat", interval = 2000, chance = 33, type = COMBAT_FIREDAMAGE, minDamage = -110, maxDamage = -200, range = 7, radius = 7, target = true, shootEffect = CONST_ANI_FIRE, effect = CONST_ME_FIREAREA},
{name ="firefield", interval = 2000, chance = 14, range = 7, radius = 1, target = true, shootEffect = CONST_ANI_FIRE},
{name ="combat", interval = 2000, chance = 10, type = COMBAT_ENERGYDAMAGE, minDamage = -300, maxDamage = -420, length = 8, spread = 0, effect = CONST_ME_ENERGYHIT}
}
monster.defenses = {
defense = 65,
armor = 40,
{name ="combat", interval = 2000, chance = 14, type = COMBAT_HEALING, minDamage = 90, maxDamage = 150, effect = CONST_ME_MAGIC_BLUE}
}
monster.maxSummons = 1
monster.summons = {
{name = "fireelemental", chance = 8, interval = 2000, max = 1}
}
monster.loot = {
{id = 2520, chance = 700},
{id = 2462, chance = 1200},
{id = 2387, chance = 20000},
{id = 2432, chance = 4000},
{id = 2795, chance = 20000, maxCount = 6},
{id = 2393, chance = 2000},
{id = 2148, chance = 70000, maxCount = 100},
{id = 2148, chance = 60000, maxCount = 100},
{id = 2148, chance = 50000, maxCount = 100},
{id = 2148, chance = 40000, maxCount = 100},
{id = 2179, chance = 1100},
{id = 2470, chance = 400},
{id = 2418, chance = 1500},
{id = 2396, chance = 600},
{id = 2472, chance = 100},
{id = 2514, chance = 500},
{id = 2164, chance = 200},
{id = 2176, chance = 3000},
{id = 2171, chance = 700},
{id = 1982, chance = 1300},
{id = 2214, chance = 500},
{id = 2149, chance = 11000},
{id = 2165, chance = 1400},
{id = 2151, chance = 3500}
}
mType:register(monster)