• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Problem on C++

Exactly

New Member
Joined
Jul 14, 2014
Messages
119
Reaction score
4
Hello,

I have reborn script on my server when i attack on my engine send 1,1 1, 1, 1,1, ,1 ,1 and blocked my TFS

Can u tell me what is wrong on this script?

double bonusRebirth = 0.0;
if(attackerPlayer != nullptr){
bonusRebirth = attackerPlayer->rebirth * g_config.getNumber(ConfigManager::REBORN_DMGBONUS);
bonusRebirth /= 10;
bonusRebirth /= 100;
bonusRebirth += 1;
}
else
bonusRebirth = 1.0;

std::cout << bonusRebirth << std::endl;


damage.primary.value = std::abs(damage.primary.value) * bonusRebirth;
damage.secondary.value = std::abs(damage.secondary.value * bonusRebirth);
 
Back
Top