115820
Member
Hi everyone. I need help to change this script 0.4 to 1.2.]
UP!
Code:
function onUse (cid, item, fromPosition, itemEx, toPosition)
-- SFNormal
if(itemEx.itemid == 2346) and math.random(1,100) >= 15 then
doSendAnimatedText(toPosition,"ENERGIZED",TEXTCOLOR_LIGHTBLUE)
doSendMagicEffect(getPlayerPosition(cid), 52)
doPlayerRemoveItem(cid, 7760, 1)
doTransformItem(itemEx.uid, 2349)
elseif (itemEx.itemid ~= 2346) then
doPlayerSendCancel(cid, "item inválido")
elseif math.random(1,100) < 15 then
doSendAnimatedText(toPosition,"Fail!",TEXTCOLOR_DARKPINK)
doPlayerRemoveItem(cid, 7760, 1)
return true
end
UP!
Last edited by a moderator: