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

[Request] Mount Talkaction

Panduh

Panduh Approves.
Joined
Jun 9, 2013
Messages
111
Reaction score
1
Location
Panda Land ofc
Hello and im looking for talkaction that you can get a mount by saying "!Mount slug" but only if you have the item in your backpack, also is it possible to have all 9.60 mounts in 1 script? if so ill give lots of rep :)
 
Lua:
function isIn(list)
    local status
    for key, value in pairs(list) do
        if key == param then
            return key, value
        end
    end
end

--you need to add the mounts and id's
--separate each entry with comma
local mounts = {
slug = 1021,
}
local item_id = 1021 --w/e item you are using

function onSay(cid, words, param)
    if isIn(mounts) and doPlayerRemoveItem(cid,item_id,1) then
        doPlayerAddMount(cid, value)
        end
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "That mount doesn't exist or you do not have the required item.")
    end
return
end

Added the item check. If it isn't working let me know, I may have made some logic error, did it fast.
 
Last edited:
Back
Top