function onUse(cid, item, frompos, item2, topos)
if item.uid == 9999 then
queststatus = getPlayerStorageValue(cid,9999)
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,22,"Mensaje que sale al recibir el objeto.")
coins_uid = doPlayerAddItem(cid,2393,1)
setPlayerStorageValue(cid,9999,1)
end
else
doPlayerSendTextMessage(cid,22,"It's empty.")
end
return 0
end
queststatus = getPlayerStorageValue(cid,9999)
coins_uid = doPlayerAddItem(cid,2393,1)
setPlayerStorageValue(cid,9999,1)
El mismo que en los otros dos anteriores.
PASO 3:
Luego en data/actions/actions.xml
pon esto y guarda
<action uniqueid="9999" script="cofre.lua" />