Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 23:29

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

Advertisement



Capture the flag & Champion arena

Discussion on Capture the flag & Champion arena within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Capture the flag & Champion arena

Does anyone have the packets for either?

I need for CTF the packet that puts the circle on the minimap for flag carriers and the base owned by a guild.
EDIT: What is the map id for the CTF tournament?


For champion I need the dumps for the match packets, I already have the ranking...
-impulse- is offline  
Old 06/03/2013, 10:40   #2
 
LordGragen.'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 606
Received Thanks: 67
2057 is the CTF map
LordGragen. is offline  
Thanks
1 User
Old 07/15/2013, 18:23   #3
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
still no dumps for the match packets?
abdoumatrix is offline  
Old 07/15/2013, 22:15   #4
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
This is the packet used for champion matches.

Code:
 
        public class ChampionKernel : Writer
        {
            public enum KernelType : int
            {
                SignUp = 0,
                DialogCountdown = 1,
                OpponentInfo = 4,
                WinDialog = 6,
                LoseDialog = 7,
                MatchStats = 8
            }
            object[] strs;
            KernelType type;

            public static ChampionKernel SignUp()
            {
                return new ChampionKernel(KernelType.SignUp);
            }
            public static ChampionKernel DialogCountdown()
            {
                return new ChampionKernel(KernelType.DialogCountdown);
            }
            public static ChampionKernel Stats(uint damage1, uint damage2)
            {
                return new ChampionKernel(KernelType.MatchStats, damage1.ToString(), damage2.ToString());
            }
            public static ChampionKernel OpponentInfo(ChampionStatistic stats)
            {
                return new ChampionKernel(KernelType.OpponentInfo,
                    stats.UID, stats.Name, stats.Class, "1", stats.Rank, stats.Level,
                    stats.Class, stats.BattlePower);
            }
            public static ChampionKernel Win(bool forfeit, uint pts, int streak, uint extrapts)
            {
                return new ChampionKernel(KernelType.WinDialog,
                    forfeit ? 1 : 0, pts, streak, extrapts);
            }
            public static ChampionKernel Lose(uint pts)
            {
                return new ChampionKernel(KernelType.LoseDialog, pts);
            }

            public ChampionKernel(KernelType type, params object[] strs)
            {
                this.type = type;
                this.strs = strs;
            }

            public byte[] BuildPacket()
            {
                var array = new string[strs.Length];
                for (int i = 0; i < array.Length; i++)
                    array[i] = strs[i].ToString();

                int len = strs.Length;
                for (int i = 0; i < strs.Length; i++)
                    len += array[i].Length;
                byte[] data = new byte[16 + len];
                WriteUInt16((ushort)(data.Length - 8), 0, data);
                WriteUInt16(2604, 2, data);
                data[4] = (byte)type;
                WriteStringList(array, 5, data);
                return data;
            }
        }
#request close.
-impulse- is offline  
Thanks
2 Users
Old 07/16/2013, 05:41   #5
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by -impulse- View Post
This is the packet used for champion matches.

Code:
 
        public class ChampionKernel : Writer
        {
            public enum KernelType : int
            {
                SignUp = 0,
                DialogCountdown = 1,
                OpponentInfo = 4,
                WinDialog = 6,
                LoseDialog = 7,
                MatchStats = 8
            }
            object[] strs;
            KernelType type;

            public static ChampionKernel SignUp()
            {
                return new ChampionKernel(KernelType.SignUp);
            }
            public static ChampionKernel DialogCountdown()
            {
                return new ChampionKernel(KernelType.DialogCountdown);
            }
            public static ChampionKernel Stats(uint damage1, uint damage2)
            {
                return new ChampionKernel(KernelType.MatchStats, damage1.ToString(), damage2.ToString());
            }
            public static ChampionKernel OpponentInfo(ChampionStatistic stats)
            {
                return new ChampionKernel(KernelType.OpponentInfo,
                    stats.UID, stats.Name, stats.Class, "1", stats.Rank, stats.Level,
                    stats.Class, stats.BattlePower);
            }
            public static ChampionKernel Win(bool forfeit, uint pts, int streak, uint extrapts)
            {
                return new ChampionKernel(KernelType.WinDialog,
                    forfeit ? 1 : 0, pts, streak, extrapts);
            }
            public static ChampionKernel Lose(uint pts)
            {
                return new ChampionKernel(KernelType.LoseDialog, pts);
            }

            public ChampionKernel(KernelType type, params object[] strs)
            {
                this.type = type;
                this.strs = strs;
            }

            public byte[] BuildPacket()
            {
                var array = new string[strs.Length];
                for (int i = 0; i < array.Length; i++)
                    array[i] = strs[i].ToString();

                int len = strs.Length;
                for (int i = 0; i < strs.Length; i++)
                    len += array[i].Length;
                byte[] data = new byte[16 + len];
                WriteUInt16((ushort)(data.Length - 8), 0, data);
                WriteUInt16(2604, 2, data);
                data[4] = (byte)type;
                WriteStringList(array, 5, data);
                return data;
            }
        }
