• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Penetration of players

SpecyficznyP

New Member
Joined
Aug 27, 2017
Messages
6
Reaction score
0
Hi, I from Poland and sorry for my English.
I'm looking for a script where I could set the penetration of players in the city on the rookgard.
Possibly some tips on how I could do it.
 
wow, just wow..
that translation just made this thread sound like a gangbang in the shady part of some server xD

What you look for is players walking through players if they're unable to attack each other.
And that is C++ (if server doesn't already have it with set config values).
 
Clickbait, but I need help.

Edit: The server is currently being tested on VPS

C++ Where it is??
I want change it.


Edit: I'd like the players to walk through other characters without blocking themselves
 
Last edited:
I have only:
Code:
bool Player::canWalkthrough(const Creature* creature) const
{
if(!creature->getPlayer()){
return false;
}

if(creature->getPlayer()->hasSomeInvisibilityFlag()){
return true;
}

return false;
}
 
I have only:
Code:
bool Player::canWalkthrough(const Creature* creature) const
{
if(!creature->getPlayer()){
return false;
}

if(creature->getPlayer()->hasSomeInvisibilityFlag()){
return true;
}

return false;
}

You can try changing this function to this:
C++:
bool Player::canWalkthrough(const Creature* creature) const
{
Player* tmp = creature->getPlayer();
if(tmp && tmp->getVocation() == 0)
    return true;

if(!tmp){
return false;
}
if(creature->getPlayer()->hasSomeInvisibilityFlag()){
return true;
}
return false;
}

But I'm not sure if it will work cause client may block it.
 
Back
Top