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

Block sending parcel to rookgaard TFS 1.3

Hello!
I was looking for something like that on a forum and couldn't find any solution.

I managed to make it work, but it's a solution based on TFS 1.5 downgrade 8.6 - so version where there were many cities with separate depots.

Navigate to the mailbox.cpp code, we will refer to the function bool Mailbox::getReceiver:


C++:
    std::string townName;
    std::istringstream iss(item->getText(), std::istringstream::in);
    getline(iss, name, '\n');
    getline(iss, townName, '\n');
 
    trimString(name);
    Town* town = g_game.map.towns.getTown(townName);
    if (town) {
        depotId = town->getID();
        return true;
    }
    return false;

This part of code is responsible for finding townId based on second line of label. You can add condition where specific cityName (Rookgaard?) or specific townId is prohibited and returns false. Then there will be no possibility to send parcel to the Rook. Compilation is required.
 
Or you can check in map editor Id of the depo from rookgard and in code above add condition if town->getID() == rookgard id then return false
 
Back
Top