#request close.

I see you're still in your old coding habits.
ImmuneOne is offline  
Old 07/16/2013, 06:23   #6
 
shadowman123's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 1,525
Received Thanks: 230
Whats Wrong with his way of Coding ?
shadowman123 is offline  
Old 07/17/2013, 14:11   #7
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by ImmuneOne View Post
I see you're still in your old coding habits.
Why bother changing something that wouldnt really make a difference? I chose to stick with what I know to type fast enough.
-impulse- is offline  
Old 07/17/2013, 19:15   #8
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by -impulse- View Post
Why bother changing something that wouldnt really make a difference? I chose to stick with what I know to type fast enough.
Some organization and efficiency would do good tbh. Instead of the old messy glued sources that just barely hold together.
ImmuneOne is offline  
Old 07/18/2013, 13:18   #9
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by ImmuneOne View Post
Some organization and efficiency would do good tbh. Instead of the old messy glued sources that just barely hold together.
If only organization would actually matter in programming. Organization brings nothing else than ease to the reader, not efficiency as far as the machine is concerned (if a machine is ever concerned about smth).
Also, it's not necessary the efficiency that make the servers crash (& burn.). It's the programming platform imo.
A C++ server hardly crashes because everything is managed by the programmer, whereas with C# so many things are simply out of your control.
-impulse- is offline  
Old 07/18/2013, 14:31   #10
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Quote:
Originally Posted by -impulse- View Post
If only organization would actually matter in programming. Organization brings nothing else than ease to the reader, not efficiency as far as the machine is concerned (if a machine is ever concerned about smth).
Also, it's not necessary the efficiency that make the servers crash (& burn.). It's the programming platform imo.
A C++ server hardly crashes because everything is managed by the programmer, whereas with C# so many things are simply out of your control.
Actually, for moral value, your code should be easily read by others.

Secondly, when writing code it will take you longer to write it if everything else is simply a mess and you have to think twice about what things do.
_DreadNought_ is offline  
Thanks
2 Users
Old 07/18/2013, 15:06   #11
 
elite*gold: 0
Join Date: Mar 2013
Posts: 118
Received Thanks: 95
Quote:
Originally Posted by -impulse- View Post
If only organization would actually matter in programming. Organization brings nothing else than ease to the reader, not efficiency as far as the machine is concerned (if a machine is ever concerned about smth).
Also, it's not necessary the efficiency that make the servers crash (& burn.). It's the programming platform imo.
A C++ server hardly crashes because everything is managed by the programmer, whereas with C# so many things are simply out of your control.
That's probably some of the dumbest things ever said here on epvp by someone who's not completely retarded
Smaehtin is offline  
Thanks
5 Users
Old 07/18/2013, 15:20   #12
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by Smaehtin View Post
That's probably some of the dumbest things ever said here on epvp by someone who's not completely retarded
Is that so? Since you did not really provide any feedback on a specific point I argued, I'll back both.

So long as the thing you are working is not going to ever be public, then why bother making it look nice? or having some weird names just so others could understand what you actually use a specific class for?

As for the C# and the control you have over the application you create, please show me exactly how you can use the ThreadPool provided by .NET or even abandon the GarbageCollector. Obviously when writing a server the performance counts so, since you say that you can control everything in C# please tell me why do you use the thread pool provided by .NET without even reading any documentation on it? (Probably because you can't avoid it since it's the part of the .NET platform.) You obviously don't know that when the thread pool has some priority items in the queue it will suspend some of threads so the priority item gets done as quickly as possible, and it is recommended not to change the priority of the threads that are used by the thread pool because then you might end up your application crashed.
On the other hand, with C++, your application runs on the threads(or threadpool you chose) and so you don't end up with threads being suspended whenever someone thinks so.

