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

Lua questchest

Glidarn

Member
Joined
May 9, 2009
Messages
970
Reaction score
16
Location
Åkersberga, Sweden
This is my lua script wich i found here on otland, but i want it to be for lvl 50+ not so lvl 8 can get it cause then going to create x amount of lvl 8 characters and get hugh load with cash

anyhow

Lua:
function onUse(cid, item, frompos, item2, topos)
			 if item.uid == 54999 then
queststatus = getPlayerStorageValue(cid,1000)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"You have found 20 Crystalcoins.") 
doPlayerAddItem(cid,2160,20)
setPlayerStorageValue(cid,1000,1)
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
return 1
end
 
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 54999 then
queststatus = getPlayerStorageValue(cid,1000)
if queststatus == -1 then
     if getPlayerLevel(cid) > 49 then
          doPlayerSendTextMessage(cid,22,"You have found 20 Crystalcoins.") 
          doPlayerAddItem(cid,2160,20)
          setPlayerStorageValue(cid,1000,1)
     else
          doPlayerSendTextMessage(cid,22,"You need to be level 50 to open this chest.")
     end
else
     doPlayerSendTextMessage(cid,22,"It is empty.")
end

end
return 1

end
 
Back
Top