Register for your free account! | Forgot your password?

You last visited: Today at 21:10

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

Advertisement



[Release]ClassPKTourny

Discussion on [Release]ClassPKTourny within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 03/01/2010, 02:59   #16
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
Hmm sorry if i will double pot, but i forgot to ask how to start it?
salem rey is offline  
Old 03/01/2010, 03:01   #17
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
EX:
if (Cmd[0] == "/starttourny")
{
if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
{
NewestCOServer.Features.PKTournament.BeginNinja();
Console.WriteLine("PK Tournament started!");
}
else
{
Console.WriteLine("PK Tournament is already in progress!");
}
}
Arcо is offline  
Thanks
1 User
Old 03/01/2010, 03:04   #18
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
Quote:
Originally Posted by .Arco View Post
EX:
if (Cmd[0] == "/starttourny")
{
if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
{
NewestCOServer.Features.PKTournament.BeginNinja();
Console.WriteLine("PK Tournament started!");
}
else
{
Console.WriteLine("PK Tournament is already in progress!");
}
}
so i need to make all class like this one?

if (Cmd[0] == "/starttourny")
{
if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
{
NewestCOServer.Features.PKTournament.BeginTrojan();
Console.WriteLine("PK Tournament started!");
}
else
{
Console.WriteLine("PK Tournament is already in progress!");
}
}

if (Cmd[0] == "/starttourny")
{
if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
{
NewestCOServer.Features.PKTournament.BeginWater();
Console.WriteLine("PK Tournament started!");
}
else
{
Console.WriteLine("PK Tournament is already in progress!");
}
}
salem rey is offline  
Old 03/01/2010, 03:05   #19
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
There you go!
That's it!
Just change the name of the command.
Like
/starttournytrojan
etc.
Arcо is offline  
Thanks
1 User
Old 03/01/2010, 03:07   #20
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
yah already do that, where will put the command in the program.cs? or chat.cs?

i try to put in chat cs. then i try the pk tournament and it works fine but when i try to command the start pk tournament for trojan nothing happend. the npc still say theres no happend pk tour todat, and npc link darn.
salem rey is offline  
Old 03/01/2010, 03:11   #21
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
Code:
                    if (Cmd[0] == "/swt")
                    {
                        if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                        {
                            NewestCOServer.Features.PKTournament.StartTournament();
                            Console.WriteLine("PK Tournament started!");
                        }
                        else
                        {
                            Console.WriteLine("PK Tournament is already in progress!");
                        }
                    }
                    if (Cmd[0] == "/spktnin")
                    {
                        if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                        {
                            NewestCOServer.Features.PKTournament.BeginNinja();
                            Console.WriteLine("PK Tournament started!");
                        }
                        else
                        {
                            Console.WriteLine("PK Tournament is already in progress!");
                        }
                    }
                    if (Cmd[0] == "/spkttro")
                    {
                        if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                        {
                            NewestCOServer.Features.PKTournament.BeginTrojan();
                            Console.WriteLine("PK Tournament started!");
                        }
                        else
                        {
                            Console.WriteLine("PK Tournament is already in progress!");
                        }
                    }
                    if (Cmd[0] == "/spktwar")
                    {
                        if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                        {
                            NewestCOServer.Features.PKTournament.BeginWarrior();
                            Console.WriteLine("PK Tournament started!");
                        }
                        else
                        {
                            Console.WriteLine("PK Tournament is already in progress!");
                        }
                    }
                    if (Cmd[0] == "/spktarch")
                    {
                        if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                        {
                            NewestCOServer.Features.PKTournament.BeginArcher();
                            Console.WriteLine("PK Tournament started!");
                        }
                        else
                        {
                            Console.WriteLine("PK Tournament is already in progress!");
                        }
                    }
                    if (Cmd[0] == "/spktfire")
                    {
                        if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                        {
                            NewestCOServer.Features.PKTournament.BeginFire();
                            Console.WriteLine("PK Tournament started!");
                        }
                        else
                        {
                            Console.WriteLine("PK Tournament is already in progress!");
                        }
                    }
                    if (Cmd[0] == "/spktwat")
                    {
                        if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                        {
                            NewestCOServer.Features.PKTournament.BeginWater();
                            Console.WriteLine("PK Tournament started!");
                        }
                        else
                        {
                            Console.WriteLine("PK Tournament is already in progress!");
                        }
                    }
