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

Windows Give mount on TFS 1.0?

Benna

Member
Joined
Jul 3, 2008
Messages
150
Reaction score
7
Can you give manually a mount to someone on TFS 1.0? Etc blazebringer is a mount that you can't mount with an item/monster you need to do a quest, however would it be possible to give this mount manually?
 
Use
Code:
player:addMount(mountId)

- - - Edit - - -

You could use a talkaction for that, e.g /addmount playerName, mountId
Code:
function onSay(cid, words, param)
    local player = Player(cid)
    if not player:getGroup():getAccess() then
        return true
    end

    if player:getAccountType() < ACCOUNT_TYPE_GOD then
        return false
    end

    local split = param:split(",")
  
    local target = Player(split[1])
    if not target then
        player:sendCancelMessage("A player with that name is not online.")
        return false
    end
  
    if not split[2] then
        player:sendCancelMessage("Insufficient parameters.")
        return false
    end

    local mountId = tonumber(split[2])
    if not target:hasMount(mountId) then
        target:addMount(mountId)
        player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
    else
        player:sendCancelMessage(string.format("%s already have this mount.", target:getName()))
    end
    return false
end
 
it's used same way as lua function

examples:
Code:
doPlayerAddMount(player_id, mountId)
Code:
Player(player_id):addMount(mountId)
 
Use
Code:
player:addMount(mountId)

- - - Edit - - -

You could use a talkaction for that, e.g /addmount playerName, mountId
Code:
function onSay(cid, words, param)
    local player = Player(cid)
    if not player:getGroup():getAccess() then
        return true
    end

    if player:getAccountType() < ACCOUNT_TYPE_GOD then
        return false
    end

    local split = param:split(",")
 
    local target = Player(split[1])
    if not target then
        player:sendCancelMessage("A player with that name is not online.")
        return false
    end
 
    if not split[2] then
        player:sendCancelMessage("Insufficient parameters.")
        return false
    end

    local mountId = tonumber(split[2])
    if not target:hasMount(mountId) then
        target:addMount(mountId)
        player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
    else
        player:sendCancelMessage(string.format("%s already have this mount.", target:getName()))
    end
    return false
end
make this for tfs 1.3x pls
 
Back
Top