Hello, I have an error in the dungeons, sometimes it happens that they do not work as they should and it is something strange.
On the first floor I ask that all the monsters be killed, but when all the monsters die nothing happens, this happens sometimes, other times it works as it should and goes to the next floor.
When the problem happens, the dungeon stops, the player is not ejected but does not continue in any way, it just stops working.
Payment to anyone who can help me correct the error.
The dungeon uses d.new_jump and several people enter at the same time.
First floor of the dungeon:
when duratus_dungeon_wave_kill.server_timer begin
local settings = duratus_dungeon.settings()
if d.select(get_server_timer_arg()) then
if d.getf("duratus_dungeon_level") == 2 then
if d.count_monster() <= 10 then
clear_server_timer("duratus_dungeon_wave_kill", get_server_timer_arg())
d.setf("duratus_dungeon_level", 3)
d.notice("Destroy all metin stones")
d.regen_file("data/dungeon/duratus_dungeon/regen_1b.txt")
else
d.notice(string.format("You still have to defeat %d monsters to move on.", d.count_monster()));
end
end
end
end
I pay for the fix, thanks