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

Solved Update TFS - script dont work more.

login12

void newbie scripter()
Joined
Feb 26, 2011
Messages
181
Reaction score
31
Location
Brazil
Someone can help with this is bug?

[Warning - Event::checkScript] Can not load script: scripts/alladdons.lua
data/talkactions/scripts/alladdons.lua:1: unexpected symbol near '�'
[Warning - Event::checkScript] Can not load script: scripts/allmounts.lua
data/talkactions/scripts/allmounts.lua:1: unexpected symbol near '�'


alladdons.lua
Code:
function onSay(cid, words, param)

    local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["knight"]={139}, ["noblewoman"]={140}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={336},["wayfarer"]={366}, ["afflicted"]={431}, ["elementalist"]={433}, ["deepling"]={464}, ["insectoid"]={466}, ["red baron"]={471}, ["crystal warlord"]={513}, ["soil guardian"]={514}, ["demon"]={542} }
    local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["knight"]={131}, ["nobleman"]={132}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={335}, ["wayfarer"]={367}, ["afflicted"]={430}, ["elementalist"]={432}, ["deepling"]={463}, ["insectoid"]={465}, ["red baron"]={472}, ["crystal warlord"]={512}, ["soil guardian"]={516},["demon"]={541} }
    local player, param = Player(cid), string.lower(param)
    local addondoll_id = 9693
   
    if player:getItemCount(addondoll_id) > 0 then
        if param ~= "" and maleOutfits[param] and femaleOutfits[param] then
            local outfit = player:getSex() == 0 and femaleOutfits[param][1] or maleOutfits[param][1]
            if not player:hasOutfit(outfit, 3) then
                player:removeItem(addondoll_id, 1)
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Seu Addon full foi adicionado!")
                Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS)
                player:addOutfitAddon(outfit, 3)
            else
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem este addon")
            end
        else
            player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo esta errado!")
        end
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce nao tem addon doll!")
    end
end


allmounts.lua

Code:
function onSay(cid, words, param)

    local table = {
     -- ["mount"] = {price = x, id = x},
        ["black sheep"] = {price = 0, id = 4},
        ["crystal wolf"] = {price = 0, id = 16},
        ["draptor"] = {price = 0, id = 6},
        ["dromedary"] = {price = 0, id = 20},
        ["gnarlhound"] = {price = 0, id = 32},
        ["hellgrip"] = {price = 0, id = 39},
        ["kingly deer"] = {price = 0, id = 18},
        ["lady bug"] = {price = 0, id = 27},
        ["manta ray"] = {price = 0, id = 28},
        ["midnight panther"] = {price = 0, id = 5},
        ["racing bird"] = {price = 0, id = 2},
        ["rapid boar"] = {price = 0, id = 10},
        ["scorpion king"] = {price = 0, id = 21},
        ["panda"] = {price = 0, id = 19},
        ["tiger slug"] = {price = 0, id = 14},
        ["tin lizzard"] = {price = 0, id = 8},
        ["titanica"] = {price = 0, id = 7},
        ["uniwheel"] = {price = 0, id = 15},
        ["widow queen"] = {price = 0, id = 1}
    }

    local player, param = Player(cid), string.lower(param)
    local mountdoll_id = 13030 -- id do addon doll
    local t = table[param]
   
    if player:getItemCount(mountdoll_id) > 0 then
        if param ~= "" and t then
            if not player:hasMount(t.id) then 
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Sua mount foi adicionada!")
                player:removeItem(mountdoll_id, 1)
                Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS)
                player:addMount(t.id)
            else
                player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce ja tem esta mount.")
            end
        else
            player:sendTextMessage(MESSAGE_INFO_DESCR, "Digite novamente, algo está errado!")
        end
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce não tem um mount doll!")
    end
end

please, thanks
 
Back
Top