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

GOD cant open any boss loot on canary 13x

Anezedu

New Member
Joined
Jun 20, 2021
Messages
13
Reaction score
0
Any time I kill a boss with my god character, it shows me a message: "you cant open this corpse because you are an admin". Is there any way to get this permits to the gods?
 
turn bossloot from true to false or search in the source code for "you are an admin" and change it so it checks if you are god or not
Post automatically merged:

in actions.cpp


const uint32_t corpseOwner = container->getCorpseOwner();
if (container->isRewardCorpse()) {
// only players who participated in the fight can open the corpse
if (player->getGroup()->id >= GROUP_TYPE_GAMEMASTER) {
return RETURNVALUE_YOUCANTOPENCORPSEADM;
}
const auto &reward = player->getReward(rewardId, false);
if (!reward) {
return RETURNVALUE_YOUARENOTTHEOWNER;
}
if (reward->empty()) {
return RETURNVALUE_REWARDCONTAINERISEMPTY;
}
} else if (corpseOwner != 0 && !player->canOpenCorpse(corpseOwner)) {
return RETURNVALUE_YOUARENOTTHEOWNER;
}

you can change it there or you can change the groups in the database
or you change the monster flags

monster.flags = {
summonable = false,
attackable = true,
hostile = true,
convinceable = false,
pushable = false,
rewardBoss = true,
illusionable = false,
canPushItems = true,
canPushCreatures = true,
staticAttackChance = 90,
targetDistance = 1,
runHealth = 0,
healthHidden = false,
isBlockable = false,
canWalkOnEnergy = true,
canWalkOnFire = true,
canWalkOnPoison = true,
}

rewardBoss = true <-- change it to false
 
Last edited:
turn bossloot from true to false or search in the source code for "you are an admin" and change it so it checks if you are god or not
Post automatically merged:

in actions.cpp


const uint32_t corpseOwner = container->getCorpseOwner();
if (container->isRewardCorpse()) {
// only players who participated in the fight can open the corpse
if (player->getGroup()->id >= GROUP_TYPE_GAMEMASTER) {
return RETURNVALUE_YOUCANTOPENCORPSEADM;
}
const auto &reward = player->getReward(rewardId, false);
if (!reward) {
return RETURNVALUE_YOUARENOTTHEOWNER;
}
if (reward->empty()) {
return RETURNVALUE_REWARDCONTAINERISEMPTY;
}
} else if (corpseOwner != 0 && !player->canOpenCorpse(corpseOwner)) {
return RETURNVALUE_YOUARENOTTHEOWNER;
}

you can change it there or you can change the groups in the database
or you change the monster flags

monster.flags = {
summonable = false,
attackable = true,
hostile = true,
convinceable = false,
pushable = false,
rewardBoss = true,
illusionable = false,
canPushItems = true,
canPushCreatures = true,
staticAttackChance = 90,
targetDistance = 1,
runHealth = 0,
healthHidden = false,
isBlockable = false,
canWalkOnEnergy = true,
canWalkOnFire = true,
canWalkOnPoison = true,
}

rewardBoss = true <-- change it to false
I tried deleting:
if (player->getGroup()->id >= GROUP_TYPE_GAMEMASTER) {
return RETURNVALUE_YOUCANTOPENCORPSEADM;
}
But it didnt work :/
 
only players who participated in the fight can open the corpse, it turns out that somewhere the code does not count killing a monster by god
 
Last edited:
Back
Top