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:
@@ -4,6 +4,7 @@ local secondNpcIds = {3088} -- Add your second set of NPC entries here
|
|||||||
local EMOTE_ID = 333 -- Set the emote ID
|
local EMOTE_ID = 333 -- Set the emote ID
|
||||||
local SECOND_EMOTE_ID = 214 -- Set the second emote ID
|
local SECOND_EMOTE_ID = 214 -- Set the second emote ID
|
||||||
|
|
||||||
|
|
||||||
local function IsGameEventActive(eventId)
|
local function IsGameEventActive(eventId)
|
||||||
local activeEvents = GetActiveGameEvents()
|
local activeEvents = GetActiveGameEvents()
|
||||||
for _, event in ipairs(activeEvents) do
|
for _, event in ipairs(activeEvents) do
|
||||||
@@ -42,7 +43,6 @@ local function ResetNpcsEmoteState(event, gameEventId)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local PLAYER_EVENT_ON_MAP_CHANGE = 27
|
|
||||||
|
|
||||||
local function OnPlayerMapChange(event, player, newMap, newZone)
|
local function OnPlayerMapChange(event, player, newMap, newZone)
|
||||||
if IsGameEventActive(GAME_EVENT_ID) then
|
if IsGameEventActive(GAME_EVENT_ID) then
|
||||||
@@ -51,11 +51,6 @@ local function OnPlayerMapChange(event, player, newMap, newZone)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
RegisterPlayerEvent(PLAYER_EVENT_ON_MAP_CHANGE, OnPlayerMapChange)
|
RegisterPlayerEvent(27, OnPlayerMapChange)
|
||||||
|
|
||||||
-- The rest of the script remains the same
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
RegisterServerEvent(34, SetNpcsEmoteState)
|
RegisterServerEvent(34, SetNpcsEmoteState)
|
||||||
RegisterServerEvent(35, ResetNpcsEmoteState)
|
RegisterServerEvent(35, ResetNpcsEmoteState)
|
||||||
|
|||||||
Reference in New Issue
Block a user