Ir para conteúdo
  • Cadastre-se

(Resolvido)Comando !akatsuki


Ir para solução Resolvido por Storm,

Posts Recomendados

  • Respostas 14
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

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 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)

@Jociel  function onUse(cid, item, fromPosition, itemEx, toPosition) local storage = 14354 -- Coloque aqui a storage value if getCreatureStorage(cid, storage) == -1 then doCreatureSetStorage(cid, storage, 1) doPlayerSendTextMessage(cid, 27, "Parabens!") return true else doPlayerSendTextMessage(cid, 25, "Voce ja fez essa quest") return false end return true end  

@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)

Posted Images

@Jociel 

function onUse(cid, item, fromPosition, itemEx, toPosition)
    
    local storage = 14354 -- Coloque aqui a storage value
    
    if getCreatureStorage(cid, storage) == -1 then
        doCreatureSetStorage(cid, storage, 1)
        doPlayerSendTextMessage(cid, 27, "Parabens!")
        return true
    else
        doPlayerSendTextMessage(cid, 25, "Voce ja fez essa quest")
        return false
    end
    return true
end

 

Link para o post
Compartilhar em outros sites
3 horas atrás, Jociel disse:

@Sttorm poderia fazer uma action que ao abrir o bau adicionasse a storage ao player com uma mensagem

Eu ja tenho essa action por isso pedi apenas o comando

12 horas 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)
            doSendMagicEffect(pos, effect)
            return true 
        else
            doPlayerSendTextMessage(cid, 27, "Voce não tem a storage da akatsuki")
            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

 

Querido vi que depois do looktype tem virgula no comando !akatsuki tera que ter numeros? Ex: !akatsuki 1 eu queria só: !akatsuki o player que ainda não fez a quest aparece a mensagem no local chat queria tirar isto tem como? e também quando o player que fez a quest e conseguiu se transformar falar akatsuki! em laranja

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
Link para o post
Compartilhar em outros sites
Em 12/06/2018 em 23:10, 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)
            doSendMagicEffect(pos, effect)
            return true 
        else
            doPlayerSendTextMessage(cid, 27, "Voce não tem a storage da akatsuki")
            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 digito !akatsuki ele transforma e depois volta ao normal caso o player fale !saga ou !akatsuki ?

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96844
    Tópicos
    519599
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo