• 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 0.X summon can move in pz?

vexler222

Active Member
Joined
Apr 22, 2012
Messages
714
Solutions
15
Reaction score
46
Hello, how i can enable for summon, move in pz?








[yeah my english is bad]
 
Solution
I don't have a 0.x server but looking at the source code i found online
Have a look at: Tile.cpp
C++:
if(const Monster* monster = creature->getMonster())
{
if(hasFlag(TILESTATE_PROTECTIONZONE))
return RET_NOTPOSSIBLE;

This may do the job.
C++:
if(hasFlag(TILESTATE_PROTECTIONZONE) && !monster->isPlayerSummon())

If the tile is a PZ and isn't a player summon say "sorry not possible"
In tile.cpp(sources)
Find and remove that line:
C++:
||  (tmp->getMonster()->isSummon() &&  tmp->getMonster()->isPlayerSummon())
 
In tile.cpp(sources)
Find and remove that line:
C++:
||  (tmp->getMonster()->isSummon() &&  tmp->getMonster()->isPlayerSummon())

i have only it

Code:
                        if(!tmp->getMonster() || !tmp->isPushable() || tmp->isPlayerSummon())
                            return RET_NOTPOSSIBLE;
 
So make it instead

C++:
      if((!tmp->getMonster() && !tmp->isPlayerSummon())|| !tmp->isPushable() )
                            return RET_NOTPOSSIBLE;
 
Can you please post whole function that prevents monk from going in?
(if you know already which function it is)
 
I don't have a 0.x server but looking at the source code i found online
Have a look at: Tile.cpp
C++:
if(const Monster* monster = creature->getMonster())
{
if(hasFlag(TILESTATE_PROTECTIONZONE))
return RET_NOTPOSSIBLE;

This may do the job.
C++:
if(hasFlag(TILESTATE_PROTECTIONZONE) && !monster->isPlayerSummon())

If the tile is a PZ and isn't a player summon say "sorry not possible"
 
Solution
I don't have a 0.x server but looking at the source code i found online
Have a look at: Tile.cpp
C++:
if(const Monster* monster = creature->getMonster())
{
if(hasFlag(TILESTATE_PROTECTIONZONE))
return RET_NOTPOSSIBLE;

This may do the job.
C++:
if(hasFlag(TILESTATE_PROTECTIONZONE) && !monster->isPlayerSummon())

If the tile is a PZ and isn't a player summon say "sorry not possible"

You are my GOD! I love you <3
 
Back
Top