I am currently using this code which works perfectly;
- When taking quest, it will spawn a NPC on given coords.
- Broadcasts a message to the character when accepting the quest.
However, I want the message that is being broadcasted to be a world broadcast that everyone can see.
Does anyone know how to fix that up?
Here's my code:
function AcceptQuest(event, player, creature, quest)
local message = "|cffFF0000[WARNING] |cffFFF200The Beast has been located."
if (quest:GetId() == 783) then
creature:SpawnCreature(197, -8947.63, -132.319, 83.719, 3.333, 8, 0)
if (player:IsAlliance()) then
RegisterCreatureEvent(823, 31, AcceptQuest)