Olá pessoal...
voltei novamente no fórum com mais duvidas... :positive:
tenho o script aqui da quest... e no executer ela ta dando erro, então eu vim postar ela aqui pra ve se alguem corrige pra mim!
function onUse(cid,item,pos)
elseif item.uid == 2309 then
queststatus = getPlayerStorageValue(cid,2309)
if queststatus == -1 then
if getPlayerFreeCap(cid) >= 30.00 then
doPlayerSendTextMessage(cid,22,"You found a Backpack.")
container = doPlayerAddItem(cid, 2004, 1)
doAddContainerItem(container, 2160, 5) -- cristal coins
doAddContainerItem(container, 2516, 1) -- dragon shield
doAddContainerItem(container, 2476, 1) -- knight armor
doAddContainerItem(container, 2477, 1) -- knight legs
doAddContainerItem(container, 2643, 1) -- leather boots
doAddContainerItem(container, 2475, 1) -- warrior helmet
doAddContainerItem(container, 2383, 1) -- spike sword
doAddContainerItem(container, 2120, 1) -- rope
doAddContainerItem(container, 2428, 1) -- orcish axe
doAddContainerItem(container, 2173, 1) -- aol
doAddContainerItem(container, 2394, 1) -- morning star
doAddContainerItem(container, 2399, 1) -- throwing star
doAddContainerItem(container, 2182, 1) -- snakebit rod
doAddContainerItem(container, 2190, 1) -- wand of vortex
setPlayerStorageValue(cid,2309,1)
else
doPlayerSendTextMessage(cid,22,"You have found a backpack. Weighing 30.00 oz it is too heavy.")
end
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end
e no actions.xml ta assim:
<action itemid="2309" script="fitens.lua" />
Creio q o erro esteja na hora de faze o script e não no action.xml!
Agradeço!