Ir para conteúdo

Featured Replies

Postado
  • Autor

@Sttorm tem como tirar o player que ainda não fez a quest e fala !akatsuki aparece a mensagem no local chat em amarelo como se fosse uma mensagem normal queria tirar isto tem como? e também quando o player que fez a quest e conseguiu se transformar falar akatsuki! em laranja por que ele só transforma n fala nada

Editado por King Laker (veja o histórico de edições)

VlVKQKC.png&key=d5c17620ae9567a1f898dd7a

 

 

 

  • 532144234_Logo_NTO_BLOOD_Finish_HIM_By_Antonio_Luckas(3).png.fd58d1af125a7e82ccdd751637e9ca93.png
  • Respostas 14
  • Visualizações 857
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @King Laker  local t = { [1] = 151, -- [VocID] = lookTypeID [2] = 451, [3] = 351, [4] = 251, } local key = 1234 -- Akatsuki storage local effect = 345 -- Efeito ao tran

  • @Jociel  function onUse(cid, item, fromPosition, itemEx, toPosition) local storage = 14354 -- Coloque aqui a storage value if getCreatureStorage(cid, storage) == -1 then

  • @King Laker  local t = { [1] = 151, -- [VocID] = lookTypeID [2] = 451, [3] = 351, [4] = 251, } local key = 1234 -- Akatsuki storage local effect = 345 -- Efeito ao tran

Posted Images

Postado

@King Laker 

local t = {
    
    [1] = 151, -- [VocID] = lookTypeID 
    [2] = 451,
    [3] = 351,
    [4] = 251,
    
}

local key = 1234 -- Akatsuki storage
local effect = 345 -- Efeito ao transformar

function onSay(cid, words, param, channel)
    local pos = getCreaturePosition(cid) 
    if t[getPlayerVocation(cid)] then
        if getCreatureStorage(cid, key) >= 1 then
            local outfit = {lookType = t[getPlayerVocation(cid)]} 
            doCreatureChangeOutfit(cid, outfit)
            doCreatureSay(cid, "!akatsuki", TALKTYPE_MONSTER)
            doSendMagicEffect(pos, effect)
            return true 
        else
            doPlayerSendTextMessage(cid, 27, "Voce não tem a storage da akatsuki")
            doCreatureSay(cid, "!akatsuki", TALKTYPE_SAY)
            doSendMagicEffect(pos, 2)
            return false
        end 
    else
        doPlayerSendTextMessage(cid, 27, "Sua vocation não tem akatsuki transform.")
        doSendMagicEffect(pos, 2)
        return false
    end 
    return true
end

 

Postado
  • Autor
7 minutos atrás, Sttorm disse:

@King Laker 


local t = {
    
    [1] = 151, -- [VocID] = lookTypeID 
    [2] = 451,
    [3] = 351,
    [4] = 251,
    
}

local key = 1234 -- Akatsuki storage
local effect = 345 -- Efeito ao transformar

function onSay(cid, words, param, channel)
    local pos = getCreaturePosition(cid) 
    if t[getPlayerVocation(cid)] then
        if getCreatureStorage(cid, key) >= 1 then
            local outfit = {lookType = t[getPlayerVocation(cid)]} 
            doCreatureChangeOutfit(cid, outfit)
            doCreatureSay(cid, "!akatsuki", TALKTYPE_MONSTER)
            doSendMagicEffect(pos, effect)
            return true 
        else
            doPlayerSendTextMessage(cid, 27, "Voce não tem a storage da akatsuki")
            doCreatureSay(cid, "!akatsuki", TALKTYPE_SAY)
            doSendMagicEffect(pos, 2)
            return false
        end 
    else
        doPlayerSendTextMessage(cid, 27, "Sua vocation não tem akatsuki transform.")
        doSendMagicEffect(pos, 2)
        return false
    end 
    return true
end

 

quando a pessoa n fez a quest  continua falando em amarelo mano

Screenshot_1.png

VlVKQKC.png&key=d5c17620ae9567a1f898dd7a

 

 

 

  • 532144234_Logo_NTO_BLOOD_Finish_HIM_By_Antonio_Luckas(3).png.fd58d1af125a7e82ccdd751637e9ca93.png
Postado
  • Solução

@King Laker 

local t = {
    
    [1] = 151, -- [VocID] = lookTypeID 
    [2] = 451,
    [3] = 351,
    [4] = 251,
    
}

local key = 1234 -- Akatsuki storage
local effect = 345 -- Efeito ao transformar

function onSay(cid, words, param, channel)
    local pos = getCreaturePosition(cid) 
    if t[getPlayerVocation(cid)] then
        if getCreatureStorage(cid, key) >= 1 then
            local outfit = {lookType = t[getPlayerVocation(cid)]} 
            doCreatureChangeOutfit(cid, outfit)
            doCreatureSay(cid, "!akatsuki", TALKTYPE_MONSTER)
            doSendMagicEffect(pos, effect)
            return true 
        else
            doPlayerSendTextMessage(cid, 27, "Voce não tem a storage da akatsuki")
            doSendMagicEffect(pos, 2)
            return true
        end 
    else
        doPlayerSendTextMessage(cid, 27, "Sua vocation não tem akatsuki transform.")
        doSendMagicEffect(pos, 2)
        return true
    end 
    return true
end

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo