good, sorry for my english, I have never seen this type of release in ragezone.
already exists and I'm sorry, but I didn't catch you, I along with my friend (missing) D-Jota
DEVELOPER
PREMIUM
NORMAL
In WarZ.sln
Search
Code:
void FrontendWarZ::InitButtons()
Replace All
Code:
void FrontendWarZ::InitButtons()
{
if (gUserProfile.ProfileData.isDevAccount){
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(true); // Trial Servers DEV
vars[1].SetBoolean(true); // Oficial Servers DEV
vars[2].SetBoolean(true); // Private Servers DEV
vars[3].SetBoolean(true); // Premium Servers DEV
vars[4].SetBoolean(true); // Strongholds DEV
vars[5].SetBoolean(true); // Public Test Enviroment DEV
vars[6].SetBoolean(true); // Official Veteran Servers DEV
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
else
if (gUserProfile.ProfileData.isPremium){
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(false); // Trial Servers Premium
vars[1].SetBoolean(true); // Oficial Servers Premium
vars[2].SetBoolean(true); // Private Servers Premium
vars[3].SetBoolean(true); // Premium Servers Premium
vars[4].SetBoolean(true); // Strongholds NO-Premium
vars[5].SetBoolean(false); // Public Test Enviroment Premium
vars[6].SetBoolean(false); // Official Veteran Servers Premium
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
else
{
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(false); // Trial Servers NORMAL
vars[1].SetBoolean(true); // Oficial Servers NORMAL
vars[2].SetBoolean(true); // Private Servers NORMAL
vars[3].SetBoolean(true); // Premium Servers NORMAL
vars[4].SetBoolean(false); // Strongholds NORMAL
vars[5].SetBoolean(false); // Public Test Enviroment NORMAL
vars[6].SetBoolean(false); // Official Veteran Servers NORMAL
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
}
optional, I use in my current code
Spoiler:
Blue codes are only optional, is for punisher and guest
Code:
void FrontendWarZ::InitButtons()
{
if (gUserProfile.ProfileData.isDevAccount){
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(true); // Trial Servers DEV
vars[1].SetBoolean(true); // Oficial Servers DEV
vars[2].SetBoolean(true); // Private Servers DEV
vars[3].SetBoolean(true); // Premium Servers DEV
vars[4].SetBoolean(true); // Strongholds DEV
vars[5].SetBoolean(true); // Public Test Enviroment DEV
vars[6].SetBoolean(true); // Official Veteran Servers DEV
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
else
if (gUserProfile.ProfileData.isPremium){
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(false); // Trial Servers Premium
vars[1].SetBoolean(true); // Oficial Servers Premium
vars[2].SetBoolean(true); // Private Servers Premium
vars[3].SetBoolean(true); // Premium Servers Premium
vars[4].SetBoolean(true); // Strongholds NO-Premium
vars[5].SetBoolean(false); // Public Test Enviroment Premium
vars[6].SetBoolean(false); // Official Veteran Servers Premium
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
else
if (gUserProfile.ProfileData.isGuest){
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(true); // Trial Servers GUEST
vars[1].SetBoolean(false); // Oficial Servers GUEST
vars[2].SetBoolean(false); // Private Servers GUEST
vars[3].SetBoolean(false); // Premium Servers GUEST
vars[4].SetBoolean(false); // Strongholds NO-GUEST
vars[5].SetBoolean(false); // Public Test Enviroment GUEST
vars[6].SetBoolean(false); // Official Veteran Servers GUEST
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
else
if (gUserProfile.ProfileData.isPunisher){
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(false); // Trial Servers Punisher
vars[1].SetBoolean(true); // Oficial Servers Punisher
vars[2].SetBoolean(true); // Private Servers Punisher
vars[3].SetBoolean(true); // Premium Servers Punisher
vars[4].SetBoolean(true); // Strongholds Punisher
vars[5].SetBoolean(false); // Public Test Enviroment Punisher
vars[6].SetBoolean(true); // Official Veteran Servers Punisher
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
else
{
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(false); // Trial Servers NORMAL
vars[1].SetBoolean(true); // Oficial Servers NORMAL
vars[2].SetBoolean(true); // Private Servers NORMAL
vars[3].SetBoolean(true); // Premium Servers NORMAL
vars[4].SetBoolean(false); // Strongholds NORMAL
vars[5].SetBoolean(false); // Public Test Enviroment NORMAL
vars[6].SetBoolean(false); // Official Veteran Servers NORMAL
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
}
You can also follow the post @GigaToni that teaches disable the button My Servers
http://forum.ragezone.com/f790/release-possibility-disable-servers-1012702/
useful things you will need for your emulator
good, do not know if understand well, but thank one like =]
Last edited by LukasCCB; 24-10-14 at 06:12 PM.
Reason: adding optional codes