• 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!

Quests wont work! :(

enriel

Big L
Joined
Dec 14, 2007
Messages
1,254
Reaction score
2
Location
Montenegro
I've got two problems, One is POI quest.. When you try to loot the items all is empty and some of them dont work, and the same with Anni, Instead of sca.. i get dlance.! Ive checked all uniqe ids so they are right and they are btw its 8.1 Aries distorb~~ bye sorry for my english.
 
if you get d lance .. check the item id in script.. the IDs of items you get
and about empty chests.. maybe you just made that quest once and your StorageValue is 1 now so you cant make it again :P
 
if you get d lance .. check the item id in script.. the IDs of items you get
and about empty chests.. maybe you just made that quest once and your StorageValue is 1 now so you cant make it again :P

Well I checked the script and the item id, And what about StorageValue?
 
basically, a qeust script cant have the same storagevalue's used in the qeust boxes

just open both scripts press ctrl + f and type "storagevalue" near to them there is a number if they are the same change 1 of them
 
-- simple quests based on uniqueId
-- to make quest create chest on map and set its uniqueId to id of quest item

function onUse(cid, item, frompos, item2, topos)
prize = item.uid
count = item.actionid

if prize > 0 and prize < 7000 then
queststatus = getPlayerStorageValue(cid,prize)

if queststatus == -1 then
if count > 1 then
doPlayerSendTextMessage(cid,22,'You have found '.. count ..' of ' .. getItemName(prize) .. '.')
doPlayerAddItem(cid,prize,count)
setPlayerStorageValue(cid,prize,1)
else
doPlayerSendTextMessage(cid,22,'You have found a ' .. getItemName(prize) .. '.')
doPlayerAddItem(cid,prize,1)
setPlayerStorageValue(cid,prize,1)
end
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end

return 1
else
return 0
end
end

So is the storageValue the same here or not?
 
thats working like.. put unique id to chest
and that unique id = item id.. and then when you use the chest it will give you the item :P
if you understand me..

if you will add unique id to chest 5555 for example you will get item which id is 5555
and maybe some other quest is using storagevalue like that
cuz when you will get item 5555 your storage value 5555 will be 1
and if any other quest got that value too.. you wont be able to make both quests :S :P
 
Back
Top