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
d.notice("Destroy all metin stones")
d.notice(string.format("You still have to defeat %d monsters to move on.", d.count_monster()));
I pay for the fix, thanks