[MiniTUT] New Acc

Results 1 to 4 of 4
  1. #1
    TruCore ES3N1N is offline
    MemberRank
    Nov 2018 Join Date
    UkraineLocation
    217Posts

    config [MiniTUT] New Acc

    Hello Ragezone! This tut not Flash src and not complete SQL.

    WarZ.sln

    Search:
    ProfileData.isDevAccount = xmlAccount.attribute("IsDeveloper").as_uint();

    add below:
    ProfileData.IsModerator = xmlAccount.attribute("IsModerator").as_int();

    Search:
    int PremiumAcc;

    add below:
    int IsModerator;

    Search:
    if(gUserProfile.ProfileData.PremiumAcc>0)
    {
    gfxMovie.SetVariable("_root.api.Main.SurvivorsAnim.Survivors.PremiumAcc.visible", true);
    }
    gfxMovie.Invoke("_root.api.Main.CreateSurv.EnableHardcore", "");


    add below: if(gUserProfile.ProfileData.IsModerator==1)
    {
    gfxMovie.SetVariable("_root.api.Main.SurvivorsAnim.Survivors.MODER.visible", true); gfxMovie.SetVariable("_root.api.Main.SurvivorsAnim.Survivors.PremiumAcc.visible", false); gfxMovie.SetVariable("_root.api.Main.SurvivorsAnim.Survivors.ADMIN.visible", false);
    }


    Search:
    if(gUserProfile.ProfileData.isDevAccount==0)
    {
    ...
    }

    Replace All:
    if(gUserProfile.ProfileData.isDevAccount==0 || gUserProfile.ProfileData.IsModerator==0)
    {
    if(gdata->info.gameTimeLimit > int(gUserProfile.ProfileData.TimePlayed/60/60))
    {
    Scaleform::GFx::Value var[3]; char tmpStr[512]; sprintf(tmpStr, gLangMngr.getString("CannotJoinGameTimeLimit"), gdata->info.gameTimeLimit); var[0].SetString(tmpStr); var[1].SetBoolean(true); var[2].SetString(""); gfxMovie.Invoke("_root.api.showInfoMsg", var, 3); return;
    }
    }


    Search:
    if(gUserProfile.ProfileData.AccountType==0)

    add below:
    if(gUserProfile.ProfileData.IsModerator==1) flags|=4;

    Search:
    bool isUserDev = (flags&2)?true:false;

    add below:
    bool isModerator = (flags&4)?true:false;

    Search:
    if(isUserDev)
    {
    userColor = "#d6ac04"; textColor = "#d6ac04"; namePrefix = "<GM>";
    }


    add below:
    if(isModerator)
    {
    userColor = "#032aa0"; textColor = "#d0d0d0"; namePrefix = "<MOD>";
    }


    Search:
    bool isAdmin = gUserProfile.ProfileData.isDevAccount > 0;

    Add below:
    bool IsModerator = gUserProfile.ProfileData.IsModerator > 0; if(IsModerator)
    {
    if(gUserProfile.ProfileData.IsModerator && !selectedSelf) cntxCmds[curCntxCmd++] = ContextCommand(HUDDisplay_ContextMenu_AdminKickPlayerID, "KICK 30MINUTES"); if(gUserProfile.ProfileData.IsModerator && !selectedSelf) cntxCmds[curCntxCmd++] = ContextCommand(HUDDisplay_ContextMenu_AdminBanPlayerID, "$HUD_PlayerAction_Ban");
    }


    ASP.NET:

    Search:
    xml.Append(xml_attr("AccountType", reader["AccountType"]));

    add below:
    xml.Append(xml_attr("IsModerator", reader["IsModerator"]));

    WarZ_Server.sln

    Search:
    if(plr->profile_.ProfileData.isDevAccount & wiUserProfile::DAA_DEV_ICON)
    n.flags |= 2;

    Add below:
    if(plr->profile_.ProfileData.IsModerator == 1)
    n.flags |= 4;

    Search:
    if(peers_[i].player->profile_.ProfileData.isDevAccount & wiUserProfile::DAA_DEV_ICON)
    n.flags |= 2;

    Add below:
    if(peers_[i].player->profile_.ProfileData.IsModerator == 1)
    n.flags |= 4;




    Search:
    g_GameBlocks_Client->AddKeyValueInt("IsDeveloper", peer.temp_profile.ProfileData.isDevAccount);

    Add below:
    g_GameBlocks_Client->AddKeyValueInt("IsModerator", peer.temp_profile.ProfileData.IsModerator);

    Search:
    if(strncmp(cmd, "/kick", 5) == 0 && ((plr->profile_.ProfileData.isDevAccount & wiUserProfile::DAA_KICK)

    Replace func:
    if(strncmp(cmd, "/kick", 5) == 0 && ((plr->profile_.ProfileData.isDevAccount & wiUserProfile::DAA_KICK) || plr->profile_.CustomerID == creatorID_ || plr->profile_.ProfileData.IsModerator))
    return Cmd_Kick(plr, cmd);

    and Search:
    if(strncmp(cmd, "/ban", 4) == 0 && ((plr->profile_.ProfileData.isDevAccount & wiUserProfile::DAA_BAN)

    Replace Func:
    if(strncmp(cmd, "/ban", 4) == 0 && ((plr->profile_.ProfileData.isDevAccount & wiUserProfile::DAA_BAN) || plr->profile_.ProfileData.IsModerator))
    return Cmd_Ban(plr, cmd);

    Search:
    if(fromPlr->profile_.ProfileData.isDevAccount & wiUserProfile::DAA_DEV_ICON)
    {
    n_non_const->userFlag |= 2;
    }

    Add Below:
    if(fromPlr->profile_.ProfileData.IsModerator == 1)
    {
    n_non_const->userFlag |= 4;
    }
    Last edited by ES3N1N; 18-12-18 at 04:46 PM.


  2. #2
    Account Upgraded | Title Enabled! IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    197Posts

    Re: [MiniTUT] New Acc

    This is just client/server/api, to make a new account flag you will have to add a new parameter to the databse and then you have to get the new variable which you already declared in your database via the api and the api sends it as a xml format to the client/server!

  3. #3
    TruCore ES3N1N is offline
    MemberRank
    Nov 2018 Join Date
    UkraineLocation
    217Posts

    Re: [MiniTUT] New Acc

    Quote Originally Posted by IKaruzI15 View Post
    This is just client/server/api, to make a new account flag you will have to add a new parameter to the databse and then you have to get the new variable which you already declared in your database via the api and the api sends it as a xml format to the client/server!
    This tut not Flash src and not complete SQL.

  4. #4
    Account Upgraded | Title Enabled! IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    197Posts

    Re: [MiniTUT] New Acc

    Steal or not, tbh this shit is not even a tut worth, its simple programming stuff and people will never learn from copy pasta....

    Its already more than 5 years ago when the first src got leaked and tbh this type of copy pasta from isdeveloper to a new variable is such a joke... this is more than nothing new to anyone!



Advertisement