Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions
You last visited: Today at 20:40

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


[5165] What Does This Actually mean

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
[5165] What Does This Actually mean




Hello Everybody! I'm Having trouble understanding those *****// So I want Some Help from you
NOT THE ENUM , But The Things in it
Code:
public enum StatusEffectEn : ulong
{
        Normal = 0x0,
        BlueName = 0x1,
        Poisoned = 0x2,
        Gone = 0x4,
        XPStart = 0x10,
        TeamLeader = 0x40,
        Accuracy = 0x80,
        Shield = 0x100,
        Stigma = 0x200,
        Dead = 0x420,
        Invisible = 0x400000,
        RedName = 0x4000,
        BlackName = 0x8000,
        SuperMan = 0x40000,
        Cyclone = 0x800000,
        Fly = 0x8000000,
        Pray = 0x40000000,
        Blessing = 8589934592,
        TopGuildLeader = 17179869184,
        TopDeputyLeader = 34359738368,
        MonthlyPKChampion = 68719476736,
        WeeklyPKChampion = 137438953472,
        TopWarrior = 274877906944,
        TopTrojan = 549755813888,
        TopArcher = 1099511627776,
        TopWaterTaoist = 2199023255552,
        TopFireTaoist = 4398046511104,
        TopNinja = 8796093022208,
        ShurikenVortex = 70368744177664,
        FatalStrike = 140737488355328,
        Flashy = 281474976710656,
        Ride = 1125899906842624
}





†he Knight is offline  
Old 12/17/2010, 18:14   #2
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,200
Received Thanks: 851
They are in hex and sent to the client and the client knows what it means if that hex is received in that packet. ex: sent 0x123 in string packet. Client receives string packet->gets the value 0x123 and does the action.


_DreadNought_ is offline  
Thanks
1 User
Old 12/17/2010, 18:41   #3
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
I see , Thats All I Guess//
#request close
†he Knight is offline  
Old 12/17/2010, 21:38   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Remember 0x123 is not equal to 123!


Basser is offline  
Old 12/18/2010, 03:44   #5
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,877
I'll cover a lesson on bitflags in my tutorial soon I guess; doesn't seem like many people understand how to use them.
InfamousNoone is offline  
Thanks
1 User
Old 12/18/2010, 06:00   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,311
you're probably best to wait for hybrid but the way that they work is that you essentially add them together... as such they must double each time in order to hold the possible combinations of values.


IE: bluename = 1 and poison = 2.... that means if you are bluenamed AND poisoned you have a status value of 3... changing it back to 2 removes bluename etc...

as such values for status effects use a ulong and can be quite large. When creating new status effects make sure it's using one of the unocupied doubling values (you can't do lets say a status effect using value 513.... that's cause 513 = whatever effect is assigned to 512... plus bluename.


hope that helps some
pro4never is offline  
Thanks
1 User
Old 12/18/2010, 09:25   #7
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
Yeah Guyz , Everyone of you helped alot//


†he Knight is offline  
Closed Thread



« Can conquer run on linux? | The return of KylinCO. [1.0 server] »

Similar Threads
Hi I need 5165 source act like Real Co 5165
09/15/2010 - CO2 PServer - Discussions / Questions - 4 Replies
I need a A source 5165 that all skills is available specially rb char like nin-nin-nin counterKill and nin-war-nin reflect and more, and also the attack rates should be fair not like +8 set can 1 hit +12 set, and also maybe the client, I need to study to make it in 5200+ source. I love to trade it with my cofarmer account VIP i have use it for 5 days only. PM or contact me in skype :marlyandedsel
[help]5165
08/12/2010 - CO2 PServer - Discussions / Questions - 1 Replies
Can someone give me a command / info (name of player) so that we can see the info of players cps / money / level / account / password .... also in the arena when someone dies item drops, so I want to know how the item does not fall into the arena and Thx
A little help need 5165
06/10/2010 - CO2 PServer - Discussions / Questions - 1 Replies
Hi this is all new to me just wanted to know how cant i add a effect, say to a garment. I have search but what i did find was removed or links not work not asking for ppl to do it just tell me what files i need to look at and play around with ...
I need Help i cant Fix FB and SS. 5165 sv! PLEASE!
04/09/2010 - CO2 PServer - Discussions / Questions - 0 Replies
Hello guys ! I have problem with fb and ss... Fixed source with npc/ninja/horse... Allthing work ... Only Problem with Fast Blade and Scent Sword. PLEASE HELP ME HOW TO FIX THAT ! :S Ty anyway..
need help 5165
03/07/2010 - CO2 PServer - Discussions / Questions - 3 Replies
i need code alex 2 rb full plz for 5165:)



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


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.