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

can somone fix this script? thank you

fallenedge

New Member
Joined
Jul 13, 2011
Messages
9
Reaction score
0
i get this error

[15/07/2011 06:17:26] [Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/90020.lua:116: 'end' expected (to close 'function' at line 3) near '<eof>'
[15/07/2011 06:17:26] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/90020.lua)

-- Quests.

function onUse(cid, item, frompos, item2, topos)



if item.uid == 50050 then
queststatus = getPlayerStorageValue(cid,50050)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a aol.")
doPlayerAddItem(cid,2173,1)
setPlayerStorageValue(cid,50050,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end



elseif item.uid == 50051 then
queststatus = getPlayerStorageValue(cid,50051)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have two crystal coins.")
doPlayerAddItem(cid,2160,2)
setPlayerStorageValue(cid,50051,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end



elseif item.uid == 50052 then
queststatus = getPlayerStorageValue(cid,50052)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a pirate bp.")
doPlayerAddItem(cid,5926,1)
setPlayerStorageValue(cid,50052,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end



elseif item.uid == 50053 then
queststatus = getPlayerStorageValue(cid,50053)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a serpent sword.")
doPlayerAddItem(cid,2409,1)
setPlayerStorageValue(cid,50053,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end




elseif item.uid == 50054 then
queststatus = getPlayerStorageValue(cid,50054)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a wand of vortex.")
doPlayerAddItem(cid,2190,1)
setPlayerStorageValue(cid,50054,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end




elseif item.uid == 50055 then
queststatus = getPlayerStorageValue(cid,50055)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a snakebit rod.")
doPlayerAddItem(cid,2182,1)
setPlayerStorageValue(cid,50055,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end



elseif item.uid == 50056 then
queststatus = getPlayerStorageValue(cid,55056)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a crossbow.")
doPlayerAddItem(cid,2455,1)
setPlayerStorageValue(cid,50056,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end



elseif item.uid == 50057 then
queststatus = getPlayerStorageValue(cid,50057)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a bolt.")
doPlayerAddItem(cid,2543,1)
setPlayerStorageValue(cid,50057,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end



elseif item.uid == 50058 then
queststatus = getPlayerStorageValue(cid,50058)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found a demon helmet.")
doPlayerAddItem(cid,2493,1)
setPlayerStorageValue(cid,50058,1)
else
doPlayerSendTextMessage(cid,22,"The chest is empty.")
end

return 1
end
 
Back
Top