Ir para conteúdo

Razy

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    Razy deu reputação a Darcio Antonio em Remover a XP que o summon ganha. tfs 0.4   
    Bom vi em vários tutoriais ai da vida, que se colocar isso no config.lua já removia a xp que o summon ganha.
    NoShareExpSummonMonster = true MAS NÃO FUNCIONA
    O correto é ir na sua source e em criature.cpp e editar essa parte aqui.
    void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { if(damagePoints < 0) return; uint32_t attackerId = 0; if(attacker) attackerId = attacker->getID(); CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); if(damagePoints > 0) lastHitCreature = attackerId; } por essa aqui.
    void Creature::addDamagePoints(Creature* attacker, int32_t damagePoints) { uint32_t attackerId = 0; if(attacker) { if(Creature* master = attacker->getMaster()) attacker = master; attackerId = attacker->getID(); } if(attacker->getPlayer()) { CountMap::iterator it = damageMap.find(attackerId); if(it != damageMap.end()) { it->second.ticks = OTSYS_TIME(); if(damagePoints > 0) it->second.total += damagePoints; } else damageMap[attackerId] = CountBlock_t(damagePoints); } if(damagePoints > 0) lastHitCreature = attackerId; } Compila e pronto quando o summon matar a xp vai toda pra você.

Informação Importante

Confirmação de Termo