- Joined
- Apr 21, 2013
- Messages
- 92
- Reaction score
- 58
I Use WarZTHv2, ok?
Let's go:
Let's go:
Adding server for private lagends
WarZ.snl
Find:
void FrontendWarZ::InitButtons()
You will see this:
void FrontendWarZ::InitButtons(){
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(false);
vars[1].SetBoolean(true);
vars[2].SetBoolean(true); // private
vars[3].SetBoolean(false);
vars[4].SetBoolean(true);
vars[5].SetBoolean(false);
vars[6].SetBoolean(false);
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
Overrides for this:
void FrontendWarZ::InitButtons(){
Scaleform::GFx::Value vars[7];
vars[0].SetBoolean(false);
vars[1].SetBoolean(true);
vars[2].SetBoolean(true); // private
vars[3].SetBoolean(false);
if (gUserProfile.ProfileData.AccountType == 0){
vars[4].SetBoolean(true);
}
else {
vars[4].SetBoolean(false);
}
vars[5].SetBoolean(false);
vars[6].SetBoolean(false);
gfxMovie.Invoke("_root.api.Main.BrowseGamesChannelsAnim.initButtons", vars, 7);
}
Adding double XP for legends
WarZ_server
find:
SetReward(1, "ZombieKill", 5, 5, 10, 10);
Add below:
SetReward(2, "ZombieKillL", 20, 20, 40, 40);
20 = xp normal
40 = xp hardcore
find:
RWD_ZombieKill = 1,
Add below:
RWD_ZombieKillL = 2,
find:
gServerLogic.AddPlayerReward(plr, RWD_ZombieKill, 0);
replease:
if(plr->profile_.ProfileData.AccountType == 0){
gServerLogic.AddPlayerReward(plr, RWD_ZombieKillL, 0);
}
else
{
gServerLogic.AddPlayerReward(plr, RWD_ZombieKill, 0);
}
Your code look like this:
if(fromObj->Class->Name == "obj_ServerPlayer") {
obj_ServerPlayer* plr = (obj_ServerPlayer*)fromObj;
if(plr->profile_.ProfileData.AccountType == 0)
{
gServerLogic.AddPlayerReward(plr, RWD_ZombieKillL, 0);
}
else
{
gServerLogic.AddPlayerReward(plr, RWD_ZombieKill, 0);
}
}
return true;
}
That's my contribution. Thank ragezone!
skype: live:fuzzzion_1
skype: live:fuzzzion_1

