Fala ae pessoal,
Estou com o problema com o meu revive, Nao tira os status dos poke's qndo utilizado Segue o script
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid ~= getPlayerSlotItem(cid, 8).itemid then
return doPlayerSendCancel(cid, "You must put your pokeball in the correct place!")
end
if getPlayerStorageValue(cid, 990) >= 1 then
return doPlayerSendTextMessage(cid, 27, "You can\'t use potions in the gym.")
end
if itemEx.itemid == 12422 then -- saffari
doItemSetAttribute(itemEx.uid, "hp", 1)
doTransformItem(itemEx.uid, 12420)
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), 13)
doCureBallStatus(pokeball.uid, "all")
doRemoveCondition(item2.uid, CONDITION_PARALYZE)
elseif itemEx.itemid == 11828 then -- normal
doItemSetAttribute(itemEx.uid, "hp", 1)
doTransformItem(itemEx.uid, 11826)
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), 13)
doCureBallStatus(pokeball.uid, "all")
doRemoveCondition(item2.uid, CONDITION_PARALYZE)
elseif itemEx.itemid == 11831 then -- ultra
doItemSetAttribute(itemEx.uid, "hp", 1)
doTransformItem(itemEx.uid, 11829)
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), 13)
doCureBallStatus(pokeball.uid, "all")
doRemoveCondition(item2.uid, CONDITION_PARALYZE)
elseif itemEx.itemid == 11837 then -- super
doItemSetAttribute(itemEx.uid, "hp", 1)
doTransformItem(itemEx.uid, 11835)
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), 13)
doCureBallStatus(pokeball.uid, "all")
doRemoveCondition(item2.uid, CONDITION_PARALYZE)
elseif itemEx.itemid == 11834 then -- great
doItemSetAttribute(itemEx.uid, "hp", 1)
doTransformItem(itemEx.uid, 11832)
doRemoveItem(item.uid, 1)
doSendMagicEffect(getCreaturePosition(cid), 13)
doCureBallStatus(pokeball.uid, "all")
doRemoveCondition(item2.uid, CONDITION_PARALYZE)
end
end ------------------------------------------------------------------------------------------------------- Eu adicionei essas duas linhas, mas n teve efeito algum doCureBallStatus(pokeball.uid, "all")
doRemoveCondition(item2.uid, CONDITION_PARALYZE)
Me ajudem por favor !!!!!