local weapon = 2390 -- id do item
function onCastSpell(cid, var)
if getPlayerItemCount(cid,weapon) >= 1 then
if (getPlayerSlotItem(cid, 5).itemid == weapon) or (getPlayerSlotItem(cid, 6).itemid == weapon) then
return doCombat(cid, acombat, var)
else
doPlayerSendTextMessage(cid, 23, "Sorry, you need use ".. getItemNameById(weapon) .." in your hands to use this.")
end
else
doPlayerSendTextMessage(cid, 23, "Sorry, you need a ".. getItemNameById(weapon) .." to use this Spell.")
end
return TRUE
end
Obrigado, entendi tudo menos uma coisa, qual é a variavel da spell, é esse numero 23 ?