Ir para conteúdo
  • Cadastre-se

(Resolvido)Comando !akatsuki


Ir para solução Resolvido por Storm,

Posts Recomendados

Amigos, Preciso de um comando que é igual ao comando !saga (preciso que seja) que se encontra no TK mas com storage e sem mudar a vocação 

só preciso fazer a quest e ganho meus premios e tal + storage pra usar no comando ai no comando vc fala tipo !akatsuki e muda a outfit (não muda a vocação) para uma da akatsuki

 

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
43 minutos atrás, Sttorm disse:

@King Laker Só vai existir um tipo de transformação ? ou seja, cada vocation terá apenas 1 lookType da akatsuki?

Sim. Cada vocação terá sua looktype akatsuki que nem o !saga ou o transformar (mas com apenas 1 vocação e 1 transformação.. não queria que mudasse o id vocation), se for fazer em base de algum tipo de talkaction de transform se possivel faça no !saga que ja estou familiarizado

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

@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

 

Link para o post
Compartilhar em outros sites

@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

@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
Link para o post
Compartilhar em outros sites

@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

 

Link para o post
Compartilhar em outros sites
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
Link para o post
Compartilhar em outros sites
  • 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

 

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.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo