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

Critical attack

Simple :p

In your config.lua add this:
Code:
displayCriticalHitNotify = "yes" --made by elf

In configmanager.cpp
under this:

Code:
m_confInteger[WHITE_SKULL_TIME] = getGlobalNumber(L, "whiteSkullTime", 15 * 60 * 1000);

paste this

Code:
m_confString[DISPLAY_CRITICAL_HIT] = getGlobalString(L, "displayCriticalHitNotify", "no");

AFTER

In configmanager.h
Under this:
Code:
GENERATE_ACCOUNT_NUMBER,

paste this
Code:
DISPLAY_CRITICAL_HIT,

In player.cpp
In line 4274 add this:

Code:
void Player::sendCriticalHit() const
{
	if(g_config.getString(ConfigManager::DISPLAY_CRITICAL_HIT) == "yes")
		g_game.addAnimatedText(getPosition(), TEXTCOLOR_DARKRED, "CRITICAL!");
}

In player.h
line 564 add this:

Code:
void sendCriticalHit() const;

The next step its hard :p, becouse i upload my weapons.cpp, remplace for your.All credits for elf. Rep ++ for me plx :p
 

Attachments

Last edited:
Back
Top