Hello guys !!
I have 2 problem in my Arena Team and i don't know how can i fix it
The 1st problem is : after all sign up all start attack each other b4 the counter stop !
The 2nd problem : after all team die no 1 go out and i checked my TeamArena.cs file and i find the public void ExportTeam() is work
btw i'm just new person try to learn C# so i dont know if the code is right or something wrong
can some1 help me ?
this is the public void ExportTeam() code
thanks guys
I have 2 problem in my Arena Team and i don't know how can i fix it
The 1st problem is : after all sign up all start attack each other b4 the counter stop !
The 2nd problem : after all team die no 1 go out and i checked my TeamArena.cs file and i find the public void ExportTeam() is work
btw i'm just new person try to learn C# so i dont know if the code is right or something wrong
can some1 help me ?
this is the public void ExportTeam() code
PHP Code:
public void ExportTeam()
{
foreach (GameState state in this.Players1.Team.Teammates)
{
foreach (GameState state2 in this.Players2.Team.Teammates)
{
foreach (GameState state3 in this.Winner.Team.Teammates)
{
foreach (GameState state4 in this.Loser.Team.Teammates)
{
state.Entity.InTeamArenaMap = state2.Entity.InTeamArenaMap = false;
state.InTeamArenaMatch = state2.InTeamArenaMatch = false;
foreach (GameState state5 in this.Watchers.ToArray())
{
TeamArena.TeamQualifyEngine.DoLeaveTeam(state5);
}
TeamArena.TeamWin(state3, state4);
this.Inside = false;
state.Entity.Teleport(state.Entity.PreviousMapID, state.Entity.PrevX, state.Entity.PrevY);
state3.Entity.Teleport(state.Entity.PreviousMapID, state.Entity.PrevX, state.Entity.PrevY);
state2.Entity.Teleport(state2.Entity.PreviousMapID, state2.Entity.PrevX, state2.Entity.PrevY);
state4.Entity.Teleport(state2.Entity.PreviousMapID, state2.Entity.PrevX, state2.Entity.PrevY);
state4.Entity.Ressurect();
state3.Entity.Ressurect();
state.TeamArenaStatistic.AcceptBox = state2.TeamArenaStatistic.AcceptBox = false;
state.TeamArenaStatistic.AcceptBoxShow = state2.TeamArenaStatistic.AcceptBoxShow = state2.TeamArenaStatistic.AcceptBoxShow.AddHours(2);
state.TeamArenaStatistic.PlayWith = state2.TeamArenaStatistic.PlayWith = 0;
TeamArena.TeamArenaSignup signup = new TeamArena.TeamArenaSignup
{
DialogID = 10
};
state4.Send(signup.BuildPacket());
signup.OptionID = 1;
state3.Send(signup.BuildPacket());
TeamArena.TeamQualifierList.Groups.Remove(this.ID);
state.Entity.PKMode = this.P1Mode;
Data buffer = new Data(true)
{
UID = state.Entity.UID,
ID = 0x60,
dwParam = (uint)state.Entity.PKMode
};
state.Send(buffer);
state2.Entity.PKMode = this.P2Mode;
Data data2 = new Data(true)
{
UID = state2.Entity.UID,
ID = 0x60,
dwParam = (uint)state2.Entity.PKMode
};
state2.Send(data2);
state.TeamQualifierGroup = null;
state2.TeamQualifierGroup = null;
state.Entity.InTeamArenaorArena = false;
state2.Entity.InTeamArenaorArena = false;
if (this.dynamicMap != null)
{
this.dynamicMap.Dispose();
}
}
}
}
}
}