No categories assigned

LUA:GetCoinMessage

Revision as of 17:58, 16 October 2012 by Jabantiz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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!".