Lua SendWorldMessage

From ArcEmu-Wiki
Jump to: navigation, search
+/-
Main Page        LuaArcEmu Website     ArcEmu Forum     Bug Tracker



SendWorldMessage()

Function

Sends message to all online players.

Syntax

SendWorldMessage(string Message, int Type)

Type Values

Value :  Description

  1   :  AREA TRIGGER   (Shows the message in the middle of the screen. Disapears after a while)  
  2   :  BROADCAST      (Shows the message in the chat window and in the world console window.)


Example

-- Specify npc
local TalkToWorld_ID = 6000051
 
-- Gossip
function TalkToWorld(Unit, event, Player)
  SendWorldMessage("You are not prepared!", 1)
end
 
-- Register
RegisterUnitGossipEvent(TalkToWorld_ID, 1, "TalkToWorld")
Personal tools