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

Players wont get Skulled

Waller

gogo
Joined
Jun 19, 2008
Messages
770
Reaction score
14
Location
Sweden
Hi

I changed from pvp to pvp-e.

When players killing players they wont get skulled, I heard from an friend that I must change something in source's.

Would be awesome if anyone could help me figure what the problem is.

Regards! :peace:​
 
iologindata.cpp
Code:
[B][COLOR="Red"]	if(g_game.getWorldType() != WORLD_TYPE_PVP_ENFORCED)
	{[/COLOR][/B]
		Skulls_t skull = SKULL_RED;
		if(g_config.getBool(ConfigManager::USE_BLACK_SKULL))
			skull = player->getSkull();

		query << "`skull` = " << skull << ", ";
		query << "`skulltime` = " << player->getSkullEnd() << ", ";
[B][COLOR="Red"]	}[/COLOR][/B]
player.cpp
Code:
void Player::setSkullEnd(time_t _time, bool login, Skulls_t _skull)
{
[B][COLOR="Red"]	if(g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED)
		return;[/COLOR][/B]
and
Code:
bool Player::addUnjustifiedKill(const Player* attacked)
{
	if([B][COLOR="Red"]g_game.getWorldType() == WORLD_TYPE_PVP_ENFORCED || [/COLOR][/B]attacked == this || hasFlag(
		PlayerFlag_NotGainInFight) || hasCustomFlag(PlayerCustomFlag_NotGainSkull))
		return false;
(remove bold red)
 
Back
Top