mirror of
https://github.com/araxiaonline/RandomScriptsforAzerothCore.git
synced 2026-06-13 02:22:19 -04:00
Add files via upload
This commit is contained in:
20
Startstop.lua
Normal file
20
Startstop.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
--DO NOT DELETE ME! FIXES AN ANNOYING AF BUG
|
||||
|
||||
local holidayEventIds = {17, 91}
|
||||
|
||||
local function OnPlayerLogin(event, player)
|
||||
if not player:IsInWorld() then
|
||||
return
|
||||
end
|
||||
|
||||
for _, eventId in ipairs(holidayEventIds) do
|
||||
local isHolidayActive = IsGameEventActive(eventId)
|
||||
|
||||
if isHolidayActive then
|
||||
StopGameEvent(eventId)
|
||||
StartGameEvent(eventId)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
RegisterPlayerEvent(3, OnPlayerLogin)
|
||||
Reference in New Issue
Block a user