Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
How would the code for a player be able to walkthrough a summon if it is inside the protection zone?
forgottenserver/player.cpp at c4b10a905b11728522e715bd41f2493858ab0e46 · otland/forgottenserver · GitHub
I was tryed something like this:
or this:
tfs 1.3
Or an edit to be able to move summon, <flag pushable="1" /> does not work being summon
thanks
forgottenserver/player.cpp at c4b10a905b11728522e715bd41f2493858ab0e46 · otland/forgottenserver · GitHub
I was tryed something like this:
C++:
const Tile* SummonTile = creature->getTile();
if (SummonTile->hasFlag(TILESTATE_PROTECTIONZONE) && creature->isSummon) {
return true;
}
or this:
C++:
const Player* player = creature->getPlayer();
if (!player || !creature->isSummon("Rat")) {
return false;
}
tfs 1.3
Or an edit to be able to move summon, <flag pushable="1" /> does not work being summon
thanks
Last edited by a moderator: