No categories assigned

LUA:SetTradeskillLevel

LUA Functions: SetTradeskillLevel()

Sets the tradeskill level of the given spawn

Syntax

SetTradeskillLevel(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int16)
param1 is the spawn to set the tradeskill level on
param2 is the level


Usage

function hail(NPC, Spawn)
    SetTradeskillLevel(Spawn, 10)
end

Changes the players tradeskill level to 10 when they hail the npc.