• 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.
 
this is the point..
what should i change it to.
 
No, you're asking to do it for you. Try to find it yourself, eventually someone can point you if you fail.
 
Elf i tried doing it my self again
I couldn't just help me please..
I want it to change level and drop loot.
 
what if you just change

Code:
setDropLoot(true);
		setLossSkill(true);

to

Code:
setDropLoot(false);
		setLossSkill(false);


That could work? I know nothing about C++ or whatev, but its worth a try?
 
@up i thinked it wont work
EDIT 1: as i said it didn't ty anyway.
 
Last edited:
Back
Top