[5017] Item Information Packet - Color Offset

10/03/2013 22:50 abdeen#1
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 [Only registered and activated users can see links. Click Here To Register...]

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

any help with this ??
10/03/2013 22:59 Korvacs#2
There isn't one, its built into the ItemType ID in that version.
10/03/2013 23:04 abdeen#3
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 ?
10/03/2013 23:30 Korvacs#4
Determine the new item id and switch them.
10/03/2013 23:40 abdeen#5
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 !!
10/04/2013 00:29 turk55#6
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.
10/04/2013 00:53 abdeen#7
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 ...
10/04/2013 02:02 Y u k i#8
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.

[Only registered and activated users can see links. Click Here To Register...]
10/04/2013 04:29 abdeen#9
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.

[Only registered and activated users can see links. Click Here To Register...]
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)
                                 }
10/04/2013 04:48 Y u k i#10
ToString() then replace?

or simply increment by 100?
10/04/2013 05:28 abdeen#11
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 ?
10/04/2013 05:56 Y u k i#12
uh should work. Test it?
10/04/2013 06:01 abdeen#13
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 ?
10/04/2013 06:14 Y u k i#14
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..
10/04/2013 18:13 Mr_PoP#15
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;