Difference between revisions of "LUA:GetTradeskillLevel"
(Created page with "= LUA Functions: GetTradeskillLevel() = Returns the tradeskill level for the given spawn. ==== Syntax ==== var = GetTradeskillLevel(param1) ==== Parameters ==== ; Required - ...") |
(No difference)
|
Latest revision as of 16:46, 9 January 2013
LUA Functions: GetTradeskillLevel()
Returns the tradeskill level for the given spawn.
Syntax
var = GetTradeskillLevel(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn whos tradeskill level we are getting
Usage
function hailed(NPC, Spawn)
Say(NPC, "Your tradeskill level is " .. GetTradeskillLevel(Spawn) .. "!")
end
This makes the NPC respond to the player who hails it with the players tradeskill level.