thats what i do. i put it in my chat.cs idk if i do something wrong just tell me and about the npc nothing say.
salem rey is offline  
Old 03/01/2010, 03:22   #22
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Code:
                    if (Cmd[0] == "/swt")
                    {
                        if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                        {
                            NewestCOServer.Features.PKTournament.StartTournament();
                            Console.WriteLine("PK Tournament started!");
                        }
                        else
                        {
                            Console.WriteLine("PK Tournament is already in progress!");
                        }
                    }
Should be
Code:
                    if (Cmd[0] == "/swt")
                    {
                        if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                        {
                            NewestCOServer.Features.PKTournament.BeginTournament();
                            Console.WriteLine("PK Tournament started!");
                        }
                        else
                        {
                            Console.WriteLine("PK Tournament is already in progress!");
                        }
                    }
I'm pretty sure.
Arcо is offline  
Thanks
1 User
Old 03/01/2010, 03:44   #23
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
That should be start the prof tournament?
salem rey is offline  
Old 03/01/2010, 03:51   #24
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Yup.
Arcо is offline  
Old 03/01/2010, 04:01   #25
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
about the npc still saying no tournament start today. whats wrong?

and hmmm i just edited my post can you fix this?

i got error when i start pk tournament for trojan.

salem rey is offline  
Old 03/02/2010, 04:17   #26
 
xSynthesis's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 80
Received Thanks: 29
PHP Code:
                        if (Cmd[0] == "/classpktourny")
                        {
                            if (
Cmd[1] == "ninja")
                            {
                                if (
NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                                {
                                    
NewestCOServer.Features.PKTournament.BeginNinja();
                                    
Console.WriteLine("PK Tournament started!");
                                }
                                else
                                {
                                    
Console.WriteLine("PK Tournament is already in progress!");
                                }
                            }
                            if (
Cmd[1] == "warrior")
                            {
                                if (
NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                                {
                                    
NewestCOServer.Features.PKTournament.BeginWarrior();
                                    
Console.WriteLine("PK Tournament started!");
                                }
                                else
                                {
                                    
Console.WriteLine("PK Tournament is already in progress!");
                                }
                            }
                            if (
Cmd[1] == "trojan")
                            {
                                if (
NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                                {
                                    
NewestCOServer.Features.PKTournament.BeginTrojan();
                                    
Console.WriteLine("PK Tournament started!");
                                }
                                else
                                {
                                    
Console.WriteLine("PK Tournament is already in progress!");
                                }
                            }
                            if (
Cmd[1] == "archer")
                            {
                                if (
NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                                {
                                    
NewestCOServer.Features.PKTournament.BeginArcher();
                                    
Console.WriteLine("PK Tournament started!");
                                }
                                else
                                {
                                    
Console.WriteLine("PK Tournament is already in progress!");
                                }
                            }
                            if (
Cmd[1] == "fire")
                            {
                                if (
NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                                {
                                    
NewestCOServer.Features.PKTournament.BeginFire();
                                    
Console.WriteLine("PK Tournament started!");
                                }
                                else
                                {
                                    
Console.WriteLine("PK Tournament is already in progress!");
                                }
                            }
                            if (
Cmd[1] == "water")
                            {
                                if (
NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
                                {
                                    
NewestCOServer.Features.PKTournament.BeginWater();
                                    
Console.WriteLine("PK Tournament started!");
                                }
                                else
                                {
                                    
Console.WriteLine("PK Tournament is already in progress!");
                                }
                            }
                        } 

Better Commands..
xSynthesis is offline  
Old 03/02/2010, 04:32   #27
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
I will try this one hope this works
salem rey is offline  
Old 03/30/2010, 14:10   #28
 
elite*gold: 0
Join Date: Jan 2009
Posts: 84
Received Thanks: 9
am i meant to be in the tournament and then type command? or is it meant to auto invite like when i type /pkt ? lol
lukejonesy is offline  
Old 03/30/2010, 15:52   #29
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
Well as soon as I have finished downloading Direct X again I will try and post the code so like you signup at an npc and then when it starts everybody who signed up will be auto teleported to the PK event then I think I am going to code "Last man Standing event" and then a VERY QUICK and simple "First Blood Event"
Paralyzer[GM] is offline  
Old 03/30/2010, 21:19   #30
 
elite*gold: 0
Join Date: Sep 2008
Posts: 26
Received Thanks: 2
i need npc for ninja
memo1340 is offline  
Reply




All times are GMT +1. The time now is 21:12.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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