Fabi Marzan
Well-Known Member
- Joined
- Aug 31, 2020
- Messages
- 135
- Solutions
- 6
- Reaction score
- 66
Hello, I wanted to know if it is possible to block the spawn of certain monsters... In my sources I modified the block spawn code that would be if a player is on screen the monster still respawns.
The thing would be how to eliminate the block to certain monsters, as in this case I want to use it for the quest monsters and bosses.
I have this scripts as an example, but it doesn't work yet they respawn me in the face.
TFS 1.X+ - disable player block spawn in TFS 1.X
TFS 1.3 (Nekiro Downgrade 8.6) cip Client 8.6 So I finished downgrading my monster pack to 8.6 (my first big endeavor!) and it went really well. Now I've officially begun building my custom map and I built a test spawn. The spawn-time on each of the monsters is 1, but player blocks spawn. I...
otland.net
The thing would be how to eliminate the block to certain monsters, as in this case I want to use it for the quest monsters and bosses.
I have this scripts as an example, but it doesn't work yet they respawn me in the face.
Lua:
local boss_name = "Demodras" -- boss name
local boss_pos = {x = 1491, y = 1100, z = 15} -- boss spawn
local pos_room = {fromx = 1503, tox = 1100, fromy = 1477, toy = 1075, z = 15} -- boss room
function onThink(interval, lastExecution)
local check_boss = 0
for x = pos_room.fromx, pos_room.tox do
for y = pos_room.fromy, pos_room.toy do
for z = pos_room.z, pos_room.z do
creatureaa = {x = x, y = y, z = z}
mob = getTopCreature(creatureaa).uid
if getCreatureName(mob) == boss_name then
check_boss = 1
end
end
end
end
if check_boss == 1 then
end
if check_boss == 0 then
Game.createMonster(boss_name, boss_pos)
end
return true
end