• 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.X+ mount in protect zone

darkmu

Well-Known Member
Joined
Aug 26, 2007
Messages
274
Solutions
1
Reaction score
50
Location
Paraná,Brazil
Does anyone know if I release using mounts in a protected zone, there may be a bug on the server? If not, can someone tell me where in the source I can release it for everyone to use in the protection zone?

TFS 1.3 OTG PREMMIUM VERSION
 
Does anyone know if I release using mounts in a protected zone, there may be a bug on the server? If not, can someone tell me where in the source I can release it for everyone to use in the protection zone?

TFS 1.3 OTG PREMMIUM VERSION

 
Solution

just a doubt, when i try to mount on top of the protect zone it will not let me, however if i mount outside and enter it works.


do i need to remove this? tile-> hasFlag (TILESTATE_PROTECTIONZONE)


C++:
if (mount) {
        if (isMounted()) {
            return false;
        }

        if (!group->access && tile->hasFlag(TILESTATE_PROTECTIONZONE)) {
            sendCancelMessage(RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE);
            return false;
        }

        const Outfit* playerOutfit = Outfits::getInstance().getOutfitByLookType(getSex(), defaultOutfit.lookType);
        if (!playerOutfit) {
            return false;
        }

        uint8_t currentMountId = getCurrentMount();
        if (currentMountId == 0) {
            sendOutfitWindow();
            return false;
        }

        Mount* currentMount = g_game.mounts.getMountByID(currentMountId);
        if (!currentMount) {
            return false;
        }

        if (!hasMount(currentMount)) {
            setCurrentMount(0);
            sendOutfitWindow();
            return false;
        }
1604975640874.png
1604975656798.png
 
just a doubt, when i try to mount on top of the protect zone it will not let me, however if i mount outside and enter it works.


do i need to remove this? tile-> hasFlag (TILESTATE_PROTECTIONZONE)

C++:
if (mount) {
        if (isMounted()) {
            return false;
        }

        if (!group->access && tile->hasFlag(TILESTATE_PROTECTIONZONE)) {
            sendCancelMessage(RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE);
            return false;
        }

        const Outfit* playerOutfit = Outfits::getInstance().getOutfitByLookType(getSex(), defaultOutfit.lookType);
        if (!playerOutfit) {
            return false;
        }

        uint8_t currentMountId = getCurrentMount();
        if (currentMountId == 0) {
            sendOutfitWindow();
            return false;
        }

        Mount* currentMount = g_game.mounts.getMountByID(currentMountId);
        if (!currentMount) {
            return false;
        }

        if (!hasMount(currentMount)) {
            setCurrentMount(0);
            sendOutfitWindow();
            return false;
        }
View attachment 51524
View attachment 51525
yes
 
Back
Top