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

TFS 1.2 Allow players walk trough each other on specific tile

Is there a lua or c++ code for this?
check some 8.6 server it has the code
Lua:
void Game::updateCreatureWalkthrough(const Creature* creature)
{
    //send to clients
    SpectatorVec spectators;
    map.getSpectators(spectators, creature->getPosition(), true, true);
    for (Creature* spectator : spectators) {
        Player* tmpPlayer = spectator->getPlayer();
        tmpPlayer->sendCreatureWalkthrough(creature, tmpPlayer->canWalkthroughEx(creature));
    }
}
 
as far as I remember it's hardcoded through specific ID, try doing a ctrl shift F in sources for the depot ones (that one that is a bit red)
Looked for 471 tile in src that im trying to make passible but source doesnt contain such id
Lua:
Searching 174 files for "471"

C:\Server\src\npc.h:
   18   */
   19 
   20: #ifndef FS_NPC_H_B090D0CB549D4435AFA03647195D156F
   21: #define FS_NPC_H_B090D0CB549D4435AFA03647195D156F
   22 
   23  #include "creature.h"

C:\Server\src\otserv.cpp:
  168      //set RSA key
  169      const char* p("14299623962416399520070177382898895550795403345466153217470516082934737582776038882967213386204600674145392845853859217990626450972452084065728686565928113");
  170:     const char* q("7630979195970404721891201847792002125535401292779123937207447574596692788513647179235335529307251350570728407373705564708871762033017096809910315212884101");
  171      g_RSA.setKey(p, q);
  172 

3 matches across 2 files
Post automatically merged:

check some 8.6 server it has the code
Lua:
void Game::updateCreatureWalkthrough(const Creature* creature)
{
    //send to clients
    SpectatorVec spectators;
    map.getSpectators(spectators, creature->getPosition(), true, true);
    for (Creature* spectator : spectators) {
        Player* tmpPlayer = spectator->getPlayer();
        tmpPlayer->sendCreatureWalkthrough(creature, tmpPlayer->canWalkthroughEx(creature));
    }
}
I need to edit this code somehow?
 
Last edited:
There is an attribute to use on items.xml
<attribute key="walkStack" value="1" />

If you want to disable the walkstack overall and only enable it on just a few specific tile ids

Set this to false
 
There is an attribute to use on items.xml
<attribute key="walkStack" value="1" />

If you want to disable the walkstack overall and only enable it on just a few specific tile ids

Set this to false
<attribute key="walkStack" value="1" /> doesnt work still cant go trough players

Dont want to disable it, im trying oposite to enable it on one tile type
 
Back
Top