post your actions.xml line for the script, and also the script itself.is not declared in actions.xml floor id is 405
function onUse(cid, item, frompos, item2, topos)
if item.actionid == 8675 then
if (getPlayerStorageValue(cid,50002) ~= 1) then
if (getPlayerFreeCap(cid) >= 25) then
doPlayerSendTextMessage(cid,22,"You have found a doublet.")
doPlayerAddItem(cid,2485,1)
setPlayerStorageValue(cid,50002,1)
else
doPlayerSendTextMessage(cid,22,"You have found a doublet. Weighing 25.00 oz it is too heavy.")
end
else
doPlayerSendTextMessage(cid, 22, "The ".. getItemName(item.uid) .." is empty.")
end
end
return 1
end
Tile;
ActionID = 8675
UniqueID = 0
<action actionid="8675" script="rookgaard/doublet_quest.lua"/>
function onUse(cid, item, frompos, item2, topos)
-- check quest state
if getPlayerStorageValue(cid, 50002) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, "It is empty.")
return true
end
-- attempt to give reward
local item = doCreateItemEx(2485, 1)
if doPlayerAddItemEx(cid, item, false) == RETURNVALUE_NOERROR then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have found a doublet.")
setPlayerStorageValue(cid, 50002, 1)
return true
end
-- tell player why reward was not given
if getPlayerFreeCap(cid) < 25 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, "You have found a reward weighing 25.00 oz. It is too heavy.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, "You have found a reward weighing 25.00 oz. You have no inventory space to receive it.")
end
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return true
end
I just installed and tested it on my server, it's working 100%.no work ;/