Register for your free account! | Forgot your password?

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

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

Advertisement



Spawning Character Items 5361

Discussion on Spawning Character Items 5361 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2011
Posts: 50
Received Thanks: 6
Spawning Character Items 5361

Problem solved, Thank you everybody
#request close
§hift is offline  
Old 02/09/2011, 15:05   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
We've mentioned this a bunch of times. You have to send a new show gear packet which includes the uid for the item in each equipped slot. That controls what is displayed on the character.

Hint, it's a 1009.
pro4never is offline  
Thanks
1 User
Old 02/09/2011, 17:19   #3
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
I gave you hints for the packet a week ago...
why aren't you using them?

Edit: Yikes... that's NewestCoServer. ><
That gave me the chills.
Spirited42 is offline  
Thanks
1 User
Old 02/09/2011, 19:45   #4
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
Quote:
Originally Posted by Spirited View Post
I gave you hints for the packet a week ago...
why aren't you using them?

Edit: Yikes... that's NewestCoServer. ><
That gave me the chills.

You can't be 100% sure of that just from the screen shot and code snippet. Ever wonder maybe he just likes the packet builder? So maybe that's just something he took out of ncs.
QuickCo is offline  
Thanks
1 User
Old 02/09/2011, 19:57   #5
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by Yo J-Dread, Its Arco! View Post
You can't be 100% sure of that just from the screen shot and code snippet. Ever wonder maybe he just likes the packet builder? So maybe that's just something he took out of ncs.
I'm 100% sure because I saw him working on it and it gave me the chills.
Spirited42 is offline  
Thanks
1 User
Old 02/09/2011, 20:19   #6
 
elite*gold: 0
Join Date: Jan 2011
Posts: 50
Received Thanks: 6
Quote:
Originally Posted by Spirited View Post
I gave you hints for the packet a week ago...
why aren't you using them?

Edit: Yikes... that's NewestCoServer. ><
That gave me the chills.
I deleted it by mistake :/
§hift is offline  
Old 02/09/2011, 20:31   #7
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
Quote:
Originally Posted by Spirited View Post
I'm 100% sure because I saw him working on it and it gave me the chills.
As far as I've seen the socket system is the only **** part of it, and really, I switched it out with an entirely different socket system for a friend, and the server runs like a charm.
QuickCo is offline  
Old 02/09/2011, 20:39   #8
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Socket System is not the biggest problem.

Character.cs, Threading, 1million tries/catches.

That's the problem.
Syst3m_W1z4rd is offline  
Old 02/09/2011, 20:44   #9
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
Quote:
Originally Posted by Syst3m_W1z4rd View Post
Socket System is not the biggest problem.

Character.cs, Threading, 1million tries/catches.

That's the problem.
You must be an idiot. Take out the threading, replace it with your own, and your good to go. And yes the socket system is the biggest problem cause it can't take many connections for 6+ hours or else, laaag. Character.cs, tell me whats wrong with that hmm? And Try/Catches, take them out and you're good to go. But knowing you, you'd take them out of the most important places they're needed.
QuickCo is offline  
Old 02/09/2011, 20:49   #10
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
If threading wasn't a problem, why replace it? o.o

For character.cs find Step().
Syst3m_W1z4rd is offline  
Old 02/09/2011, 20:53   #11
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
Quote:
Originally Posted by Syst3m_W1z4rd View Post
If threading wasn't a problem, why replace it? o.o

For character.cs find Step().
Lol you know what, I want you to actually TELL me, whats wrong with threading. Cause I'm pretty sure you're goiing by on what you've been just told, not with any valid proof.
QuickCo is offline  
Old 02/09/2011, 20:56   #12
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Not the actual threading, but the things threading.
But the main part of the bad things in it. is the tries and catches.

Example:
Code:
            try
            {
                foreach (Hashtable H in Kernel.Items.Values)
                {
                    ArrayList Deleted = new ArrayList();
                    try
                    {
                        foreach (DroppedItem I in H.Values)
                            if (DateTime.Now > I.DropTime.AddSeconds(60))
                                Deleted.Add(I);
                        foreach (DroppedItem I in Deleted)
                            I.Dissappear();
                    }
                    catch { }
                }
            }
            catch { }
Could just been used one catch, since no exception are caughed.
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 02/09/2011, 20:57   #13
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
Quote:
Originally Posted by Syst3m_W1z4rd View Post
Not the actual threading, but the things threading.
Alright, tell me, exactly what sthe problem then?
QuickCo is offline  
Old 02/09/2011, 20:58   #14
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
I edited my post
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 02/09/2011, 21:02   #15
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
Quote:
Originally Posted by Syst3m_W1z4rd View Post
I edited my post
You are retarded. Learn to code. Try/Catches catch exceptions no matter what. It just doesn't write them to the console when there's nothing in the catch. Look at it this way, if those try catches weren't there, and something went wrong with that void, server crashes, but since the server catches, then then nothing happens. Nothing happening is better than a server crashing.

Code:
try
            {
                foreach (Hashtable H in Kernel.Items.Values)
                {
                    ArrayList Deleted = new ArrayList();
                    try
                    {
                        foreach (DroppedItem I in H.Values)
                            if (DateTime.Now > I.DropTime.AddSeconds(60))
                                Deleted.Add(I);
                        foreach (DroppedItem I in Deleted)
                            I.Dissappear();
                    }
                    catch { }
                }
Telling the server to do a foreach, if it can't do it, then catch the error so the server won't crash.

Code:
try
                    {
                        foreach (DroppedItem I in H.Values)
                            if (DateTime.Now > I.DropTime.AddSeconds(60))
                                Deleted.Add(I);
                        foreach (DroppedItem I in Deleted)
                            I.Dissappear();
                    }
                    catch { }
Telling the server to try doing the actions listed, if it can't then it catches the error, instead of the server crashing.
QuickCo is offline  
Reply


Similar Threads Similar Threads
WTB : Titan Character(s) and Items.
06/17/2010 - Silkroad Online Trading - 6 Replies
Hello, I am looking for something like a Glaive FF 85+ | wizz/cleric FF 85+. But if you have any other character on Titan you are selling you can still post it also. Thanks. I would also like to buy a Sword and Shield(or a Spear) SUN 10D and also a Bow SUN 10D. Thanks. MSN: [email protected] Add me.
spawning items at any npc
03/03/2009 - RF Online - 2 Replies
just a question... would it be possible to spawn an item on an npc? let say intense dark items both weapons and armors... just wondering... would it be possible?... tnx... ^_^



All times are GMT +1. The time now is 04:17.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.