As threading is kinda the most important part of the server, using the ThreadPool provided by .net you don't actually have control over the threads your application uses. (That is if you don't create other threads on your own.)
-impulse- is offline  
Thanks
2 Users
Old 07/18/2013, 15:39   #13
 
elite*gold: 0
Join Date: Mar 2013
Posts: 118
Received Thanks: 95
Quote:
Originally Posted by -impulse- View Post
Is that so? Since you did not really provide any feedback on a specific point I argued, I'll back both.

So long as the thing you are working is not going to ever be public, then why bother making it look nice? or having some weird names just so others could understand what you actually use a specific class for?

As for the C# and the control you have over the application you create, please show me exactly how you can use the ThreadPool provided by .NET or even abandon the GarbageCollector. Obviously when writing a server the performance counts so, since you say that you can control everything in C# please tell me why do you use the thread pool provided by .NET without even reading any documentation on it? (Probably because you can't avoid it since it's the part of the .NET platform.) You obviously don't know that when the thread pool has some priority items in the queue it will suspend some of threads so the priority item gets done as quickly as possible, and it is recommended not to change the priority of the threads that are used by the thread pool because then you might end up your application crashed.
On the other hand, with C++, your application runs on the threads(or threadpool you chose) and so you don't end up with threads being suspended whenever someone thinks so.

As threading is kinda the most important part of the server, using the ThreadPool provided by .net you don't actually have control over the threads your application uses. (That is if you don't create other threads on your own.)
Okay, I take back what I said. You are actually completely retarded.
Smaehtin is offline  
Thanks
2 Users
Old 07/18/2013, 15:42   #14
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by Smaehtin View Post
Okay, I take back what I said. You are actually completely retarded.
Okay. Please enlighten me. Tell me exactly what is wrong about I wrote.

I only write from experience so, if you know differently, please don't just make accusations, back them up as well.
-impulse- is offline  
Thanks
3 Users
Old 07/18/2013, 15:48   #15
 
elite*gold: 0
Join Date: Sep 2012
Posts: 775
Received Thanks: 327
Quote:
Originally Posted by Smaehtin View Post
Okay, I take back what I said. You are actually completely retarded.
seriously since your first post on this forum 80% if not more of what you post are memes and sarcasm which i don't find it funny but that's not relevant, but could you just enlighten us as impulse said and give us more info of to why you call him "******" ?
go for it is offline  
Closed Thread


Similar Threads Similar Threads
capture flag
05/16/2013 - SRO Private Server - 2 Replies
hello At the end of 20 minutes, no irradiation , remain inside
[Request] Capture The Flag and Arena doesn't Work!
11/19/2011 - SRO Private Server - 3 Replies
Anyone can share it ? How can I make it work!? :( http://img707.imageshack.us/img707/304/sook.jpg I don't know why! The option to register doesnt appear!
Capture The Flag
11/06/2011 - CO2 Private Server - 1 Replies
Well i wanted to make CTF Tournament So what i did is when Right time Comes its starts Such that 2 Teams will be Spawned and Then teleported to The Map && i added The Flag Sobs Too successfuly but there r 2 things i wanna add but couldnt do it :- 1st - After 30 sec of Carrying the Flag...the Flagbase become in the place where the The Flag Holder Exist 2nd - for example i have brought the Flag now to my base So what i need to know how to make it like i cant attack my own Flagbase ... ...
Capture the Flag Bug
12/27/2008 - Silkroad Online - 5 Replies
So today I wanted to join at Capture the Flag. When I get started there is a freaking lvl 88 guy in oposite team and I am only lvl 42. He's buffing his team with Swing march 2. Here's Screenshot: http://img508.imageshack.us/img508/930/strangegi8. th.jpg He hit like 44k dmg on me :( Feel free to coment on this!
Capture the Flag ?????
02/29/2008 - Silkroad Online - 7 Replies
Warum kann ich mich net bei event so ok anmelden ??? kann mir jemand helfen auf dem ganzen server alexander hatts gesponnen-.-



All times are GMT +2. The time now is 23:29.


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.