|
You last visited: Today at 16:11
Advertisement
The Decimal for these effect's?
Discussion on The Decimal for these effect's? within the CO2 Private Server forum part of the Conquer Online 2 category.
07/11/2010, 16:39
|
#16
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
If all you want to do is to display the effect why arnt you just sending a string packet?
|
|
|
07/11/2010, 17:55
|
#17
|
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
|
I am. Just need the correct value for it.
|
|
|
07/11/2010, 19:36
|
#18
|
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
|
Quote:
Originally Posted by MonstersAbroad
I am. Just need the correct value for it.
|
Then why did you make a thread just for nothing, well, just to waste other's time for sure.
By the way, if you send an effect with the string packet, you gotta relogin if you want to not have it on yourself. If you want to take it off when you want, you should read my posts again, if not, then, I don't know why does people even try to help you.
|
|
|
07/11/2010, 21:06
|
#19
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
If your sending a string packet for an effect you need to send the effect name, not a number.
|
|
|
07/12/2010, 14:07
|
#20
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
|
Whether you use decimals or hex doesn't matter, if you use them correctly, the output will be the same.
0x15 is equal to 21.
0x15 is not equal to 15.
Also, 0xFF would be 255, not FF or something.
|
|
|
08/24/2010, 19:31
|
#21
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
|
I wonna do this now lol, I'm sending a string packet but whats the name for the effect It's not freeze/frost/froststart/frost_cyc ?
|
|
|
08/25/2010, 08:15
|
#22
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
Look at your quote. These people are trying to help you, make you understand hex/deci, binary number system etc etc, tho all you're looking for is the answer. Take your time and look through the answers once, or twice again, they maybe you'll understand and from there you can work.
|
|
|
08/25/2010, 13:39
|
#23
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
|
I don't need the decimal/hex just the effect name ^ X
|
|
|
08/25/2010, 23:12
|
#24
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
Bit flags have to be a power of 2.
|
|
|
08/26/2010, 09:48
|
#25
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
|
A bit flag example:
Flag name -> Attributes
^ -> To the power of.
0001 Cool -> 2 ^ 0 = 1 -> 0x01
0010 Nice -> 2 ^ 1 = 2 -> 0x02
0100 Funny -> 2 ^ 2 = 4 -> 0x04
1000 Handsome -> 2 ^ 3 = 8 -> 0x08
now assume you are funny, so those are set to true, the others to false, that would make your attributes value 0110
assume you are all of these, your value would be 1111
You could think of it as a list made up out of boolean digits.
This is why you have to get the correct decimal values.
For a number like 525 (binary: 1000001101), you need to set more than 1 value in your list, which means it won't work correctly, think about it.
Understand flags, don't just ask for values, without even knowing what binary is, bit flags are, and how hexadecimals work.
Hopefully, this helps some of you.
|
|
|
08/29/2010, 10:17
|
#26
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by Basser
A bit flag example:
Flag name -> Attributes
^ -> To the power of.
0001 Cool -> 2 ^ 0 = 1 -> 0x01
0010 Nice -> 2 ^ 1 = 2 -> 0x02
0100 Funny -> 2 ^ 2 = 4 -> 0x04
1000 Handsome -> 2 ^ 3 = 8 -> 0x08
now assume you are funny, so those are set to true, the others to false, that would make your attributes value 0110
assume you are all of these, your value would be 1111
You could think of it as a list made up out of boolean digits.
This is why you have to get the correct decimal values.
For a number like 525 (binary: 1000001101), you need to set more than 1 value in your list, which means it won't work correctly, think about it.
Understand flags, don't just ask for values, without even knowing what binary is, bit flags are, and how hexadecimals work.
Hopefully, this helps some of you.
|
Great explanation basser, well said.
|
|
|
All times are GMT +1. The time now is 16:11.
|
|