johnsamir
Advanced OT User
Hello to everyone
Have converted cipsoft mon monster files from cipsoft to revscripts
in console im having the same problem with few monster but i can't identify very well where it's or how to solve it. Can someone give me hand please?
This is the original file in this case spitnettle
here is how it looks converted to lua or revscripts
thought that might be this but nor removing that part of code nor giving a value is removing the console error
Regards
or maybe
to
. but does not work
final edit (still need help. im not sure if this is ok or the proper fix) which attack should be?
i changed
to this
thank
EDIT: i know that this is the proper solution, thread closed(hopefully this will help people in the future
here lua monster converted from cipsoft files, useable in nekiro datapack
changed
to this
and removed this
Have converted cipsoft mon monster files from cipsoft to revscripts
in console im having the same problem with few monster but i can't identify very well where it's or how to solve it. Can someone give me hand please?
This is the original file in this case spitnettle
Lua:
# Tibia - graphical Multi-User-Dungeon
# MonsterRace File
# 2005/11/08 - 13:54:45
RaceNumber = 221
Name = "spit nettle"
Article = "a"
Outfit = (221, 0-0-0-0)
Corpse = 4391
Blood = Slime
Experience = 20
SummonCost = 0
FleeThreshold = 150
Attack = 9
Defend = 33
Armor = 12
Poison = 18
LoseTarget = 0
Strategy = (100, 0, 0, 0)
Flags = {SeeInvisible,
Unpushable,
NoSummon,
NoIllusion,
NoConvince,
NoPoison,
NoEnergy,
NoLifeDrain,
NoParalyze}
Skills = {(HitPoints, 150, 0, 150, 0, 0, 0),
(GoStrength, -1, -1, -1, 0, 0, 0),
(CarryStrength, 100, 0, 100, 0, 0, 0),
(FistFighting, 15, 15, 15, 50, 1000, 1)}
Spells = {Actor (13) -> Healing (12, 4) : 8,
Victim (7, 15, 9) -> Damage (2, 27, 10) : 7,
Victim (7, 15, 9) -> Damage (32, 30, 8) : 4}
Inventory = {(3031, 5, 100),
(3661, 1, 10),
(3740, 1, 100),
(3738, 1, 10),
(3738, 1, 50)}
Code:
local mType = Game.createMonsterType("spitnettle")
local monster = {}
monster.name = "spit nettle"
monster.description = "a spit nettle"
monster.experience = 20
monster.outfit = {
lookType = 221,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0,
lookMount = 0
}
monster.health = 150
monster.maxHealth = 150
monster.runHealth = 0
monster.race = "blood"
monster.corpse = 4326
monster.speed = 0
monster.summonCost = 0
monster.changeTarget = {
interval = 2000,
chance = 0
}
monster.flags = {
attackable = true,
hostile = true,
summonable = false,
convinceable = false,
illusionable = false,
boss = false,
ignoreSpawnBlock = false,
pushable = false,
canPushItems = false,
canPushCreatures = false,
staticAttackChance = 90,
targetDistance = 1,
healthHidden = false,
canWalkOnEnergy = false,
canWalkOnFire = false,
canWalkOnPoison = false
}
monster.light = {
level = 0,
color = 0
}
monster.voices = {
interval = 5000,
chance = 10,
}
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 = 0},
{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 = 15, attack = 9},
{name ="combat", interval = 2000, chance = 14, type = COMBAT_EARTHDAMAGE, minDamage = -17, maxDamage = -37, range = 7, shootEffect = CONST_ANI_POISON, effect = CONST_ME_GREEN_RINGS},
{name ="condition", interval = 2000, chance = 25, type = CONDITION_POISON, startDamage = 0, tick = 4000, minDamage = -22, maxDamage = -38, range = 7, shootEffect = CONST_ANI_POISON, effect = CONST_ME_GREEN_RINGS}
}
monster.defenses = {
defense = 33,
armor = 12,
{name ="combat", interval = 2000, chance = 12, type = COMBAT_HEALING, minDamage = 8, maxDamage = 16, effect = CONST_ME_MAGIC_BLUE}
}
monster.loot = {
{id = 2148, chance = 10000, maxCount = 5},
{id = 2747, chance = 1000},
{id = 2804, chance = 10000},
{id = 2802, chance = 1000},
{id = 2802, chance = 5000}
}
mType:register(monster)
thought that might be this but nor removing that part of code nor giving a value is removing the console error
Code:
startDamage = 0,
Regards
Post automatically merged:
or maybe
Lua:
{name ="condition"
Lua:
{name ="poisoncondition"
final edit (still need help. im not sure if this is ok or the proper fix) which attack should be?
i changed
Lua:
{name ="condition"
Lua:
{name ="poisonfield"
thank
EDIT: i know that this is the proper solution, thread closed(hopefully this will help people in the future
here lua monster converted from cipsoft files, useable in nekiro datapack
Monster.mon from cipsoft converted to lua
Hello there's no much to say want to share something with the community. have converted mon monster from cipsoft to revscripts and i know that there are a lot of people looking to get proper monster, spells, npcs and so on in their datapack, so i think this is a good contribution i don't know...
otland.net
changed
Lua:
{name ="condition"
Lua:
{name ="poisonfield"
and removed this
Lua:
startDamage = 0,
Last edited: