i tryed to use this skinning script but it didnt work i use a 8.4 TFS or if can someone fix this for me, thanks! :thumbup:
local SKINS = {
[2261] = {100000, 2262},
[2262] = {100000, 2263}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerLevel(cid) == 1) then
doPlayerSendCancel(cid, "You can not use on this type of skin.")
else
doRemoveItem(item.uid,1)
end
local skin = SKINS[itemEx.itemid]
if(skin == nil) then
doPlayerSendCancel(cid, "Sorry, not possible.")
return TRUE
end
local random = math.random(1, 100000)
if(random <= skin[1]) then
doSendMagicEffect(toPosition, CONST_ME_GROUNDSHAKER)
doPlayerAddItem(cid, skin[2], 1)
elseif(skin[3] and random >= skin[3]) then
doSendMagicEffect(toPosition, CONST_ME_GROUNDSHAKER)
doPlayerAddItem(cid, skin[4], 1)
else
doSendMagicEffect(toPosition, CONST_ME_POFF)
end
doPlayerRemoveItem(cid, item, pos)
if (doRemoveItem(cid) == item) then
doPlayerSendCancel(cid, "You lost you stone.")
return TRUE
end
doTransformItem(itemEx.uid, itemEx.itemid + 1)
return TRUE
end