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

Different Quest script!

jpkulik

New Member
Joined
Mar 15, 2008
Messages
208
Reaction score
2
Hey Guys!
I looking for a script (chest script) that when player Open the box, win a addon, like a Citizen backpack for example, any one can help me with that?
Cya
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if item.uid == 9871 then
if getPlayerStorageValue(cid, 5739) == -1 then
        doPlayerAddOutfit(cid, 128, 1)
            doPlayerAddOutfit(cid, 136, 1)
    setPlayerStorageValue(cid, 5739, 1)
 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You done citizen first addon!')
else
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have this addon.')
            end
    end
return TRUE
end
You must add to actions.xml
Code:
<action uniqueid="9871" script="addon1.lua" />
And for box on map add unique id 9871!
 
Last edited:
Back
Top