No categories assigned

LUA:GetItemSkillReq

LUA Functions: GetItemSkillReq()

Returns the skill id req (1 or 2) from an item.


Syntax

GetItemSkillReq(param1, param2)


Parameters

Required - param1 (Item), param2 (int8)
param1 is the spawn to check
param2 is type of skill req (1 or 2)


Usage

function used(Item, Player)
    Say(Player, GetItemSkillReq(Item, 1))
end

When this item is used the player will say the skill_id_req1 of the item in chat.