As Helga requested from me...
Code:GuildEmblems_t tmp = getGuildEmblem(player); if((hasCustomFlag(PlayerCustomFlag_CanWalkthrough) || player->isWalkable() || (((g_game.getWorldType() == WORLDTYPE_OPTIONAL && (tmp == EMBLEM_NONE || tmp == EMBLEM_BLUE)) || (player->getVocation()->isAttackable() && player->getVocationId() < 10 && player->getLevel() < (uint32_t)g_config.getNumber(ConfigManager::PROTECTION_LEVEL))) && player->getTile()->ground && Item::items[player->getTile()->ground->getID()].walkStack)) && (!player->hasCustomFlag(PlayerCustomFlag_GamemasterPrivileges) || player->getAccess() <= getAccess())) //Elf return true;
With this piece of code, is it possible to walk through players that stand infront of a depot ?
Great piece of code elf, reptard 4 u
If you run 8.53, I would suggest going TFS 0.4 + protection level, I can borrow you one line of code which allows walking through protected players, so they cannot block on wars.
Elf still got the best solution
what if a guy goes in a door and stands in it like in quests and the dude just goes trough him ? :"/ sucks xD
Nope. You can run 8.57 and 8.53 at once, and 8.57 contains no protocol changes. Actually I think it contains only new items The stackin- yes, as in Tibia, since some rev 3200.
Code:if((hasCustomFlag(PlayerCustomFlag_CanWalkthrough) || player->isWalkable() || (player->getVocation()->isAttackable() && player->getLevel() < (uint32_t)g_config.getNumber( ConfigManager::PROTECTION_LEVEL) && Item::items[player->getTile()->ground->getID()].walkStack)) && (!player->hasCustomFlag(PlayerCustomFlag_GamemasterPrivileges) || player->getAccess() <= getAccess()))
Third conditional statement at Player class method: canWalkthrough.
Since my C++ experience is the same as zero, i need some more help from you helga Where exactly should i the code in players.cpp..
Thanks in advance!