i keep geting this error
[Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/hellquest.lua:46: 'end' expected (to close 'if' at line 4) near '<eof>'
[05/07/2011 22:03:06] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/hellquest.lua)
[05/07/2011 22:03:06] data/actions/scripts/quests/hellquest.lua:46: 'end' expected (to close 'if' at line 4) near '<eof>'
[Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/hellquest.lua:46: 'end' expected (to close 'if' at line 4) near '<eof>'
[05/07/2011 22:03:06] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/hellquest.lua)
[05/07/2011 22:03:06] data/actions/scripts/quests/hellquest.lua:46: 'end' expected (to close 'if' at line 4) near '<eof>'
function onUse(cid, item, frompos, item2, topos)
if item.uid == 20001 then
if getPlayerStorageValue(cid,20001) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a Blessed Shield.")
doPlayerAddItem(cid,2523,1)
setPlayerStorageValue(cid,20001,1)
else
doPlayerSendTextMessage(cid,25,"The is empty.")
end
if item.uid == 20002 then
if getPlayerStorageValue(cid,20002) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a Winning Lottery Ticket for 100mil exp.")
doPlayerAddItem(cid,5957,1)
setPlayerStorageValue(cid,20002,1)
else
doPlayerSendTextMessage(cid,25,"The is empty.")
end
if item.uid == 20003 then
if getPlayerStorageValue(cid,20003) == -1 then
doPlayerSendTextMessage(cid,25,"You have found a Helmet.")
doPlayerAddItem(cid,2343,1)
setPlayerStorageValue(cid,20003,1)
else
doPlayerSendTextMessage(cid,25,"The is empty.")
end
elseif item.uid == 20004 then
if getPlayerStorageValue(cid,20004) == -1 then
doPlayerSendTextMessage(cid,25,"You have found Dragon Legs.")
doPlayerAddItem(cid,2469,1)
setPlayerStorageValue(cid,20004,1)
else
doPlayerSendTextMessage(cid,25,"The is empty.")
end
end
return TRUE
end