• 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 Why talkaction are speaking in yellow?

1268995

Member
Joined
Sep 9, 2010
Messages
422
Reaction score
13
Hello, i use this code down as my addon system. But when i use the talkaction !addon (nameofaddon), the talk action appear on yellow, i mean, appear on normal chat.

I want that other players do not know that the player are using the comand !addon (nameofaddon).

I have some other talkactions that when used, do not say the talkaction command on chat, so i want to know how can i change this code to make the command !addon not be showed on Default chat.

Thanks

Code:
function onSay(cid, words, param)
local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["nobleman"]={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}, ["warmaster"]={336}, ["wayfarer"]={366}, ["yalaharian"]={324} }
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}, ["warmaster"]={335}, ["wayfarer"]={367}, ["yalaharian"]={325} }
local msg = {"Digite o nome correto! Ou seja, !addon nomedoaddon. Exemplo: !addon wayfarer.", "Voce nao possui Addon Doll!", "Bad param!", "Voce recebeu seu addon!"}
local param = string.lower(param)
    if(getPlayerItemCount(cid, 9693) > 0) then
        if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
        doPlayerRemoveItem(cid, 9693, 1)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
            if(getPlayerSex(cid) == 0)then
            doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
            else
            doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
            end
            else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
            doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
          
        end
            else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
            doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
    end
end
 
Back
Top