Clary
New Member
- Joined
- Mar 7, 2008
- Messages
- 1,007
- Reaction score
- 1
i am facing a prob here
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
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.
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);
}
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.