• 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!

Lua Monster Levels TFS 1.3

alejandro762

Well-Known Member
Joined
Sep 6, 2021
Messages
258
Reaction score
73
Hello

I am using this script, Feature - [TFS 1.3] Monster Levels (https://otland.net/threads/tfs-1-3-monster-levels.260470/)
I have a TFS 1.3 Revscript
I Was wondering (also @ralke ) to know how to add the monster.level on the script of monster.lua ,
After compiling,
You see a wolf, it is level 0.
I Tried:

Lua:
monster.level = {
min = 5,
max = 100
}

Inside:
But none working, there is no any error on console or something else

LUA:
local mType = Game.createMonsterType("Rat")
local monster = {}

monster.description = "a rat"
monster.experience = 5
monster.outfit = {
    lookType = 21,
    lookHead = 0,
    lookBody = 0,
    lookLegs = 0,
    lookFeet = 0,
    lookAddons = 0,
    lookMount = 0
}

monster.raceId = 21
monster.Bestiary = {
    class = "Mammal",
    race = BESTY_RACE_MAMMAL,
    toKill = 250,
    FirstUnlock = 10,
    SecondUnlock = 100,
    CharmsPoints = 5,
    Stars = 1,
    Occurrence = 0,
    Locations = "Rookgaard and Mainland, in most sewers and caves near towns. \z
        They can be found almost everywhere in Tibia."
    }

monster.health = 20
monster.maxHealth = 20
monster.race = "blood"
monster.corpse = 5964
monster.speed = 134
monster.manaCost = 200
monster.maxSummons = 0

monster.changeTarget = {
    interval = 4000,
    chance = 0
}

monster.strategiesTarget = {
    nearest = 100,
}

monster.flags = {
    summonable = true,
    attackable = true,
    hostile = true,
    convinceable = true,
    pushable = true,
    rewardBoss = false,
    illusionable = true,
    canPushItems = false,
    canPushCreatures = false,
    staticAttackChance = 90,
    targetDistance = 1,
    runHealth = 5,
    healthHidden = false,
    isBlockable = false,
    canWalkOnEnergy = false,
    canWalkOnFire = false,
    canWalkOnPoison = false,
    pet = false
}

monster.light = {
    level = 0,
    color = 0
}

monster.voices = {
    interval = 5000,
    chance = 10,
    {text = "Meep!", yell = false}
}

monster.loot = {
    {name = "gold coin", chance = 100000, maxCount = 4},
    {id = 2696, chance = 39410}
}

monster.attacks = {
    {name ="melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -10}
}

monster.defenses = {
    defense = 5,
    armor = 5
}

monster.elements = {
    {type = COMBAT_PHYSICALDAMAGE, percent = 0},
    {type = COMBAT_ENERGYDAMAGE, percent = 0},
    {type = COMBAT_EARTHDAMAGE, percent = 25},
    {type = COMBAT_FIREDAMAGE, percent = 0},
    {type = COMBAT_LIFEDRAIN, percent = 0},
    {type = COMBAT_MANADRAIN, percent = 0},
    {type = COMBAT_DROWNDAMAGE, percent = 0},
    {type = COMBAT_ICEDAMAGE, percent = -10},
    {type = COMBAT_HOLYDAMAGE , percent = 20},
    {type = COMBAT_DEATHDAMAGE , percent = -10}
}

monster.immunities = {
    {type = "paralyze", condition = false},
    {type = "outfit", condition = false},
    {type = "invisible", condition = false},
    {type = "bleed", condition = false}
}

mType:register(monster)
 

Similar threads

V
  • Question Question
Replies
1
Views
89
Replies
4
Views
329
Back
Top