Register for your free account! | Forgot your password?

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

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

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.

Reply
 
Old 07/11/2010, 16:39   #16


 
Korvacs's Avatar
 
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?
Korvacs is offline  
Old 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.
MonstersAbroad is offline  
Old 07/11/2010, 19:36   #18
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by MonstersAbroad View Post
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.
-impulse- is offline  
Old 07/11/2010, 21:06   #19


 
Korvacs's Avatar
 
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.
Korvacs is offline  
Old 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.
Basser is offline  
Old 08/24/2010, 19:31   #21
 
_DreadNought_'s Avatar
 
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 ?
_DreadNought_ is offline  
Old 08/25/2010, 08:15   #22
 
_Emme_'s Avatar
 
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.
_Emme_ is offline  
Old 08/25/2010, 13:39   #23
 
_DreadNought_'s Avatar
 
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
_DreadNought_ is offline  
Old 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.
_tao4229_ is offline  
Old 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.
Basser is offline  
Thanks
1 User
Old 08/29/2010, 10:17   #26
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by Basser View Post
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.
Arcо is offline  
Reply




All times are GMT +1. The time now is 20:52.


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.