Register for your free account! | Forgot your password?

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

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

Advertisement



[5017] Item Information Packet - Color Offset

Discussion on [5017] Item Information Packet - Color Offset within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
[5017] Item Information Packet - Color Offset

hey all i am looking for whats Title says : [5017] Item Information Packet - Color Offset..

i can`t find it anywhere i tried lots and lots but none acceptable , also i went

but i found it was not listed to ver 5017 !!

any help with this ??
abdeen is offline  
Old 10/03/2013, 22:59   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
There isn't one, its built into the ItemType ID in that version.
Korvacs is offline  
Thanks
1 User
Old 10/03/2013, 23:04   #3
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by Korvacs View Post
There isn't one, its built into the ItemType ID in that version.
thanks for reply for how could i change item color then ?
abdeen is offline  
Old 10/03/2013, 23:30   #4


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Determine the new item id and switch them.
Korvacs is offline  
Old 10/03/2013, 23:40   #5
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by Korvacs View Post
Determine the new item id and switch them.
thanks bro , but can you please show me an example to make sure i got it right !!
abdeen is offline  
Old 10/04/2013, 00:29   #6
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 705
Quote:
Originally Posted by abdeen View Post
thanks bro , but can you please show me an example to make sure i got it right !!
You basically create a new item and replace it.
turk55 is offline  
Thanks
1 User
Old 10/04/2013, 00:53   #7
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by turk55 View Post
You basically create a new item and replace it.
i think that's will be random colors then ... correct me if am wrong ...
abdeen is offline  
Old 10/04/2013, 02:02   #8
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Okay.

lets take the PineRobe as example: ID )
139399 wich is BLACK
139499 is Orange and so on. The 3rd digit from the right is the color.

Y u k i is offline  
Thanks
1 User
Old 10/04/2013, 04:29   #9
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by Y u k i View Post
Okay.

lets take the PineRobe as example: ID )
139399 wich is BLACK
139499 is Orange and so on. The 3rd digit from the right is the color.

all i know about replace is reghex as i know , but i am not sure if its will work for int digits or nope !!

any way for doing this like
Code:
                                 if (SelectedColor == Red )
                                 {
                                   int newid = item.id.replacethrddigitwith(intnewdigit)
                                 }
abdeen is offline  
Old 10/04/2013, 04:48   #10
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
ToString() then replace?

or simply increment by 100?
Y u k i is offline  
Thanks
1 User
Old 10/04/2013, 05:28   #11
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by Y u k i View Post
ToString() then replace?

or simply increment by 100?
i made something like this ... :

Code:
string itemhashid = item.ID.ToString();
                                    char last = itemhashid[itemhashid.Length - 3];
                                    string newhash = itemhashid.Replace(last, '4');
                                    item.ID = uint.Parse(newhash);
isn`t right ?

but there is something error ,,

Code:
string newhash = itemhashid.Replace(last, '4');
if id is something like : 130305 , it will convert it to 140405 .. any suggestion to change on third digit from right ?
abdeen is offline  
Old 10/04/2013, 05:56   #12
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
uh should work. Test it?
Y u k i is offline  
Thanks
1 User
Old 10/04/2013, 06:01   #13
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by Y u k i View Post
uh should work. Test it?
there is something error ,,

Code:
string newhash = itemhashid.Replace(last, '4');
if id is something like : 130305 , it will convert it to 140405 .. any suggestion to change on third digit from right ?
abdeen is offline  
Old 10/04/2013, 06:14   #14
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
PHP Code:
string str "139299";
StringBuilder strB = new StringBuilder(str);
strB[3] = 'X'
strB[3] would be the 2 in the above scenario

if you really want to use strings..
Y u k i is offline  
Thanks
1 User
Old 10/04/2013, 18:13   #15
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
I don't know why you guys using strings with numbers(integers) , if it's int there is no need to convert it to string then select what you want , basically if it's an int you have to do Math(calculation)....

here how to change the color :-

Code:
uint newItemColor = TypeId-((TypeId/100)%10)*100+newColor*100;
Mr_PoP is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Warehouse Packet, Offset 9
11/19/2011 - CO2 Programming - 5 Replies
Within packets related to warehouse activities sent from both the server and client there is this seemingly constant value of 10 at offset 9. What does it represent? I'm particularly curious because while testing I was actually botjailed for putting a value other than 10. Also, in the "open warehouse packet", which is sent by the client the first time you try to open a warehouse, offset 10 has a value of 1. Subsequent packets of this packet are sent with a value of 0 at offset 10 (whenever...
[5017] Looking for packet enums...
11/03/2011 - CO2 Private Server - 13 Replies
Hello all, I want to know how to get enums, and I`d like to know if someone knows it, whats the status enum for disguise/transformations? EDIT: Yes I already checked the wiki... Thanks in advanced, Jobdvh!
[5017] Item Packet Subtype for Special Effects
05/09/2011 - CO2 Private Server - 10 Replies
Heya, I would need both Enum and Packet for Reborn Effects like: Shield AddHP ... Thanks for reading
Get DC'd by packet offset.
10/05/2010 - CO2 Private Server - 1 Replies
So, (Impulses source) I am trying to workout an offset. For guild info but the offset is clearly over 50 but if I do 50+ for the offset I get dc'd with no error? the packet is public static byte GuildInfo(Client.GameState client) { byte LeaLen = (byte)(client.Entity.MyGuild.GLeader.Length + 21); PacketBuilder Packet = new PacketBuilder(1106, 40); Packet.Long(client.Entity.GuildId);
[Release]Twelve Sky AutoPot/Offset Information
01/03/2010 - General Gaming Discussion - 10 Replies
UPDATED. This is for Client 1.10 and works as of July 25, 2008. Here is an Auto HP/MP Pill or Meditation program I've been working on. Place HP Pills in the 1st or 2nd Pill slots and MP Pills in the 3rd and 4th Pill slots. You can also choose to enable auto meditation instead to restore your MP. You will need to set the Key to your meditation key(F1-F8). The default setting is F5 for the MedKey and Meditation is on by default. You can also set the HP/MP percent, the percent of...



All times are GMT +1. The time now is 19:31.


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.