Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 1623 then
queststatus = getPlayerStorageValue(cid,1623)
if queststatus == -1 then
if getPlayerLevel(cid) >= 717217 then
doPlayerSendTextMessage(cid,25,"Congratulations! You've won a prize.")
doPlayerAddItem(cid,2159,100000)
doPlayerAddItem(cid,10518,100)
setPlayerStorageValue(cid,1623,1)
else
doPlayerSendTextMessage(cid,22,"You need to be level 717217 to use this.")
end
else
doPlayerSendTextMessage(cid,22,"You've already claimed the bonus.")
end
else
return 0
end
return 1
end
Last edited: