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

Solved help whit my addon doll tfs 1.0

mimus

New Member
Joined
Mar 14, 2012
Messages
168
Reaction score
2
when i use the addon doll it says this:



Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/addon.lua:eek:nSay
data/talkactions/scripts/addon.lua:86: attempt to call global 'getThingPos' (a nil value)
stack traceback:
[C]: in function 'getThingPos'
data/talkactions/scripts/addon.lua:86: in function <data/talkactions/scripts/addon.lua:1>







i use it on assasin and beggar ,then nothing, the assassin oufit is not on my list and the beggar do not show the addons, the script is this, tak u so much for the reading


Code:
function onSay(cid, words, param)
local
femaleOutfits = {
    ["citizen"]={136},
    ["hunter"]={137},
    ["mage"]={138},
    ["knight"]={139},
    ["noblewoman"]={140},
    ["summoner"]={141},
    ["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},
    ["redbaron"]={471},
    ["crystalwarlord"]={513},
    ["soil"]={514},
    ["demon"]={542},
    ["cave"]={575},
    ["warden"]={578},
    ["jersey"]={620}
   
}

local maleOutfits = {
    ["citizen"]={128},
    ["hunter"]={129},
    ["mage"]={130},
    ["knight"]={131},
    ["nobleman"]={132},
    ["summoner"]={133},
    ["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},
    ["redbaron"]={472},
    ["crystalwarlord"]={512},
    ["soil"]={516},
    ["demon"]={541},
    ["cave"]={574},
    ["warden"]={577},
    ["jersey"]={619}
}

local msg = {"try again", "you dont have an addondoll!", "try again!", "GZ you have a ney addon!", "you alrrely have this oufit"}
local player, param = Player(cid), string.lower(param)
    if player:getItemCount(9693) > 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(9693, 1)
                player:sendTextMessage(MESSAGE_INFO_DESCR, msg[4])
                Position(getThingPos(cid)):sendMagicEffect(CONST_ME_GIFT_WRAPS)
                player:addOutfitAddon(outfit, 3)
            else
                player:sendTextMessage(MESSAGE_INFO_DESCR, msg[5])
            end
        else
            player:sendTextMessage(MESSAGE_INFO_DESCR, msg[1])
        end
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, msg[2])
    end
end
 
Back
Top