Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Quando vou usar esse critical system que tem aqui no forum acontece erro no distro:
o critical system é esse: http://www.tibiaking.com/forum/topic/35663-critical-skill-system/?page=1
o erro acontece quando ocorre o critical, aparece erro no distro e o jogador nao toma nenhum dano

[Error - CreatureEvent::executeCombat] Call stack overflow.
Link para o post
Compartilhar em outros sites
  • Respostas 6
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Substitui o teu creaturescripts\scripts\critical.lua por esse: --[[Critical System ------------------------- By Night Wolf]] local lvlcrit = 48913 local multiplier = 1.5 function onStatsChange(cid, attacker, type, combat, value) if isPlayer(attacker) and (not (attacker == cid)) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS) then if getPlayerStorageValue(cid, 48914) > 0 then return true end if (getPlayerStorageValue(attacker, lvlcrit)*3)

Substitui o teu creaturescripts\scripts\critical.lua por esse:
 

--[[Critical System
-------------------------  By Night Wolf]]


local lvlcrit = 48913
local multiplier = 1.5


function onStatsChange(cid, attacker, type, combat, value)
  if isPlayer(attacker) and (not (attacker == cid)) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS)  then
    if getPlayerStorageValue(cid, 48914) > 0 then
        return true
    end
    
    if (getPlayerStorageValue(attacker, lvlcrit)*3) >= math.random (0,1000) then
      dano = math.ceil(value*(multiplier))
      setPlayerStorageValue(cid, 48914, 1)
      doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 255)
      setPlayerStorageValue(cid, 48913, -1)
      doSendAnimatedText(getCreaturePos(attacker), "CRITICAL!!", 144)
      return false
    end
  end
  
  return true
end

-"Supra Omnes Lux Lucis"

- Acima de todos brilha a Luz -

5VGnDyBz.png

Link para o post
Compartilhar em outros sites
  Em 10/10/2015 em 04:53, MaXwEllDeN disse:

Substitui o teu creaturescripts\scripts\critical.lua por esse:
 

--[[Critical System
-------------------------  By Night Wolf]]


local lvlcrit = 48913
local multiplier = 1.5


function onStatsChange(cid, attacker, type, combat, value)
  if isPlayer(attacker) and (not (attacker == cid)) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS)  then
    if getPlayerStorageValue(cid, 48914) > 0 then
        return true
    end
    
    if (getPlayerStorageValue(attacker, lvlcrit)*3) >= math.random (0,1000) then
      dano = math.ceil(value*(multiplier))
      setPlayerStorageValue(cid, 48914, 1)
      doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 255)
      setPlayerStorageValue(cid, 48913, -1)
      doSendAnimatedText(getCreaturePos(attacker), "CRITICAL!!", 144)
      return false
    end
  end
  
  return true
end
Expand   Mostrar mais  


testei desse jeito ele da o critical 1x apenas e depois nunca mais da critical

Link para o post
Compartilhar em outros sites

Substitui o teu creaturescripts\scripts\critical.lua por esse:

--[[Critical System
-------------------------  By Night Wolf]]


local lvlcrit = 48913
local multiplier = 1.5


function onStatsChange(cid, attacker, type, combat, value)
  if isPlayer(attacker) and (not (attacker == cid)) and (type == STATSCHANGE_HEALTHLOSS or type == STATSCHANGE_MANALOSS)  then
    if getPlayerStorageValue(cid, 48914) > 0 then
        return true
    end
    
    if (getPlayerStorageValue(attacker, lvlcrit)*3) >= math.random (0,1000) then
      dano = math.ceil(value*(multiplier))
      setPlayerStorageValue(cid, 48914, 1)
      doTargetCombatHealth(attacker, cid, combat, -dano, -dano, 255)
      setPlayerStorageValue(cid, 48914, -1)
      doSendAnimatedText(getCreaturePos(attacker), "CRITICAL!!", 144)
      return false
    end
  end
  
  return true
end


Opa, erro meu. Tenta esse

-"Supra Omnes Lux Lucis"

- Acima de todos brilha a Luz -

5VGnDyBz.png

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

    96851
    Tópicos
    519617
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo