I need a ring lets say gold ring (id= 2179) that when u put it on the ring slot the skills Club, Sword, Axe and Shielding
increase 35 and only knights can use it can some1 make me this script? and of course when u take out the ring the skills will be normal again
i was trying to do it copied some other scripts xD but when i put it on my ring slot it increase 35 but then it just go to normal skills again
can u help me plz?
increase 35 and only knights can use it can some1 make me this script? and of course when u take out the ring the skills will be normal again
i was trying to do it copied some other scripts xD but when i put it on my ring slot it increase 35 but then it just go to normal skills again
local condition1 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition1, CONDITION_PARAM_SKILL_CLUB, 35)
setConditionParam(condition1, CONDITION_PARAM_SKILL_SWORD, 35)
setConditionParam(condition1, CONDITION_PARAM_SKILL_AXE, 35)
setConditionParam(condition1, CONDITION_PARAM_SKILL_SHIELD, 35)
function onEquip(cid, item, slot)
if (not(isSorcerer(cid) or isDruid(cid) or isPaladin(cid)) or (getPlayerLevel(cid) < 50)) and not(getPlayerGroupId(cid) >= 2) then
doAddCondition(cid, condition1)
end
end
function onDeEquip(cid, item, slot)
if isPlayer(cid) and getPlayerStorageValue(cid, 50780) == 1 then
doRemoveCondition(cid, CONDITION_ATTRIBUTES)
local pos = getCreaturePosition(cid)
setPlayerStorageValue(cid, 50780, 0)
local sex = getPlayerSex(cid)
end
end
can u help me plz?