Does anyone know to make the quest items appear in the bag when you get them on Avesta 7.6?
This is the script I have but it doesn't work!
This is the script I have but it doesn't work!
Code:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 15085 then
queststatus = getPlayerStorageValue(cid,15085)
if queststatus == -1 or queststatus == 0 then
doPlayerSendTextMessage(cid,22,"You have found a bag.")
local bag = doPlayerAddItem(cid,1987,1)
item_uid = doPlayerAddItem(cid,2656,1)
item_uid = doPlayerAddItem(cid,2536,1)
item_uid = doPlayerAddItem(cid,2436,1)
setPlayerStorageValue(cid,15085,1)
else
doPlayerSendTextMessage(cid,22,"It\'s empty.")
end
else
return 0
end
return 1
end