• 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!

Hits/Pvp/Pvm

chricke90

New Member
Joined
Sep 14, 2007
Messages
51
Reaction score
0
I didnt know where to post this so..

Well is there a possiblity to change somewhere instead of C++ codes.. So for example knights hits same as monsters as they does on players?.. Often is damage on monsters double higher than on players if I'm right here.. any help?
 
I didnt know where to post this so..

Well is there a possiblity to change somewhere instead of C++ codes.. So for example knights hits same as monsters as they does on players?.. Often is damage on monsters double higher than on players if I'm right here.. any help?

I just looked through my server files, and I didn't find anything so I'm about 99% positive it's a c++ (server coding) thing.

Jo3
 
I just looked through my server files, and I didn't find anything so I'm about 99% positive it's a c++ (server coding) thing.

Jo3


You are right, on monster.cpp line 146

PHP:
//monsters
int32_t Weapons::getMaxMeleeDamage(int32_t attackSkill, int32_t attackValue)
{
	return ((int32_t)std::ceil((attackSkill * (attackValue * 0.05)) + (attackValue * 0.5)));
}

//players
int32_t Weapons::getMaxWeaponDamage(int32_t attackSkill, int32_t attackValue, float attackFactor)
{
	return ((int32_t)std::ceil(((float)(attackSkill * (attackValue * 0.0425) + (attackValue * 0.2)) / attackFactor)) * 2);
}

ATM it's imposible to make it on lua because theres no action like "On attack" or im wrong?
 
Last edited:
Back
Top