Difference between revisions of "LUA:GetLootCoin"

(Removing all content from page)
Line 1: Line 1:
 +
{{PageHeaderChild|LUA|GetLootCoin}}
  
 +
= LUA Functions: GetLootCoin() =
 +
Gets the given spawns loot coins
 +
 +
 +
==== Syntax ====
 +
var = GetLootCoins(param1)
 +
 +
 +
==== Parameters ====
 +
; Required - ''param1'' (Spawn)
 +
: ''param1'' is the spawn who's loot coins we want to get
 +
 +
 +
==== Usage ====
 +
<pre>
 +
function hailed(NPC, Spawn)
 +
    local coins = GetLootCoins(NPC)
 +
    Say(NPC, "I have " .. coins .. "coins")
 +
end
 +
</pre>
 +
 +
When the NPC is hailed it will Say() how many loot coins it has

Revision as of 16:57, 9 August 2016

LUA - GetLootCoin

Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker


LUA Functions: GetLootCoin()

Gets the given spawns loot coins


Syntax

var = GetLootCoins(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's loot coins we want to get


Usage

function hailed(NPC, Spawn)
    local coins = GetLootCoins(NPC)
    Say(NPC, "I have " .. coins .. "coins")
end

When the NPC is hailed it will Say() how many loot coins it has