Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make player walkthrough optional #1301

Closed
wants to merge 1 commit into from

Conversation

ranisalt
Copy link
Member

I have just stumbled across this limitation, that the walkthrough could be optionally enabled at config.lua, and done the patch :)

@@ -825,7 +825,7 @@ bool Player::canWalkthrough(const Creature* creature) const
}

const Player* player = creature->getPlayer();
if (!player) {
if (!player || g_config.getBoolean(ConfigManager::ALLOW_WALKTHROUGH)) {
return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be !g_config.getBoolean(ConfigManager::ALLOW_WALKTHROUGH)?

@ranisalt
Copy link
Member Author

True that. Fixed.

@EvanMC
Copy link
Contributor

EvanMC commented Apr 19, 2015

I feel like this should wait until move events are implemented.

@marksamman
Copy link
Member

I agree with @EvanMC.

@EPuncker
Copy link
Contributor

I agree with @marksamman that agrees with @EvanMC

@ranisalt
Copy link
Member Author

No problem in leaving this PR open? :)

@@ -24,6 +24,7 @@ maxPlayers = 0
motd = "Welcome to The Forgotten Server!"
onePlayerOnlinePerAccount = true
allowClones = false
allowWalkthrough = true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be false by default? Sefaults should resemble vanilla in my opinion

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, in Tibia players are walkthroughable by default. This is not a TFS-only feature, maybe you didn't know it has been implemented in Tibia :P

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHAT? Oh hell no, sorry I got stuck in 7.4 apparently.

Sorry man

Fix inverted condition
@ranisalt ranisalt closed this Nov 21, 2015
@ranisalt ranisalt deleted the walkthrough-optional branch January 10, 2017 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants