roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
I am using tfs 1.2 downgraded 8.6.
When a player dies by a monster in the arena (PVP Zone Tool), the player loses level (as if in a normal zone).
I tried to use this fix:
But not solved, the bug still occurs.
I am looking for someone who knows how to solve and we will combine the value of the service!
Thankful!
here is the original code of tfs 1.2 (with bug), that need to be fixed up
When a player dies by a monster in the arena (PVP Zone Tool), the player loses level (as if in a normal zone).
I tried to use this fix:
Fix an issue with deaths by monsters in PVP Zones (#1883) · otland/forgottenserver@da1db22
A free and open-source MMORPG server emulator written in C++ - Fix an issue with deaths by monsters in PVP Zones (#1883) · otland/forgottenserver@da1db22
github.com
But not solved, the bug still occurs.
I am looking for someone who knows how to solve and we will combine the value of the service!
Thankful!
here is the original code of tfs 1.2 (with bug), that need to be fixed up
C++:
bool Player::dropCorpse(Creature* _lastHitCreature, Creature* mostDamageCreature, bool lastHitUnjustified, bool mostDamageUnjustified)
{
if (getZone() == ZONE_PVP) {
setDropLoot(true);
return false;
}
return Creature::dropCorpse(_lastHitCreature, mostDamageCreature, lastHitUnjustified, mostDamageUnjustified);
}
Item* Player::getCorpse(Creature* _lastHitCreature, Creature* mostDamageCreature)
{
Item* corpse = Creature::getCorpse(_lastHitCreature, mostDamageCreature);
if (corpse && corpse->getContainer()) {
std::ostringstream ss;
if (_lastHitCreature) {
ss << "You recognize " << getNameDescription() << ". " << (getSex() == PLAYERSEX_FEMALE ? "She" : "He") << " was killed by " << _lastHitCreature->getNameDescription() << '.';
} else {
ss << "You recognize " << getNameDescription() << '.';
}
corpse->setSpecialDescription(ss.str());
}
return corpse;
}
Last edited: