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

Addon lever

Maten

New Member
Joined
Mar 16, 2009
Messages
219
Reaction score
2
Hey!

I'm looking for a script that if you pull a lever and you get an full addon for e.x you pull a sertent lever and you get full citizen addon if you have 100 mino leathers.

Any one up for it? I have been looking around but couldnt finde anything.

Love in advance! :)
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local v = getPlayerSex(cid) == 0 and 136 or 128
    if not canPlayerWearOutfit(cid, v, 3) then
        if getPlayerItemCount(cid, 5878) > 99 then
            doPlayerRemoveItem(cid, 5878, 100)
            doPlayerAddOutfit(cid, v, 3)
            doSendMagicEffect(getThingPos(cid), CONST_ME_GIFT_WRAPS)
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Congratulations, you've obtained the citizen addons!")
        else
            doPlayerSendCancel(cid, "You don't have enough minotaur leathers to obtain this addon!")
        end
    else
        doPlayerSendCancel(cid, "You have already obtained the citizen addons!")
    end
    return true
end
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local v = getPlayerSex(cid) == 0 and 136 or 128
    if not canPlayerWearOutfit(cid, v, 3) then
        if getPlayerItemCount(cid, 5878) > 99 then
            doPlayerRemoveItem(cid, 5878, 100)
            doPlayerAddOutfit(cid, v, 3)
            doSendMagicEffect(getThingPos(cid), CONST_ME_GIFT_WRAPS)
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Congratulations, you've obtained the citizen addons!")
        else
            doPlayerSendCancel(cid, "You don't have enough minotaur leathers to obtain this addon!")
        end
    else
        doPlayerSendCancel(cid, "You have already obtained the citizen addons!")
    end
    return true
end

Thanks works great!
 
Back
Top