Forum

> > CS2D > Scripts > Monster limit on RPG Tibia
Forums overviewCS2D overview Scripts overviewLog in to reply

English Monster limit on RPG Tibia

5 replies
To the start Previous 1 Next To the start

old Monster limit on RPG Tibia

olie19
User Off Offline

Quote
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

old Re: Monster limit on RPG Tibia

eduxd0707
BANNED Off Offline

Quote
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}},

old Re: Monster limit on RPG Tibia

VADemon
User Off Offline

Quote
Better you search for the function (search for "spawnchance" (ty, @user 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
edited 1×, last 26.01.13 08:47:49 pm

old Re: Monster limit on RPG Tibia

olie19
User Off Offline

Quote
user eduxd0707 has written
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}},


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?

old Re: Monster limit on RPG Tibia

Yates
Reviewer Off Offline

Quote
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.

old Re: Monster limit on RPG Tibia

mattasha
User Off Offline

Quote
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:
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview