Não entendi, ele remover apenas 1 e funciona?
Tente assim:
function onUse(cid, item, position)
if item.itemid == 1945 then
doTransformItem(item.uid, 1946)
else
doTransformItem(item.uid, 1945)
end
local removeItem1 = 11217
local removeItem2 = 11217
local AddItem = 7440 -- o item que o player vai ganhar
if getPlayerItemCount(cid, removeItem1) >= 25 and getPlayerItemCount(cid, removeItem2) >= 25 then
doPlayerRemoveItem(cid, removeItem1, 25)
doPlayerRemoveItem(cid, removeItem2, 25)
doPlayerAddItem(cid, AddItem, 1)
doPlayerPopupFYI(cid, "Voce trocou 25 halloween coins por uma 4x potion")
else
doPlayerPopupFYI(cid, "Voce precisa de 25 halloween coins pra trocar por uma 4x potion")
return false
end
end