Monster limit on RPG Tibia
5 replies



26.01.13 06:44:11 pm
Is there any way to put a max on the amount of the individual monsters that get spawned (for example if i wanted to make a monster thats a super boss but only 1 can appear on the map at once), trying to make a map that doesn't need an auto restart every hour due to monsters grouping when no high levels join or low levels join...
I thought i would ask the smart people on here before i go experimenting and spend hours trying to figure it out
Thanks all
I thought i would ask the smart people on here before i go experimenting and spend hours trying to figure it out

Thanks all
Monster.lua
Each monster has a chance spawn
Edit it to a low rate to rise less
spawnchance = xxx
'-'
Example :
name = 'Weedle', health = 100, image = 'gfx/weiwen/pokemon/17.bmp', scalex = 1.5, scaley = 1.5, r = 104, g = 152, b = 40,
atk = 1.2, def = 1.1, spd = 7, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 50, runat = 20, spawn1 = {0, 0}, spawn2 = {150, 150},
exp = 10, money = 30, loot = {{chance = 8000, id = 1}},
Each monster has a chance spawn
Edit it to a low rate to rise less
spawnchance = xxx
'-'
Example :
name = 'Weedle', health = 100, image = 'gfx/weiwen/pokemon/17.bmp', scalex = 1.5, scaley = 1.5, r = 104, g = 152, b = 40,
atk = 1.2, def = 1.1, spd = 7, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 50, runat = 20, spawn1 = {0, 0}, spawn2 = {150, 150},
exp = 10, money = 30, loot = {{chance = 8000, id = 1}},
Better you search for the function (search for "spawnchance" (ty, @
eduxd0707:)) that spawns mobs and add a counter, so e.g:
if counter >= 10 no new mobs will spawn.
I don't have tibia, so I can't really help you

if counter >= 10 no new mobs will spawn.
I don't have tibia, so I can't really help you

edited 1×, last 26.01.13 08:47:49 pm

Monster.lua
Each monster has a chance spawn
Edit it to a low rate to rise less
spawnchance = xxx
'-'
Example :
name = 'Weedle', health = 100, image = 'gfx/weiwen/pokemon/17.bmp', scalex = 1.5, scaley = 1.5, r = 104, g = 152, b = 40,
atk = 1.2, def = 1.1, spd = 7, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 50, runat = 20, spawn1 = {0, 0}, spawn2 = {150, 150},
exp = 10, money = 30, loot = {{chance = 8000, id = 1}},
Each monster has a chance spawn
Edit it to a low rate to rise less
spawnchance = xxx
'-'
Example :
name = 'Weedle', health = 100, image = 'gfx/weiwen/pokemon/17.bmp', scalex = 1.5, scaley = 1.5, r = 104, g = 152, b = 40,
atk = 1.2, def = 1.1, spd = 7, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 50, runat = 20, spawn1 = {0, 0}, spawn2 = {150, 150},
exp = 10, money = 30, loot = {{chance = 8000, id = 1}},
That doesnt help, if i just want 1 of the monser and tis really hard to kill its going to take forever to kill it and another will spawn.
Also you see this on dungeons that are level restricted, if only low levels arrive into the game all the monsters will get trapped in the 70+ level restriction leaving no one with any.
i'm thinking something like
when monster1spawns then
m1 = m1+1
end
if m1 = 1 then
stop monster1spawns
end
if monster1dies then
m1= m1 - 1
end
but i have no idea what the code is for those pieces... If it's even possible...
Thanks to all who replied
Edit:
On second thought, is there a way to split the monster files so from the config i could put maxmonsters1 = 1
maxmonstesr2 = 2
etc.
I'm not sure, maybe that would work better?
I'll see if I can add a limit to monsters. This problem with the monsters not being able to killed due to level restrictions is one of the important things I need to fix.
Give me a while and I'll see what I can do.
Give me a while and I'll see what I can do.
Yes you can add that But first you need to create a CAVE for just the boss
And you need to set his position in the cave like:
And when you puted it
You just need add his Exp and His money and Then.
You can add if his RARE boss Like omega(in some servers)
Or his Facility
And you need to set his position in the cave like:
Code:
1
{spawn1 = {123 , 124}} { Spawn2 = {456 , 457}}
And when you puted it
You just need add his Exp and His money and Then.
You can add if his RARE boss Like omega(in some servers)
Or his Facility



