You are viewing an old version of this page. Return to the latest version.
Version of 18:58, 9 May 2013 by I need to Update My Profile
Difference between revisions of "LUA:SendPopUpMessage"
(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...") |
(→Usage) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | This function will send a message to a player | + | This function will send a pop-up message to a player. The last 3 parameters are the number amount of each color. |
==== Syntax ==== | ==== Syntax ==== | ||
| Line 13: | Line 13: | ||
</pre> | </pre> | ||
| − | 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.". | + | When InRange() is called, and the if statement is passed, 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.". |
[[LUA:MiscFunctions|Back to LUA General Functions Index]] | [[LUA:MiscFunctions|Back to LUA General Functions Index]] | ||
Latest revision as of 19:01, 9 May 2013
This function will send a pop-up message to a player. The last 3 parameters are the number amount of each color.
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, and the if statement is passed, 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.".