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

Summons/pets

walkingdragon

Advanced OT User
Joined
Sep 9, 2008
Messages
3,620
Reaction score
190
I need help to make people able to walk through pets/summons (as if they had /ghost on but visible)
 
You have to edit source :/

player.cpp, this part:
Code:
bool Player::canWalkthrough(const Creature* creature) const
{
	if(!creature)
		return true;

	if(creature == this)
		return false;

	const Player* player = creature->getPlayer();
	if(!player)
		return false;

	if(g_game.getWorldType() == WORLD_TYPE_NO_PVP && player->getTile()->ground
		&& player->getTile()->ground->getID() != ITEM_GLOWING_SWITCH)
		return true;

	return player->isGhost() && getGhostAccess() < player->getGhostAccess();
}
 
You have to edit source :/

player.cpp, this part:
Code:
bool Player::canWalkthrough(const Creature* creature) const
{
	if(!creature)
		return true;

	if(creature == this)
		return false;

	const Player* player = creature->getPlayer();
	if(!player)
		return false;

	if(g_game.getWorldType() == WORLD_TYPE_NO_PVP && player->getTile()->ground
		&& player->getTile()->ground->getID() != ITEM_GLOWING_SWITCH)
		return true;

	return player->isGhost() && getGhostAccess() < player->getGhostAccess();
}

Where do I put this?
 
Back
Top