• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Corpse Owner

Scargot

New Member
Joined
Aug 1, 2019
Messages
3
Reaction score
0
I've got a problem with corpse owner.
For example: Player X attacks pokemon (pokemon has 1000hp), and this player takes 950 hp pokemon. (95% of pokemon's hp).
And then...
Player Y comes to player X and he attacks pokemon and gets 50 hp of this pokemon. (Only 5% of pokemon's hp).

Player Y gives last hit on pokemon, and player Y can ope corpse.... Player X cannot.


Poketibia: KPDO

checkCorpseOwner = true (tryed both true and false)
monsterLootMessage = 3
monsterLootMessageType = 22
 
open your source code (actions.cpp)
search for:

C++:
        if (corpseOwner != 0 && !player->canOpenCorpse(corpseOwner)) {
            return RETURNVALUE_YOUARENOTTHEOWNER;
        }
change to:

C++:
        /*if (corpseOwner != 0 && !player->canOpenCorpse(corpseOwner)) {
            return RETURNVALUE_YOUARENOTTHEOWNER;
        }*/
 
TFS version? You can try the one above it will remove owner check at all I think so.
or If you want to fix it so highest hit gets the loot link me to your source.
 
Back
Top