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

Pvp zone error

Clary

New Member
Joined
Mar 7, 2008
Messages
1,007
Reaction score
1
i am facing a prob here
Code:
void Player::dropCorpse()
{
	if(getZone() == ZONE_PVP)
	{
		preSave();
		setDropLoot(true);
		setLossSkill(true);
		sendStats();
		g_game.internalTeleport(this,getTemplePosition(), true);
		g_game.addCreatureHealth(this);
		onThink(EVENT_CREATURE_THINK_INTERVAL);     
	}

this means if the area is pvp zone
when 2 players fight if 1 die he is tped to temple and health added back
to fix tp to temple and add health i did this
Code:
void Player::dropCorpse()
{
	if(getZone() == ZONE_PVP)
	{
		preSave();
		setDropLoot(true);
		setLossSkill(true);
		sendStats();
		Creature::dropCorpse();
		onThink(EVENT_CREATURE_THINK_INTERVAL);     
	}
now the play that died dies but he doesn't lose skill / loot
and the killer doesn't get exp / frag
i want the dead player to drop loot and lose skills
and the killer get exp and frag as well white skull when he start hitting the other player.
 
Back
Top