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

Rebirthlook instead of level look

Hashirama479

World of Ninja
Joined
Dec 19, 2016
Messages
536
Solutions
6
Reaction score
74
Can someone help me to edit that part so it shows rebirth instead of levels?

dV8nR.png


TFS 0.4 ^^ thanks
 
Solution
C++:
    if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel)) {
            std::string value;
            speaker->getStorage("85987" , value);
            int16_t ii = atoi(value.c_str());
                if(ii < 1)
                    ii=1;
            msg->put<uint16_t>(ii);}
        else
            msg->put<uint16_t>(0x00);

    }
go to protocolgame.cpp and find
Code:
if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel) && (pg == NULL || pg != NULL && !pg->getIsCast()))
msg->put<uint16_t>(speaker->getPlayerInfo(PLAYERINFO_LEVEL));
else
msg->put<uint16_t>(0x00);
}

and change it to
Code:
        if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel) && (pg == NULL || pg != NULL && !pg->getIsCast())){
            uint32_t keyes = 85987;
            std::string valueses;
            speaker->getStorage(keyes , valueses );
            int16_t ii = atoi(valueses.c_str());
                if(ii < 1)
                    ii=1;
            msg->put<uint16_t>(ii);}
        else
            msg->put<uint16_t>(0x00);

    }
 
Can u explain me what u mean with "just remove this and try" then ur command thing xD I dont understand it at all to be honest
I think @Pretx was quite clear but here you go anyway.
C++:
        if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel)){
            uint32_t keyes = 85987;
            std::string valueses;
            speaker->getStorage(keyes , valueses );
            int16_t ii = atoi(valueses.c_str());
                if(ii < 1)
                    ii=1;
            msg->put<uint16_t>(ii);}
        else
            msg->put<uint16_t>(0x00);
    }
 
show Creature::getStorage
it shouldn't be converting const char unless your tfs sources are literally retarded
 
C++:
    if(speaker && type != SPEAK_RVR_ANSWER && !speaker->isAccountManager() && !speaker->hasCustomFlag(PlayerCustomFlag_HideLevel)) {
            std::string value;
            speaker->getStorage("85987" , value);
            int16_t ii = atoi(value.c_str());
                if(ii < 1)
                    ii=1;
            msg->put<uint16_t>(ii);}
        else
            msg->put<uint16_t>(0x00);

    }
 
Solution
Working, thanks you guys for help <3

btw I got a other question also its working perfectly it shows the rebirth but in private message it still show the level xD is it possible to change that aswell too?
 
Back
Top