Register for your free account! | Forgot your password?

You last visited: Today at 22:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Team Arena Problem

Discussion on Team Arena Problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 07/25/2013, 21:54   #16
 
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
Quote:
Originally Posted by The.Goblin View Post
Will be Players1
hello bro
thanks for your fastest replay
when i change the code to :
PHP Code:
foreach (Client.GameState teammate1 in Players1.Entity.Owner.Team.Teammates
i got Error in :
PHP Code:
foreach (Client.GameState teammate2 in Player2.Entity.Owner.Team.Teammates
Error say : 4 The name 'Player2' does not exist in the current

so i i try to change Player2 to Players2
so i got many Errors
girgismena is offline  
Old 07/25/2013, 22:07   #17
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
Quote:
Originally Posted by girgismena View Post
hello bro
thanks for your fastest replay
when i change the code to :
PHP Code:
foreach (Client.GameState teammate1 in Players1.Entity.Owner.Team.Teammates
i got Error in :
PHP Code:
foreach (Client.GameState teammate2 in Player2.Entity.Owner.Team.Teammates
Error say : 4 The name 'Player2' does not exist in the current

so i i try to change Player2 to Players2
so i got many Errors

try to get hints from ur previous codes and still it won't work any better.
as i say
all codes had to recoded.
i have this problem too but i don't know why i haven't the will to check all its codes.
abdoumatrix is offline  
Old 07/25/2013, 22:08   #18
 
elite*gold: 0
Join Date: Mar 2013
Posts: 12
Received Thanks: 2
Quote:
Originally Posted by girgismena View Post
hello bro
thanks for your fastest replay
when i change the code to :
PHP Code:
foreach (Client.GameState teammate1 in Players1.Entity.Owner.Team.Teammates
i got Error in :
PHP Code:
foreach (Client.GameState teammate2 in Player2.Entity.Owner.Team.Teammates
Error say : 4 The name 'Player2' does not exist in the current

so i i try to change Player2 to Players2
so i got many Errors
try this

PHP Code:
                public void ExportTeam()
                {
                    foreach (
Client.GameState teammate1 in Players1.Entity.Owner.Team.Teammates)
                    {
                        foreach (
Client.GameState teammate2 in Players2.Entity.Owner.Team.Teammates)
                        {
                            
teammate1.InArenaMatch Players1.InArenaMatch;
                            
teammate2.InArenaMatch Players2.InArenaMatch;
                            
Players1.InArenaMatch Players2.InArenaMatch false;
                            var 
arr Watchers.ToArray();
                            foreach (
Client.GameState client in arr)
                                
TeamArena.TeamQualifyEngine.DoLeaveTeam(client);
                            
arr null;
                            
TeamWin(WinnerLoser);
                            
Inside false;
                            
// Player1.Entity.Teleport(Player1.Entity.PreviousMapID, Player1.Entity.PrevX, Player1.Entity.PrevY); 
                            //  Player2.Entity.Teleport(Player2.Entity.PreviousMapID, Player2.Entity.PrevX, Player2.Entity.PrevY); 
                            
Players1.Entity.Teleport(1002444444);
                            
teammate1.Entity.Teleport(1002444444);
                            
Players2.Entity.Teleport(1002444444);
                            
teammate2.Entity.Teleport(1002444444);
                            
AhmedFox.Console.WriteLine("Team arena Job Done");
                            
Loser.Entity.Ressurect2();
                            
Winner.Entity.Ressurect2();
                            
Players1.TeamArenaStatistic.AcceptBox Players2.TeamArenaStatistic.AcceptBox false;
                            
Players1.TeamArenaStatistic.AcceptBoxShow Players2.TeamArenaStatistic.AcceptBoxShow Players2.TeamArenaStatistic.AcceptBoxShow.AddHours(2);
                            
Players1.TeamArenaStatistic.PlayWith Players2.TeamArenaStatistic.PlayWith 0;
                           
// TeamArenaSignup sign = new TeamArenaSignup();
                            //sign.DialogID = TeamArenaSignup.MainIDs.Dialog2;
                           // Loser.Send(sign.BuildPacket());
                            //sign.OptionID = TeamArenaSignup.DialogButton.Win;
                           // Winner.Send(sign.BuildPacket());
                            
TeamArena.TeamArenaSignup signup = new TeamArena.TeamArenaSignup
                            
{
                                
DialogID 10
                            
};
                            
Loser.Send(signup.BuildPacket());
                            
signup.OptionID 1;
                            
Winner.Send(signup.BuildPacket());
                            
TeamQualifierList.Groups.Remove(ID);
                            
Players1.Entity.PKMode P1Mode;
                            
Players1.Send(new Data(true) { UID Players1.Entity.UIDID Data.ChangePKModedwParam = (uint)Players1.Entity.PKMode });
                            
Players2.Entity.PKMode P2Mode;
                            
Players2.Send(new Data(true) { UID Players2.Entity.UIDID Data.ChangePKModedwParam = (uint)Players2.Entity.PKMode });
                            
Players1.TeamQualifierGroup null;
                            
Players2.TeamQualifierGroup null;
                            
teammate1.Entity.PKMode P1Mode;
                            
teammate1.Send(new Data(true) { UID Players1.Entity.UIDID Data.ChangePKModedwParam = (uint)Players1.Entity.PKMode });
                            
teammate2.Entity.PKMode P2Mode;
                            
teammate2.Send(new Data(true) { UID Players2.Entity.UIDID Data.ChangePKModedwParam = (uint)Players2.Entity.PKMode });
                            
teammate1.TeamQualifierGroup null;
                            
teammate2.TeamQualifierGroup null;
                            if (
dynamicMap != null)
                                
dynamicMap.Dispose();
                        }
                    }
                } 
The.Goblin is offline  
Old 07/25/2013, 22:20   #19
 
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
Quote:
Originally Posted by The.Goblin View Post
try this

PHP Code:
                public void ExportTeam()
                {
                    foreach (
Client.GameState teammate1 in Players1.Entity.Owner.Team.Teammates)
                    {
                        foreach (
Client.GameState teammate2 in Players2.Entity.Owner.Team.Teammates)
                        {
                            
teammate1.InArenaMatch Players1.InArenaMatch;
                            
teammate2.InArenaMatch Players2.InArenaMatch;
                            
Players1.InArenaMatch Players2.InArenaMatch false;
                            var 
arr Watchers.ToArray();
                            foreach (
Client.GameState client in arr)
                                
TeamArena.TeamQualifyEngine.DoLeaveTeam(client);
                            
arr null;
                            
TeamWin(WinnerLoser);
                            
Inside false;
                            
// Player1.Entity.Teleport(Player1.Entity.PreviousMapID, Player1.Entity.PrevX, Player1.Entity.PrevY); 
                            //  Player2.Entity.Teleport(Player2.Entity.PreviousMapID, Player2.Entity.PrevX, Player2.Entity.PrevY); 
                            
Players1.Entity.Teleport(1002444444);
                            
teammate1.Entity.Teleport(1002444444);
                            
Players2.Entity.Teleport(1002444444);
                            
teammate2.Entity.Teleport(1002444444);
                            
AhmedFox.Console.WriteLine("Team arena Job Done");
                            
Loser.Entity.Ressurect2();
                            
Winner.Entity.Ressurect2();
                            
Players1.TeamArenaStatistic.AcceptBox Players2.TeamArenaStatistic.AcceptBox false;
                            
Players1.TeamArenaStatistic.AcceptBoxShow Players2.TeamArenaStatistic.AcceptBoxShow Players2.TeamArenaStatistic.AcceptBoxShow.AddHours(2);
                            
Players1.TeamArenaStatistic.PlayWith Players2.TeamArenaStatistic.PlayWith 0;
                           
// TeamArenaSignup sign = new TeamArenaSignup();
                            //sign.DialogID = TeamArenaSignup.MainIDs.Dialog2;
                           // Loser.Send(sign.BuildPacket());
                            //sign.OptionID = TeamArenaSignup.DialogButton.Win;
                           // Winner.Send(sign.BuildPacket());
                            
TeamArena.TeamArenaSignup signup = new TeamArena.TeamArenaSignup
                            
{
                                
DialogID 10
                            
};
                            
Loser.Send(signup.BuildPacket());
                            
signup.OptionID 1;
                            
Winner.Send(signup.BuildPacket());
                            
TeamQualifierList.Groups.Remove(ID);
                            
Players1.Entity.PKMode P1Mode;
                            
Players1.Send(new Data(true) { UID Players1.Entity.UIDID Data.ChangePKModedwParam = (uint)Players1.Entity.PKMode });
                            
Players2.Entity.PKMode P2Mode;
                            
Players2.Send(new Data(true) { UID Players2.Entity.UIDID Data.ChangePKModedwParam = (uint)Players2.Entity.PKMode });
                            
Players1.TeamQualifierGroup null;
                            
Players2.TeamQualifierGroup null;
                            
teammate1.Entity.PKMode P1Mode;
                            
teammate1.Send(new Data(true) { UID Players1.Entity.UIDID Data.ChangePKModedwParam = (uint)Players1.Entity.PKMode });
                            
teammate2.Entity.PKMode P2Mode;
                            
teammate2.Send(new Data(true) { UID Players2.Entity.UIDID Data.ChangePKModedwParam = (uint)Players2.Entity.PKMode });
                            
teammate1.TeamQualifierGroup null;
                            
teammate2.TeamQualifierGroup null;
                            if (
dynamicMap != null)
                                
dynamicMap.Dispose();
                        }
                    }
                } 
i try it but still players stay in TeamArena even after all team die

Quote:
Originally Posted by abdoumatrix View Post
try to get hints from ur previous codes and still it won't work any better.
as i say
all codes had to recoded.
i have this problem too but i don't know why i haven't the will to check all its codes.
i try with all ways
and still didnt work
even after i put The.Goblin codes
it dosent work
players still didnt quit after the other team die

hey guys
i found the same problem with some1
and BiGBos answer and said use that code
PHP Code:
if (attacked.Owner.TeamQualifierGroup != null)
                        {

                            
int die = 0;
                    foreach (
Client.GameState teammate in attacked.Owner.Team.Teammates)
                        {
                    if (
teammate.Entity.Dead)
                            die++;
                        }
                    if (die == 
attacked.Owner.Team.Teammates.Count())
                {
                    foreach (
Client.GameState teammate in attacked.Owner.Team.Teammates)
                {
                    if (
teammate.Team.TeamLeader)
                        
teammate.TeamQualifierGroup.EndTeam(teammate); 
i know it will add in handel.cs
but i dont know in witch section i will add it
and i find some1 ask where i can add it
so some1 said in handel.cs after that code
PHP Code:
clients.Entity.Die(attacker); 
but i dont have that code in all of my source
can i add the BigBos in another section ?
girgismena is offline  
Old 07/25/2013, 23:04   #20
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Learn basic programming before trying to re-code important systems like this.

You have no clue what you are doing and it all boils down to being able to read and comprehend what the code is doing.

Learn to walk before you run. Take a few weeks to just learn the basics of C# before you try doing anything with a pserver. Even then you should just start on basic edits/npcs/minor features before you jump into the deep end.
pro4never is offline  
Old 07/25/2013, 23:22   #21
 
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
Quote:
Originally Posted by pro4never View Post
Learn basic programming before trying to re-code important systems like this.

You have no clue what you are doing and it all boils down to being able to read and comprehend what the code is doing.

Learn to walk before you run. Take a few weeks to just learn the basics of C# before you try doing anything with a pserver. Even then you should just start on basic edits/npcs/minor features before you jump into the deep end.
if i will w8 till i learn basic programming then i will not fix the problem soon bro
i said i start Learning from 3 days
i will not learn even in one week.
btw i want to ask something
that forum for help new ppl who dont know who to do something or for professional ppls ?
i seen alot of threads ppl ask for help and all they got who say Learn programming
u can help who need help 1st and u can ask him to Learn programming after u help him guys
like what that the others try to do with me
and like what member did with me in that problem

i have to say thanks to him evryday
anyway thanks bro
girgismena is offline  
Old 07/25/2013, 23:42   #22
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
We are telling you how to learn to fix your own problems.

If you want to run a server then you NEED to learn programming. Fixing problems quickly will not teach you anything and therefor it's worthless.

Focus on learning the knowledge you need. We're here to provide you with suggestions and areas to study not to babysit every single question you might ever have.

If you just want it to 'work' then why not just pay someone to do the work for you. Asking us to do your job for free is kinda silly.
pro4never is offline  
Old 07/25/2013, 23:46   #23
 
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
Quote:
Originally Posted by pro4never View Post
We are telling you how to learn to fix your own problems.

If you want to run a server then you NEED to learn programming. Fixing problems quickly will not teach you anything and therefor it's worthless.

Focus on learning the knowledge you need. We're here to provide you with suggestions and areas to study not to babysit every single question you might ever have.

If you just want it to 'work' then why not just pay someone to do the work for you. Asking us to do your job for free is kinda silly.
if u think the money is the solution then np i can pay you money its np for me
but what a help u give me or another members if u will got money for that help ?
girgismena is offline  
Old 07/25/2013, 23:52   #24
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
I have no interest in your money but I'm pointing out that if you're not able to understand the fixes and advice we're giving you then it's a waste of both of our time.


If you spend a few days > weeks learning how programming works then you'll be able to understand what you're reading and be able to implement the fixes we suggest for you and tada! no more wasted time for either of us.

If you're not willing to put in the time then why should we?
pro4never is offline  
Thanks
1 User
Old 07/26/2013, 00:01   #25
 
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
Quote:
Originally Posted by pro4never View Post
I have no interest in your money but I'm pointing out that if you're not able to understand the fixes and advice we're giving you then it's a waste of both of our time.


If you spend a few days > weeks learning how programming works then you'll be able to understand what you're reading and be able to implement the fixes we suggest for you and tada! no more wasted time for either of us.

If you're not willing to put in the time then why should we?
you are right
and i will try with all my time to Learn fast
anyway thanks for you advices
girgismena is offline  
Old 07/26/2013, 17:56   #26
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
use this

PHP Code:
#region Team Arena
              
                  
if (this.Owner.QualifierGroups != null)
                  {
                      foreach (
Client.GameState teammate in Owner.Team.Teammates)
                      {
                          if (
teammate.Entity.MapID == Killer.MapID)
                          {
                              if (
Owner.Team.m_Team.Count 1)
                              {
                                  if (
teammate.Entity.Dead && teammate.Entity.UID != Owner.Entity.UID)
                                  {
                                      
this.Owner.QualifierGroups.End(this.Owner);
                                  }
                              }
                              else
                              {
                                  
this.Owner.QualifierGroups.End(this.Owner);
                              }
                          }                      
                      }
                  }

                
#endregion Team Arena 
abdoumatrix is offline  
Thanks
1 User
Old 07/26/2013, 18:45   #27
 
elite*gold: 0
Join Date: Mar 2013
Posts: 12
Received Thanks: 2
Quote:
Originally Posted by abdoumatrix View Post
use this

PHP Code:
#region Team Arena
              
                  
if (this.Owner.QualifierGroups != null)
                  {
                      foreach (
Client.GameState teammate in Owner.Team.Teammates)
                      {
                          if (
teammate.Entity.MapID == Killer.MapID)
                          {
                              if (
Owner.Team.m_Team.Count 1)
                              {
                                  if (
teammate.Entity.Dead && teammate.Entity.UID != Owner.Entity.UID)
                                  {
                                      
this.Owner.QualifierGroups.End(this.Owner);
                                  }
                              }
                              else
                              {
                                  
this.Owner.QualifierGroups.End(this.Owner);
                              }
                          }                      
                      }
                  }

                
#endregion Team Arena 


Great abdou thx
The.Goblin is offline  
Old 07/27/2013, 01:14   #28
 
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
Quote:
Originally Posted by abdoumatrix View Post
use this

PHP Code:
#region Team Arena
              
                  
if (this.Owner.QualifierGroups != null)
                  {
                      foreach (
Client.GameState teammate in Owner.Team.Teammates)
                      {
                          if (
teammate.Entity.MapID == Killer.MapID)
                          {
                              if (
Owner.Team.m_Team.Count 1)
                              {
                                  if (
teammate.Entity.Dead && teammate.Entity.UID != Owner.Entity.UID)
                                  {
                                      
this.Owner.QualifierGroups.End(this.Owner);
                                  }
                              }
                              else
                              {
                                  
this.Owner.QualifierGroups.End(this.Owner);
                              }
                          }                      
                      }
                  }

                
#endregion Team Arena 
where i can add it ?
thanks
girgismena is offline  
Old 07/27/2013, 02:38   #29
 
elite*gold: 0
Join Date: Mar 2013
Posts: 12
Received Thanks: 2
Quote:
Originally Posted by girgismena View Post
where i can add it ?
thanks
Entity

in void die
The.Goblin is offline  
Thanks
1 User
Old 07/27/2013, 03:23   #30
 
elite*gold: 0
Join Date: Aug 2009
Posts: 94
Received Thanks: 6
Quote:
Originally Posted by abdoumatrix View Post
use this

PHP Code:
#region Team Arena
              
                  
if (this.Owner.QualifierGroups != null)
                  {
                      foreach (
Client.GameState teammate in Owner.Team.Teammates)
                      {
                          if (
teammate.Entity.MapID == Killer.MapID)
                          {
                              if (
Owner.Team.m_Team.Count 1)
                              {
                                  if (
teammate.Entity.Dead && teammate.Entity.UID != Owner.Entity.UID)
                                  {
                                      
this.Owner.QualifierGroups.End(this.Owner);
                                  }
                              }
                              else
                              {
                                  
this.Owner.QualifierGroups.End(this.Owner);
                              }
                          }                      
                      }
                  }

                
#endregion Team Arena 
thanks alot bro

Quote:
Originally Posted by The.Goblin View Post
Entity

in void die
thanks alot bro
but i got Error from it after i add it


PHP Code:
Error1 in :

if (
this.Owner.QualifierGroups != null)

Error :Error    4    'ShekoProject.Client.GameState' does not contain a definition for 'QualifierGroups' and no extension method 'QualifierGroups' accepting a first argument of type 'ShekoProject.Client.GameState' could be found (are you missing a using directive or an assembly reference?)

Error2 in :

if (
Owner.Team.m_Team.Count 1)

Error Error    5    'ShekoProject.Game.ConquerStructures.Team.m_Team' is inaccessible due to its protection level


Error3 in 
this.Owner.QualifierGroups.End(this.Owner);

Error Error    6    'ShekoProject.Client.GameState' does not contain a definition for 'QualifierGroups' and no extension method 'QualifierGroups' accepting a first argument of type 'ShekoProject.Client.GameState' could be found (are you missing a using directive or an assembly reference?)

Error4 in this.Owner.QualifierGroups.End(this.Owner);

Error Error    7    'ShekoProject.Client.GameState' does not contain a definition for 'QualifierGroups' and no extension method 'QualifierGroups' accepting a first argument of type 'ShekoProject.Client.GameState' could be found (are you missing a using directive or an assembly reference?) 
and thanks for help
girgismena is offline  
Reply


Similar Threads Similar Threads
[Sharing] Big Problem in Team Arena
05/15/2013 - CO2 Private Server - 1 Replies
i have big Problem in Team arena or when 3 member in Team Enter arena Vs 3 member in other Team when i kill all in map i can't Out From arena I Want to know What Can i do To make Team Arena Like TQ ? i wish if it help someone.
Arena Team?
11/04/2012 - World of Warcraft - 14 Replies
Servus, hätte mal ne Frage zur Kombination eines 2er Teams. Da mein Arenapartner nen Arms spielt wollt ich mal fragen ob man schon sagen kann was sich am Besten dazu eignet? Kann zwischen Schurke, DK, Hunter, Warri und Mage wählen. Antwort entweder in den Thread posten oder per PN ;) mfg Omboss
Team arena.
04/21/2012 - CO2 Private Server - 0 Replies
Hi peeps, i was wondering if any one got some of the team arena pk packets, i cant sniff them from trinity yeah, so any help would be good.
Get the Arena Team name you want even if it's taken.
02/23/2008 - WoW Exploits, Hacks, Tools & Macros - 2 Replies
This may or may not still work. I did it before the latest patch and it worked, though I had a friend try and he is saying that it's not working. He may be doing something wrong though. I don't know. If someone would confirm or deny this still works, would be appreciated. Hi, let's say you are starting an arena team and you have your awesome team name already picked out. You go to the Arena Organizer only to find that the perfect name you wanted is taken. Well, there is a way to have...
Arena Team Namen
05/03/2007 - World of Warcraft - 38 Replies
Ja wies Topic sagt ich suche nen guten Arena Team Namen, weil uns absolut keiner einfällt.... für gute Vorschläge gibts +k.



All times are GMT +2. The time now is 22:17.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.