No categories assigned

LUA:SendPopUpMessage

Revision as of 18:58, 9 May 2013 by Thefoof (talk | contribs) (Created page with "This function will send a message to a player in their chatbox. The last parameter is optional, leaving it blank defaults to white, you may also use "yellow" or "red". ==== Synt...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function will send a message to a player in their chatbox. The last parameter is optional, leaving it blank defaults to white, you may also use "yellow" or "red".

Syntax

SendPopUpMessage(target, "message string", red, green, blue)

Usage

function InRange(Zone, Spawn)
    if GetQuestStep(Spawn, 4) == 3 then
        SendPopUpMessage(Spawn, "This is the break in the barricade Yasha sent you to fix.", 255, 255, 255)
    end
end

When InRange() is called, the target "Spawn" will get a white colored Pop-Up message that says "This is the break in the barricade Yasha sent you to fix.".

Back to LUA General Functions Index