[X] I have checked that this issue has not already been reported.
[X] I have validated that this issue is not a syntax error of either MySQL or SQLite.
[X] I have pulled the latest version of the main branch of DarkflameServer and have confirmed that the issue exists there.
Issue Description
Spider queen is supposed to scream
Below is the lua function used in live
----------------------------------------------------------------
-- Catch Spiderling deaths in order to process when a wave ends
----------------------------------------------------------------
function notifyDie(self, spiderlingID, msg)
-- Get the game object of the child
local child = spiderlingID
-- Check to see if the child is Spiderling
if(child:GetLOT().objtemplate ~= SpiderlingID) then return end
-- Play the Spider Boss scream
local screamEmitter = self:GetVar("ScreamEmitter")
self:NotifyClientObject{name = "EmitScream", paramObj = screamEmitter}
-- Grab the current wave death counter
local deathCounter = self:GetVar("deathCounter") or 0
-- Increment the counter
deathCounter = deathCounter + 1
self:SetVar("deathCounter", deathCounter)
-- Grab the current wave count
local currentStage = self:GetVar("CurrentBossStage")
local spiderWaveCnt = spiderWaveCntTable[currentStage]
-- Have we finished the wave?
if(deathCounter >= spiderWaveCnt) then
-- Activate the Spider Boss
WithdrawSpider(self, false)
end
-- Remove reference from the Spiderling table
local spiderlingTable = self:GetVar("spiderlingTable") or {}
-- Iterate through the table and find the dead Spiderling
for i, sID in ipairs(spiderlingTable) do
if(sID:GetID() == child:GetID()) then
table.remove(spiderlingTable, i)
break
end
end
self:SetVar("spiderlingTable", spiderlingTable)
-- Cancel the notification request
self:SendLuaNotificationCancel{requestTarget = child, messageName = "Die"}
end
Make sure you've done the following:
[X] I have checked that this issue has not already been reported.
[X] I have validated that this issue is not a syntax error of either MySQL or SQLite.
[X] I have pulled the latest version of the main branch of DarkflameServer and have confirmed that the issue exists there.
Issue Description
Spider queen is supposed to scream
Below is the lua function used in live
the particular snippet that begins with
Play the Spider Boss scream
is what triggered it in live, that snippet needs to be made into DLU C++ API based code and placed above https://github.com/DarkflameUniverse/DarkflameServer/blob/main/dScripts/BossSpiderQueenEnemyServer.cpp#L490Reproduction steps
n/a
Expected Behavior
n/a
Environment
n/a