• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Mount Doll

mimus

New Member
Joined
Mar 14, 2012
Messages
168
Reaction score
2
hey! can anyone give me an exaple of mount doll for tfs 1.0?? is for 10.37
 
try this 1?

PHP:
function onSay(cid, words, param)

local table = {
    ["widow queen"] = {price = 0, id = 1},
    ["racing bird"] = {price = 0, id = 2},
    ["war bear"] = {price = 0, id = 3},
    ["black sheep"] = {price = 0, id = 4},
    ["midnight panther"] = {price = 0, id = 5},
    ["draptor"] = {price = 0, id = 6},
    ["titanica"] = {price = 0, id = 7},
    ["tin lizzard"] = {price = 0, id = 8},
    ["blazebringer"] = {price = 0, id = 9},
    ["rapid boar"] = {price = 0, id = 10},
    ["stampor"] = {price = 0, id = 11},
    ["undead cavebear"] = {price = 0, id = 12}
}

    local msg = {"You have to choice one: widow queen,racing bird,war bear,black sheep,midnight panther,draptor,titanica,tin lizzard,blazebringer,rapid boar,stampor,undead cavebear", "You dont have Mount Doll..", "Not A Good Param..", "Full Mount Set sucesfully added..","You already got this mount"} 
    local param = string.lower(param)
    local t = table[param]


    if(getPlayerItemCount(cid, 9019) > 0) then
        if(param ~= "" and t) then
        if t and not getPlayerMount(cid, t.id) then
                    doPlayerRemoveItem(cid, 9019, 1)
                    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
                    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
                    doPlayerAddMount(cid, t.id)
        else
                  doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])
           end
        else
          doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
        end
    else
      doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
    end

end
 
Back
Top