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

Chest gives a Item with a action ID

andii95

New Member
Joined
Aug 21, 2009
Messages
413
Reaction score
2
Location
Sweden
I wanna make a chest give a item with a action id, but it doesnt work.
Ive tried giving the chest action id 2000 then puting the item in the chest with a action id.

Any ideas?
 
I wanna make a chest give a item with a action id, but it doesnt work.
Ive tried giving the chest action id 2000 then puting the item in the chest with a action id.

Any ideas?

doing that works. i do it and use it right now with the built in quest system
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local key = doCreateItemEx(2087, 1)
    if item.uid == 64520 then
        if getPlayerStorageValue(cid,64520) == -1 then
            doPlayerSendTextMessage(cid,25,"You have found a key.")
	     doSetItemActionId(key, 3520)
	     doPlayerAddItemEx(cid, key, 1)
            setPlayerStorageValue(cid,64520, 1)
        else
            doPlayerSendTextMessage(cid,25,"The chest is empty.")
        end
    end
    return TRUE
end
 
Back
Top