Ir para conteúdo

Featured Replies

  • Respostas 33
  • Visualizações 3.5k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • akatsukichest.lua (data/actions/scripts): local tab = {     [1] = {outfit = 123}, -- [vocationid] = {outfit = outfitnumber}     [2] = {outfit = 231},     [3] = {outfit = 321} } function onUse(cid,

  • akatsukichest.lua local tab = {     [1] = {outfit = 123}, -- [vocationid] = {outfit = outfitnumber}     [2] = {outfit = 231},     [3] = {outfit = 321} } function onUse(cid, item, frompos, item2, to

  • ? Se você se referiu a mim (porque eu não entendi nada do que você disse), eu fiz o script do modo como o membro pediu.

Postado
  • Autor

agora, apareceu a mensagem que eu virei anbu e eu iria deslogar em 5 segundos, mas eu não deslogo, o char trava, depois de um tempo ele desloga e não loga até eu fechar e abrir o server, (porque dai ele volta sem salvar) e o server também não fecha, só consigo fecha-lo pelo gerenciador de tarefas. aparece apenas esse erro na distro e varias vezes, apenas depois que tento virar anbu/akatsuki

 

[20/10/2014 03:08:32] [Error - CreatureScript Interface] 
[20/10/2014 03:08:32] data/creaturescripts/scripts/advancesave.lua:onAdvance
[20/10/2014 03:08:32] Description: 
[20/10/2014 03:08:32] (luaSetConditionParam) This function can only be used while loading the script.
Postado

local tab = {
   vocations = {1, 2, 3},
    [1] = {outfit = 123}, -- [vocationid] = {outfit = outfitlooktype}
    [2] = {outfit = 231},
    [3] = {outfit = 321}
    }

function onUse(cid, item, frompos, item2, topos)

    local playerid = getPlayerGUID(cid)
    local sto = 32100
        if not isInArray(tab.vocations, getPlayerVocation(cid)) then
            doPlayerSendCancel(cid, "Sua vocação não pode entrar para a Akatsuki.")
            return true
            
        elseif getPlayerStorageValue(cid, sto) > 0 then
            doPlayerSendCancel(cid, "Você já pertence a uma organização.")
            return true
        end
  
    
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você entrou para a Akatsuki!! Seu personagem será deslogado em 5 segundos.")
        db.executeQuery("UPDATE `players` SET `description` = ' Akatsuki Member' WHERE `players`.`id`= ".. playerid .."")
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
        doPlayerAddSkillTry(cid, SKILL__MAGLEVEL, 10)
        doPlayerAddSkillTry(cid, SKILL_DISTANCE, 10)
        doPlayerAddSkillTry(cid, SKILL_SWORD, 10)
        setPlayerStorageValue(cid, sto, 1)
        doCreatureChangeOutfit(cid, {lookType = tab[getPlayerVocation(cid)].outfit})
        addEvent(doRemoveCreature, 5*1000, cid)

    return true
end

 

 

local tab = {
   vocations = {1, 2, 3},
    [1] = {outfit = 123}, -- [vocationid] = {outfit = outfitlooktype}
    [2] = {outfit = 231},
    [3] = {outfit = 321}
    }

function onUse(cid, item, frompos, item2, topos)

    local playerid = getPlayerGUID(cid)
    local sto = 32100
        if not isInArray(tab.vocations, getPlayerVocation(cid)) then
            doPlayerSendCancel(cid, "Sua vocação não pode se tornar um Anbu.")
            return true
            
        elseif getPlayerStorageValue(cid, sto) > 0 then
            doPlayerSendCancel(cid, "Você já pertence a uma organização.")
            return true
        end
  
    
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você se tornou um Anbu!! Seu personagem será deslogado em 5 segundos.")
        db.executeQuery("UPDATE `players` SET `description` = ' Anbu Member' WHERE `players`.`id`= ".. playerid .."")
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
        doPlayerAddSkillTry(cid, SKILL__MAGLEVEL, 10)
        doPlayerAddSkillTry(cid, SKILL_DISTANCE, 10)
        doPlayerAddSkillTry(cid, SKILL_AXE, 10)
        setPlayerStorageValue(cid, sto, 2)
        doCreatureChangeOutfit(cid, {lookType = tab[getPlayerVocation(cid)].outfit})
        addEvent(doRemoveCreature, 5*1000, cid)

    return true
end


spacer.png

 

 

Postado

akatsukichest.lua

local tab = {
    [1] = {outfit = 123}, -- [vocationid] = {outfit = outfitnumber}
    [2] = {outfit = 231},
    [3] = {outfit = 321}
}

function onUse(cid, item, frompos, item2, topos)
    local sto = 32100
        if not (tab[getPlayerVocation(cid)]) then
            return doPlayerSendCancel(cid, "Sua vocação não pode entrar para a Akatsuki.")
        elseif getPlayerStorageValue(cid, sto) > 0 then
            return doPlayerSendCancel(cid, "Você já pertence a uma organização.")
        end
        
    setPlayerStorageValue(cid, sto, 1)
    doPlayerAddSkillTry(cid, SKILL_SWORD, 10)
    doPlayerAddSkillTry(cid, SKILL_DISTANCE, 10)
    doPlayerAddSkillTry(cid, SKILL__MAGLEVEL, 10)
    doSendMagicEffect(getThingPos(cid), CONST_ME_GIFT_WRAPS)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você entrou para a Akatsuki!! Seu personagem será deslogado em 5 segundos.")
    addEvent(function()
        if isCreature(cid) then
            doRemoveCreature(cid)
            db.executeQuery("UPDATE `players` SET `description` = ' Akatsuki Member' WHERE `players`.`id`= "..getPlayerGUID(cid).."")
        end
    end, 5000)
    return true
end




anbuchest.lua

local tab = {
    [1] = {outfit = 123}, -- [vocationid] = {outfit = outfitnumber}
    [2] = {outfit = 231},
    [3] = {outfit = 321}
}

function onUse(cid, item, frompos, item2, topos)
    local sto = 32100
        if not (tab[getPlayerVocation(cid)]) then
            return doPlayerSendCancel(cid, "Sua vocação não pode se tornar um Anbu.")
        elseif getPlayerStorageValue(cid, sto) > 0 then
            return doPlayerSendCancel(cid, "Você já pertence a uma organização.")
        end
        
    setPlayerStorageValue(cid, sto, 1)
    doPlayerAddSkillTry(cid, SKILL_AXE, 10)
    doPlayerAddSkillTry(cid, SKILL_DISTANCE, 10)
    doPlayerAddSkillTry(cid, SKILL__MAGLEVEL, 10)
    doSendMagicEffect(getThingPos(cid), CONST_ME_GIFT_WRAPS)
    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você se tornou um Anbu!! Seu personagem será deslogado em 5 segundos.")
    addEvent(function()
        if isCreature(cid) then
            doRemoveCreature(cid)
            db.executeQuery("UPDATE `players` SET `description` = ' Anbu Member' WHERE `players`.`id`= "..getPlayerGUID(cid).."")
        end
    end, 5000)
    return true
end

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

The corrupt fear us.

The honest support us.

The heroic join us.

Postado
  • Autor

Nossa, ainda está dando erro, desta vez não chegou nem a aparecer a mensagem "Você se tornou anbu/akatsuki..." e consto esses erros:

 

20/10/2014 20:51:26] [Error - CreatureScript Interface] 
[20/10/2014 20:51:26] data/creaturescripts/scripts/advancesave.lua:onAdvance
[20/10/2014 20:51:26] Description: 
[20/10/2014 20:51:26] (luaSetConditionParam) This function can only be used while loading the script.
 
[20/10/2014 20:51:26] [Error - CreatureScript Interface] 
[20/10/2014 20:51:26] data/creaturescripts/scripts/PointsSystem.lua:onAdvance
[20/10/2014 20:51:26] Description: 
[20/10/2014 20:51:26] (luaSetConditionParam) This function can only be used while loading the script.
 
Obs. O que está  dando erro? as skills que são adicionadas ou o Akatsuki/anbu no look?

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.7k

Informação Importante

Confirmação de Termo