• 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 How/where to add "onMove" to TFS 0.4? (Anti house trash)

 
I don't know is it worth starting those posts are quite old and messy
 
0.4 is old so yeah most functions/scripts posted for it will be old but I am sure first and last link I posted are working because I added them before on 0.4 source.
 
"Nothing works" doesn't explain anything, You should write which one you tried to add, What errors you get on compile or as much details as possible so people can help you.
 
"Nothing works" doesn't explain anything, You should write which one you tried to add, What errors you get on compile or as much details as possible so people can help you.
I tried all
either 100+ lines of errors or not compatible with 0.4 they are more like for 0.3.6
Post automatically merged:

show ur creatureevent.cpp
too long
 
ok I managed to upload ////////////////////////////////////////////////////////////////////////// Ope - Pastebin.com (https://pastebin.com/BBTpnNrg)
Post automatically merged:

I found this:
C++:
// Anty zasypywanie domków
    if (toCylinder->getTile()->hasFlag(TILESTATE_HOUSE))
    {
        // Blokujemy zasypywanie nie swoich domków z zewnątrz
        if (!fromCylinder->getTile()->hasFlag(TILESTATE_HOUSE))
        {
            House* tileHouse = toCylinder->getTile()->getHouse();                                 
            House* playerHouse = Houses::getInstance()->getHouseByPlayerId(player->getGUID());

            if (tileHouse != playerHouse)
            {
                    player->sendCancelMessage(RET_NOTPOSSIBLE);
                    return false;     
            } 
        }
        // Blokujemy zasypywanie cudzych domków z innego domku :D
        else
        {
            House* firstHouse = fromCylinder->getTile()->getHouse();
            House* secondHouse = toCylinder->getTile()->getHouse();
            if (firstHouse != secondHouse)
            {
                    player->sendCancelMessage(RET_NOTPOSSIBLE);
                    return false;     
            }
        }
    }
But of course error:
Code:
error: 'class Tile' has no member named 'getHouse'
Again I have no idea how to add that function
 
Last edited:
Back
Top