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

Walk Through Players in PZ and Clien Version Help

mujica

New Member
Joined
Feb 3, 2010
Messages
203
Reaction score
3
How do i walk through players in pz atm my server does not allow any walk throughs so i understand its a C++ edit i just need to know where and what to edit. TY&REP++



EDIT::::::::: How do i allow players from multiple client versions play my ot like people 8.6+ can login or something
 
not sure about the first one but the second one is just in config.lua
Code:
onePlayerOnlinePerAccount = true
change to false
 
What you are saying is to make it so lets say 123456/654321 had 3 characters and someone can log on all 3 on same account. I want it so 8.6, 8.7, so on and so fourth can log on my server. Ive seen it before where multiple client PROTOCOLS can be on 1 OT
 
not sure about the first one but the second one is just in config.lua
Code:
onePlayerOnlinePerAccount = true
change to false

o_O ...

@OnTopic: About the walk through PZ, please, PLEASE, use the search function or just use Google, there is a lot of topics about that...
About the multiple client, you have to edit the client version on definitions.h
 
for the walkthrough just replace the canWalkthrough with this code
Code:
bool Player::canWalkthrough(const Creature* creature) const
{
	if(creature == this || creature->isWalkable() ||
		(creature->getMaster() && creature->getMaster() != this && canWalkthrough(creature->getMaster())))
		return true;

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

	if(
		(
			(
				(
					(
						player->getVocation()->isAttackable() &&
						player->getLevel() < (uint32_t)g_config.getNumber(ConfigManager::PROTECTION_LEVEL)
					)
					|| (
						player->getTile()->hasFlag(TILESTATE_PROTECTIONZONE) &&
						!player->getTile()->hasFlag(TILESTATE_HOUSE)
					)
				)
			) && player->getTile()->ground &&
				player->getTile()->ground->getID() != 11063
		) && (
			!player->hasCustomFlag(PlayerCustomFlag_GamemasterPrivileges)
			|| player->getAccess() <= getAccess()
		)
	) return true;

	return (player->isGhost() && getGhostAccess() < player->getGhostAccess())
		|| (isGhost() && getGhostAccess() > player->getGhostAccess());
}
 
i want to tell you if you want people not to walk on depot tile just make all dp tile the same id and edit the 11063 to your tile id

- - - Updated - - -

a rep would be enough
 
Back
Top