• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

RevScripts monster loot window

God Aries

New Member
Joined
Jun 24, 2018
Messages
44
Reaction score
4
add this monster revscript which is the infernal demon with its respective looktype and monster.corpse
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:
that is because newer monsters corpses are not configured at items.xml

XML:
<item fromid="36554" toid="36557" article="a" name="dead infernal demon" />

you will need to configure every corpse at items.xml so they can work, for example:

XML:
    <item id="36554" article="a" name="dead infernal demon">
        <attribute key="weight" value="6300" />
        <attribute key="containerSize" value="30" />
        <attribute key="decayTo" value="36555" />
        <attribute key="duration" value="300" />
        <attribute key="corpseType" value="blood" />
        <attribute key="fluidSource" value="blood" />
    </item>
    <item id="36555" article="a" name="dead infernal demon">
        <attribute key="weight" value="4400" />
        <attribute key="containerSize" value="30" />
        <attribute key="decayTo" value="36556" />
        <attribute key="duration" value="300" />
        <attribute key="corpseType" value="blood" />
    </item>
    <item id="36556" article="a" name="dead infernal demon">
        <attribute key="weight" value="3000" />
        <attribute key="decayTo" value="36557" />
        <attribute key="duration" value="30" />
        <attribute key="corpseType" value="blood" />
    </item>
    <item id="36557" article="a" name="dead infernal demon">
        <attribute key="weight" value="2000" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="30" />
        <attribute key="corpseType" value="blood" />
    </item>
 
that is because newer monsters corpses are not configured at items.xml

XML:
<item fromid="36554" toid="36557" article="a" name="dead infernal demon" />

you will need to configure every corpse at items.xml so they can work, for example:

XML:
    <item id="36554" article="a" name="dead infernal demon">
        <attribute key="weight" value="6300" />
        <attribute key="containerSize" value="30" />
        <attribute key="decayTo" value="36555" />
        <attribute key="duration" value="300" />
        <attribute key="corpseType" value="blood" />
        <attribute key="fluidSource" value="blood" />
    </item>
    <item id="36555" article="a" name="dead infernal demon">
        <attribute key="weight" value="4400" />
        <attribute key="containerSize" value="30" />
        <attribute key="decayTo" value="36556" />
        <attribute key="duration" value="300" />
        <attribute key="corpseType" value="blood" />
    </item>
    <item id="36556" article="a" name="dead infernal demon">
        <attribute key="weight" value="3000" />
        <attribute key="decayTo" value="36557" />
        <attribute key="duration" value="30" />
        <attribute key="corpseType" value="blood" />
    </item>
    <item id="36557" article="a" name="dead infernal demon">
        <attribute key="weight" value="2000" />
        <attribute key="decayTo" value="0" />
        <attribute key="duration" value="30" />
        <attribute key="corpseType" value="blood" />
    </item>
In fact, if I add them and it still won't open it, I also made sure that the object builder and item editor had the correct properties, and if they are


According to the bodies I saw in the item editor, do they go like this in items.xml, or is it like you showed me in the example?
1649631886833.png

itemeditor:
1649631364358.png

object builder:
1649631405764.png

assets editor:
1649631607952.png
Post automatically merged:

holy beards of merlin, I had the configuration of client 12 wrong, kill me please hahaha 😅
 
Last edited:
Back
Top