• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Quest problem

Shockah

Member
Joined
Aug 31, 2010
Messages
625
Reaction score
17
Location
England
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!

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
 
test this

PHP:
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(bag ,1987,1)    item_uid = doPlayerAddItem(bag ,2656,1)    item_uid = doPlayerAddItem(bag ,2536,1)    item_uid = doPlayerAddItem(bag,2436,1)    setPlayerStorageValue(bag ,15085,1)    else    doPlayerSendTextMessage(cid,22,"It\'s empty.")   end else   return 0 end return 1 end
 
It doesn't give any items when you click the chest but the message 'You have found a bag' appears everytime you click it. Thanks anyway though
 
Back
Top