Im trying to make this so only a lvl 300 knight can use this pot.
Server is 8.40 TFS 0.3.2 Any help would be great thanks
Server is 8.40 TFS 0.3.2 Any help would be great thanks
HTML:
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10 * 60 * 1000) -- 10 minutes
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEE, 5)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, -10)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doTargetCombatCondition(0, cid, condition, CONST_ME_MAGIC_RED) == LUA_ERROR then
return FALSE
end
doRemoveItem(item.uid)
return TRUE
end