[DiscordArchive] Hello. 1 question, im using custom items, and i got a problem. Every NPC which is attacking me, i Do
[DiscordArchive] Hello. 1 question, im using custom items, and i got a problem. Every NPC which is attacking me, i Do
Archived author: Wizz • Posted: 2025-06-07T14:26:25.313000+00:00
Original source
Hello. 1 question, im using custom items, and i got a problem. Every NPC which is attacking me, i Dodge every attack. I reduced the stats from worldserver.conf at 0.0 , and in Player.cpp i replaced these lines:
SetFloatValue(PLAYER_PARRY_PERCENTAGE, 5.0f);
SetFloatValue(PLAYER_BLOCK_PERCENTAGE, 5.0f);
But i still dodge every hit. Do i need to modify dodge in other place ?
Archived author: Wizz • Posted: 2025-06-07T14:29:56.896000+00:00
Original source
These are the stats
Archived author: Revision • Posted: 2025-06-07T14:46:58.482000+00:00
Original source
All that agility must be an insane amount of dodge
Archived author: Ryan Turner • Posted: 2025-06-07T15:05:29.775000+00:00
Original source
I would think the agility values are so high that the outcome number is not being fully or correct calculated
Archived author: Ryan Turner • Posted: 2025-06-07T15:05:44.362000+00:00
Original source
Could be the core or a client limitation, try using more "normal" values
Archived author: Rymercyble • Posted: 2025-06-07T15:06:04.641000+00:00
Original source
thats nowhere near enough agility for that to happen
Archived author: Rymercyble • Posted: 2025-06-07T15:06:59.507000+00:00
Original source
client could just show 3154% dodge but he removed setting of update values so its 0% so seems like he missed some place in core
Archived author: Wizz • Posted: 2025-06-07T15:11:57.015000+00:00
Original source
Made some changes in player.cpp
Archived author: Wizz • Posted: 2025-06-07T15:12:38.452000+00:00
Original source
First modification:
void Player::GetDodgeFromAgility(float& diminishing, float& nondiminishing)
{
diminishing = 0.0f; - instead 100.0f
nondiminishing = 1.0f; - instead 100.0f
}
Archived author: Wizz • Posted: 2025-06-07T15:13:26.540000+00:00
Original source
And at Parry/Dodge and other things:
void Player::SetCanParry(bool value)
{
if (m_canParry == value)
return;
m_canParry = value;
// Force 5% parry - Added this line
SetFloatValue(PLAYER_PARRY_PERCENTAGE, 5.0f);
}