Register for your free account! | Forgot your password?

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

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

Advertisement



[Request] SnowBanshe spell's id !

Discussion on [Request] SnowBanshe spell's id ! within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
[Request] SnowBanshe spell's id !

Hi, can I ask for a list with all SnowBanshe spells? If anyone can share with me will thank him so much for help..


Second Problem :

Code:
  case _String.WhisperDetails:
                                {
                                    if (stringpacket.Texts.Count > 0)
                                    {
                                        foreach (var pClient in ServerBase.Kernel.GamePool.Values)
                                        {
                                            if (pClient.Entity.Name == stringpacket.Texts[0])
                                            {
                                                string otherstring = "";
                                                otherstring += pClient.Entity.UID + " ";
                                                otherstring += pClient.Entity.Level + " ";
                                                otherstring += pClient.Entity.BattlePower + " #";
                                                if (pClient.Entity.GuildID != 0)
                                                    otherstring += pClient.Guild.Name + " fNone# ";
                                                else
                                                    otherstring += "None fNone# ";
                                                otherstring += pClient.Entity.Spouse + " ";
                                                otherstring += (byte)(pClient.Entity.NobilityRank) + " ";
                                                if (pClient.Entity.Body % 10 < 3)
                                                    otherstring += "1";
                                                else
                                                    otherstring += "0";
                                                stringpacket.Texts.Add(otherstring);
                                                client.Send(stringpacket);
                                            }

                                        }
                                  break;
                                }
                         }

that my string packet for whisper details , but I got a problem with him , if player isn't in the same map with you can't see him gear....
Sp!!ke is offline  
Old 11/16/2011, 17:50   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 228
Received Thanks: 47
tha'ts skills

30013
30012
30011
30010
30014
10372
10373
dego4ever is offline  
Thanks
1 User
Old 11/16/2011, 21:20   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 75
Received Thanks: 7
Quote:
Originally Posted by dego4ever View Post
tha'ts skills

30013
30012
30011
30010
30014
10372
10373
How did you knew them, cuz I need the LavaBeast spells.
-GeniuS- is offline  
Old 11/16/2011, 21:40   #4
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
thanks dego, now If anyone can help me with that string packet...
Sp!!ke is offline  
Old 11/17/2011, 00:13   #5
 
elite*gold: 0
Join Date: Mar 2009
Posts: 228
Received Thanks: 47
Wink

Quote:
Originally Posted by -GeniuS- View Post
How did you knew them, cuz I need the LavaBeast spells.
i got skills name from co online website & i got id for each skill from magictype.dat by skill name.
dego4ever is offline  
Old 11/18/2011, 07:39   #6
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Don't use:
string += string

Use a StringBuilder.
BaussHacker is offline  
Thanks
1 User
Old 11/18/2011, 18:43   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by BaussHacker View Post
Don't use:
string += string

Use a StringBuilder.
Or better yet...

write a tostring overload for your client class which will build the string information for you so you can just do clientObject.ToString() in your packet.

You can do a similar thing with other types of classes that when sent in packets use portions of strings. Same with classes that have their data used in packets such as the nobilityranking, arenastats, etc. You can just return the structure as a byte array (implicitoperator to convert it to a byte[] or you could be all fancy and uses memory marshaling but that's a bit more advanced)
pro4never is offline  
Thanks
1 User
Old 11/18/2011, 22:37   #8
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by pro4never View Post
Or better yet...

write a tostring overload for your client class which will build the string information for you so you can just do clientObject.ToString() in your packet.

You can do a similar thing with other types of classes that when sent in packets use portions of strings. Same with classes that have their data used in packets such as the nobilityranking, arenastats, etc. You can just return the structure as a byte array (implicitoperator to convert it to a byte[] or you could be all fancy and uses memory marshaling but that's a bit more advanced)
Even if u do it with implicit operators and w/e other things, you will still need to concatenate some strings and doing string1 += string2; it's not as good as using a StringBuilder(as long as you don't do more concatenations than 1 it's fine...but otherwise StringBuilder is what I recommend)
-impulse- is offline  
Old 11/19/2011, 02:41   #9
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
You're right. I was more thinking simplistic ways of getting the final string but I suppose the two could be combined easily enough.

I just kinda dislike having to always figure out "ok.. how is this packet/string combined?". I like to have it all done in one place and called simply from all over the source.
pro4never is offline  
Reply


Similar Threads Similar Threads
[request to NAGCusers]May I request for the file needed in order to use marie earlier
09/26/2010 - Grand Chase Philippines - 7 Replies
:handsdown:May someone pls. give me the file needed to use marie earlier in GCPH?:handsdown: PLSSSSSSSSSSSS..............
[REQUEST] speak freakin english -_- florensi hack [REQUEST]
01/22/2010 - Florensia - 1 Replies
any florensia hacks?



All times are GMT +1. The time now is 00:34.


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.