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

Need Script!

D3mon

New Member
Joined
Mar 26, 2011
Messages
28
Reaction score
0
Use chest get a key with a Action ID.

Key ID: 2092, ActionID: 54678 thanks Rep++ if you can do it.
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local key = 2092
local actionID = 54678
local storage = 1337

if getPlayerStorageValue(cid, storage) == 1 then
doPlayerSendTextMessage(cid,25,"You have already used this chest!")
else
if getPlayerStorageValue(cid, storage) == -1 then
doPlayerAddItem(cid, key)
doSetItemActionId(item.uid, actionID)
setPlayerStorageValue(cid, storage, 1)
end
end
return true
end
 
Back
Top