add this monster revscript which is the infernal demon with its respective looktype and monster.corpse
and I don't know what happens but I can't open the body with right click but if I press control+right click/open in new window, if I can open and take loot
It only happens to me with this monster revscripts that I add that does not open the normal loot (I do not have other monsters revscripts), the monsters that are as .xml that already came in the tfs if it allows me to open the normal bodies
I use tfs 1.5 of version 12.80/86
Lua:
local mType = Game.createMonsterType("Infernal Demon")
local monster = {}
monster.description = "a infernal demon"
monster.experience = 26000
monster.outfit = {
lookType = 1313,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.raceId = 1938
monster.Bestiary = {
class = "Demon",
race = BESTY_RACE_DEMON,
toKill = 5000,
FirstUnlock = 25,
SecondUnlock = 3394,
CharmsPoints = 100,
Stars = 5,
Occurrence = 0,
Locations = "Claustrophobic Inferno."
}
monster.health = 32000
monster.maxHealth = 32000
monster.race = "blood"
monster.corpse = 36557
monster.speed = 200
monster.manaCost = 0
monster.changeTarget = {
interval = 4000,
chance = 0
}
monster.strategiesTarget = {
nearest = 70,
health = 10,
damage = 10,
random = 10,
}
monster.flags = {
summonable = false,
attackable = true,
hostile = true,
convinceable = false,
pushable = false,
rewardBoss = false,
illusionable = false,
canPushItems = false,
canPushCreatures = false,
staticAttackChance = 90,
targetDistance = 1,
runHealth = 0,
healthHidden = false,
isBlockable = false,
canWalkOnEnergy = true,
canWalkOnFire = true,
canWalkOnPoison = true
}
monster.light = {
level = 0,
color = 0
}
monster.voices = {
interval = 5000,
chance = 10,
{text = "The smell of fear follows you.", yell = false},
{text = "Your soul will burn.", yell = false}
}
monster.loot = {
{id = "gold coin", chance = 60000, maxCount = 100},
{id = 1987, chance = 60000, -- bag
child = {
{id = "platinum coin", chance = 60000, maxCount = 100},
{id = "crystal coin", chance = 60000, maxCount = 100}
}
}
}
monster.attacks = {
{name ="melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1050},
{name ="combat", interval = 2000, chance = 20, type = COMBAT_DEATHDAMAGE, minDamage = -750, maxDamage = -1000, radius = 4, effect = CONST_ME_MORTAREA, target = false},
{name ="combat", interval = 2000, chance = 15, type = COMBAT_FIREDAMAGE, minDamage = -550, maxDamage = -900, range = 7, shootEffect = CONST_ANI_FIRE, effect = CONST_ME_FIREAREA, target = true},
{name ="combat", interval = 2000, chance = 10, type = COMBAT_FIREDAMAGE, minDamage = -800, maxDamage = -1250, length = 8, effect = CONST_ME_EXPLOSIONHIT, target = false}
-- Chain: const_me-> CONST_ME_WHITE_ENERGY_SPARK, combat_t->COMBAT_DEATHDAMAGE
}
monster.defenses = {
defense = 110,
armor = 120,
{name ="combat", interval = 2000, chance = 15, type = COMBAT_HEALING, minDamage = 650, maxDamage = 1200, effect = CONST_ME_MAGIC_RED, target = false}
}
monster.elements = {
{type = COMBAT_PHYSICALDAMAGE, percent = 30},
{type = COMBAT_ENERGYDAMAGE, percent = 0},
{type = COMBAT_EARTHDAMAGE, percent = 0},
{type = COMBAT_FIREDAMAGE, percent = 40},
{type = COMBAT_LIFEDRAIN, percent = 0},
{type = COMBAT_MANADRAIN, percent = 0},
{type = COMBAT_DROWNDAMAGE, percent = 0},
{type = COMBAT_ICEDAMAGE, percent = -20},
{type = COMBAT_HOLYDAMAGE , percent = -25},
{type = COMBAT_DEATHDAMAGE , percent = 50}
}
monster.immunities = {
{type = "paralyze", condition = true},
{type = "outfit", condition = true},
{type = "invisible", condition = true},
{type = "bleed", condition = false}
}
mType:register(monster)
and I don't know what happens but I can't open the body with right click but if I press control+right click/open in new window, if I can open and take loot
It only happens to me with this monster revscripts that I add that does not open the normal loot (I do not have other monsters revscripts), the monsters that are as .xml that already came in the tfs if it allows me to open the normal bodies
I use tfs 1.5 of version 12.80/86
Last edited: