Ir para conteúdo

Featured Replies

  • Respostas 6
  • Visualizações 482
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @War  function isSummonPlayer(cid) if getCreatureMaster(cid) == cid or getCreatureMaster(cid) == nil then return false end return true end function onStatsChange(cid, attacker

  • @Jociel CreatureScripts.

  • @Jociel Sim, tem q registrar na XML do monstro <event type="statschange" name="Script" event="script" value="script.lua"/>  

Postado

@War 

function isSummonPlayer(cid)
    if getCreatureMaster(cid) == cid or getCreatureMaster(cid) == nil then
        return false
    end
    return true
end

function onStatsChange(cid, attacker, type, combat, value)
    -- This should block all damage monster cause on eachother expect player summons
    if isMonster(cid) and isMonster(attacker) and not isSummonPlayer(attacker) then
        local master = getCreatureMaster(cid)
        if not master or not isPlayer(master) then
            return false
        end
    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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo