Difference between revisions of "LUA:GetCoinMessage"
(Created page with "= LUA Functions: GetCoinMessage() = Returns a string in the "x Platinum x Gold x Silver x Copper" format for the given amount of coins. ==== Syntax ==== var = GetCoinMessage(pa...") |
(No difference)
|
Latest revision as of 17:58, 16 October 2012
LUA Functions: GetCoinMessage()
Returns a string in the "x Platinum x Gold x Silver x Copper" format for the given amount of coins.
Syntax
var = GetCoinMessage(param1)
Parameters
- Required - param1 (int32)
- param1 is the total amount of coins
Usage
function hailed(NPC, Spawn)
Say(NPC, "I have " .. GetCoinMessage(150) .. "!")
end
When hailed the NPC would say "I have 1 Gold 50 Copper!".