LandSandBoat / server

:sailboat: LandSandBoat - a server emulator for Final Fantasy XI
https://landsandboat.github.io/server/
GNU General Public License v3.0
302 stars 608 forks source link

[Lua] Fix Feeler Antlion ??? despawning and respawning #6350

Closed TracentEden2 closed 1 month ago

TracentEden2 commented 1 month ago

I affirm:

What does this pull request do?

The PR fixes an issue where the ??? for Feeler Antlion never despawns when popping Feeler Antlion.

The PR adds code to despawn the ??? and also adds a custom function canStartFeelerQMTimer to control the respawning of the ???. A custom function is needed as npcUtil.popFromQM does not support ??? timers when mobs spawn other mobs (such as Feeler Antlion spawning Alastor Antlion and Executioner Antlion). The custom function is called in onMobDespawn of Feeler, Alastor, and Executioner and checks if any these mobs are still spawned and if not then start the ??? respawn timer.

Steps to test these changes

Spawn Feeler Antlion from ??? and test different scenarios of killing Feeler, Alastor, Executioner and seeing when the ??? respawns.