Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP] StattusEffectEn (statuseffect ini)

Discussion on [HELP] StattusEffectEn (statuseffect ini) within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
[HELP] StattusEffectEn (statuseffect ini)

Hello mates, maybe it sound's bad to request for the explanation about the statuseffect flags ID ulong

This the source part regarding on the StatusEffect.ini

Code:
public enum StatusEffectEn : ulong
    {
        Normal = 0x0,
        BlueName = 0x1,
        Poisoned = 0x2,
        Gone = 0x4,//invisible
        XPStart = 0x10,
        TeamLeader = 0x40,
        Accuracy = 0x80,
        Shield = 0x100,
        Stigma = 0x200,
        Dead = 0x420,//0x420  sau 400
        FadeAway = 0x800,
        Invisible = 0x400000,
        RedName = 0x4000,
        BlackName = 0x8000,
        SuperMan = 0x40000,
        Cyclone = 0x800000,
        Dodge = 0x4000000,
        Fly = 0x8000000,
        Pray = 0x40000000,
        Blessing = 8589934592,
        TopGuildLeader = 17179869184,
        TopDeputyLeader = 34359738368,
        MonthlyPKChampion = 68719476736,
        Freeze = 1UL << 54,
        WeeklyPKChampion = 137438953472,
        TopWarrior = 274877906944,
        TopTrojan = 549755813888,
        TopArcher = 1099511627776,
        TopWaterTaoist = 2199023255552,
        TopFireTaoist = 4398046511104,
        TopNinja = 8796093022208,
        ShurikenVortex = 70368744177664,
        FatalStrike = 140737488355328,
        Flashy = 281474976710656,
        Ride = 1125899906842624
    }

and here is the client side:
HTML Code:
0000000000000000 NULL NULL
0000000000000001 NULL NULL
0000000000000002 poisonstate NULL
0000000000000004 NULL NULL
0000000000000008 NULL NULL
0000000000000010 NULL NULL
0000000000000020 NULL NULL
0000000000000040 NULL TeamLeader
0000000000000080 attackfast40 NULL
0000000000000100 zf2-e307 NULL
0000000000000200 attackup40 NULL
0000000000000400 NULL NULL
0000000000000800 NULL NULL
0000000000004000 NULL NULL
0000000000008000 NULL NULL
0000000000010000 NULL NULL
0000000000020000 Reflect NULL
0000000000040000 SuperSoldier NULL
0000000000080000 BodyShield NULL
0000000000100000 GodBelieve NULL
0000000000200000 NULL NULL
0000000000400000 NULL NULL
0000000000800000 Tornado NULL
0000000001000000 NULL NULL
0000000002000000 ReflectMagic NULL
0000000004000000 Dodge NULL
0000000008000000 NULL NULL
0000000010000000 NULL NULL
0000000040000000 LuckDiffuse NULL
0000000080000000 LuckAbsorb NULL
0000000100000000 curse NULL
0000000200000000 bless NULL
0000000400000000 gamemain NULL
0000000800000000 gameassistant NULL
0000001000000000 gamemonth NULL
0000002000000000 gameweek NULL
0000004000000000 gamefighter NULL
0000008000000000 gamewarrior NULL
0000010000000000 gamebow NULL
0000020000000000 gamewater NULL
0000040000000000 gamefire NULL
0000080000000000 gamegulp NULL
800000000000 endureXPstate NULL
400000000000 cyclonehandcycle NULL
1000000000000 PKchampion NULL
All I want to know is how did they compare (compute) the ids of the statuseffecten: from the source >then to< client (statuseffect.ini) to make it the same id's?. so that the new effect that I added would be working whenever I call it. I tried to analyze this but I got no idea.

Hope someone can help me.

Thank you..
Soulfly25 is offline  
Old 01/07/2018, 19:50   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
They're called bitflags. Each number or ID that you see above was generated using a bitwise shift. When you bitwise-add a few of them together, you start creating a bit map of zeroes (the effect isn't applied) and ones (the effect is applied). You'll notice that when you start looking into this, the source you're using does this way ugly and wrong.

Spirited is offline  
Old 01/08/2018, 00:47   #3
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
Thank you very much sir, for the guide you give me it help's me alot.
Soulfly25 is offline  
Old 01/14/2018, 18:52   #4
 
Ultimation's Avatar
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,425
Received Thanks: 1,565
Quote:
Originally Posted by Soulfly25 View Post
Hello mates, maybe it sound's bad to request for the explanation about the statuseffect flags ID ulong

This the source part regarding on the StatusEffect.ini

Code:
public enum StatusEffectEn : ulong
    {
        Normal = 0x0,
        BlueName = 0x1,
        Poisoned = 0x2,
        Gone = 0x4,//invisible
        XPStart = 0x10,
        TeamLeader = 0x40,
        Accuracy = 0x80,
        Shield = 0x100,
        Stigma = 0x200,
        Dead = 0x420,//0x420  sau 400
        FadeAway = 0x800,
        Invisible = 0x400000,
        RedName = 0x4000,
        BlackName = 0x8000,
        SuperMan = 0x40000,
        Cyclone = 0x800000,
        Dodge = 0x4000000,
        Fly = 0x8000000,
        Pray = 0x40000000,
        Blessing = 8589934592,
        TopGuildLeader = 17179869184,
        TopDeputyLeader = 34359738368,
        MonthlyPKChampion = 68719476736,
        Freeze = 1UL << 54,
        WeeklyPKChampion = 137438953472,
        TopWarrior = 274877906944,
        TopTrojan = 549755813888,
        TopArcher = 1099511627776,
        TopWaterTaoist = 2199023255552,
        TopFireTaoist = 4398046511104,
        TopNinja = 8796093022208,
        ShurikenVortex = 70368744177664,
        FatalStrike = 140737488355328,
        Flashy = 281474976710656,
        Ride = 1125899906842624
    }

and here is the client side:
HTML Code:
0000000000000000 NULL NULL
0000000000000001 NULL NULL
0000000000000002 poisonstate NULL
0000000000000004 NULL NULL
0000000000000008 NULL NULL
0000000000000010 NULL NULL
0000000000000020 NULL NULL
0000000000000040 NULL TeamLeader
0000000000000080 attackfast40 NULL
0000000000000100 zf2-e307 NULL
0000000000000200 attackup40 NULL
0000000000000400 NULL NULL
0000000000000800 NULL NULL
0000000000004000 NULL NULL
0000000000008000 NULL NULL
0000000000010000 NULL NULL
0000000000020000 Reflect NULL
0000000000040000 SuperSoldier NULL
0000000000080000 BodyShield NULL
0000000000100000 GodBelieve NULL
0000000000200000 NULL NULL
0000000000400000 NULL NULL
0000000000800000 Tornado NULL
0000000001000000 NULL NULL
0000000002000000 ReflectMagic NULL
0000000004000000 Dodge NULL
0000000008000000 NULL NULL
0000000010000000 NULL NULL
0000000040000000 LuckDiffuse NULL
0000000080000000 LuckAbsorb NULL
0000000100000000 curse NULL
0000000200000000 bless NULL
0000000400000000 gamemain NULL
0000000800000000 gameassistant NULL
0000001000000000 gamemonth NULL
0000002000000000 gameweek NULL
0000004000000000 gamefighter NULL
0000008000000000 gamewarrior NULL
0000010000000000 gamebow NULL
0000020000000000 gamewater NULL
0000040000000000 gamefire NULL
0000080000000000 gamegulp NULL
800000000000 endureXPstate NULL
400000000000 cyclonehandcycle NULL
1000000000000 PKchampion NULL
All I want to know is how did they compare (compute) the ids of the statuseffecten: from the source >then to< client (statuseffect.ini) to make it the same id's?. so that the new effect that I added would be working whenever I call it. I tried to analyze this but I got no idea.

Hope someone can help me.

Thank you..

man thats a pretty way to store tqs status flags, or keepeffect flags.



Code:
        public enum StatusFlag:ulong
    {
        Normal =0,
        FlashingName = 1UL << 1,
        Poisoned = 1UL << 2,
        XPList = 1UL << 4,
        Dead = 1UL << 5,
        TeamLeader = 1UL << 6,
        StarOfAccuracy = 1UL << 7,
        MagicShield = 1UL << 8,
        Stigma = 1UL << 9,
        Ghost = 1UL << 10,
        FadeAway = 1UL << 11,
        RedName = 1UL << 14,
        BlackName = 1UL << 15,
        ReflectMelee =1UL << 17,
        Superman = 1UL << 18,
  ...ETC
Ultimation is offline  
Old 01/16/2018, 11:19   #5
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
thank you sir for sharing that. but I don't know how to read this number to identify the correct number from source to client eg:

(source part) FlashingName = 1UL << 1, (client side) 0000000000000008

0000000000000008 I don't know which is the correct id from the source. so I'm bit confuse on this. .
Soulfly25 is offline  
Old 01/16/2018, 17:13   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by Soulfly25 View Post
thank you sir for sharing that. but I don't know how to read this number to identify the correct number from source to client eg:

(source part) FlashingName = 1UL << 1, (client side) 0000000000000008

0000000000000008 I don't know which is the correct id from the source. so I'm bit confuse on this. .
Read the article I linked you to. It explains this kinda stuff in more detail - It's a bitwise shift.

Code:
[Flags] public enum AttackType {
    //               // Binary  // Dec
    None   = 0,      // 000000  0
    Melee  = 1 << 0, // 000001  1
    Fire   = 1 << 1, // 000010  2
    Ice    = 1 << 2, // 000100  4
    Poison = 1 << 3, // 001000  8
}
Spirited is offline  
Old 03/04/2018, 14:55   #7
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
is there any converter on this 0000080000000000 (statuseffect) to a decimal? because this is the only thing I did not know how to read it.
Soulfly25 is offline  
Old 03/04/2018, 19:37   #8
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,211
Received Thanks: 4,114
Quote:
Originally Posted by Soulfly25 View Post
is there any converter on this 0000080000000000 (statuseffect) to a decimal? because this is the only thing I did not know how to read it.
Calc.exe > Programmer Mode
Spirited is offline  
Old 03/05/2018, 04:16   #9
 
Soulfly25's Avatar
 
elite*gold: 0
Join Date: Mar 2006
Posts: 565
Received Thanks: 59
#Request Closed

Thank you @.
Soulfly25 is offline  
Closed Thread


Similar Threads Similar Threads
statuseffect
08/23/2013 - EO PServer Hosting - 1 Replies
Could someone explain to me how the file statuseffect?
statuseffect
08/22/2013 - EO PServer Guides & Releases - 0 Replies
Could someone explain to me how the file statuseffect?
[PureSkills]Anyone got statuseffect ?
02/14/2011 - CO2 Private Server - 5 Replies
Hello, anyone got statuseffect for pure skills ? (AzureShield,SoulShacke,Fire(PureSKill),Archer(pur eskkill)... If anyone have and don't wanna release here PM me...I will use its on my server
small help how to convert string to hex to make a new StatusEffect korvacs arco pro4e
07/16/2010 - CO2 Private Server - 4 Replies
now i want to know how to convert string to hexdemical to make a new StatusEffectEn in 5165 scours or give me hexdemical for this mate_pk_02 mate_pk_03 mate_pk_08 moonpk_eight moonpk_second moonpk_third ninjapk_eight
help l2.ini user.ini ...
02/09/2006 - Lineage 2 - 0 Replies
Please help to the user.ini and the l2.ini and the npcname-e to the user.ini more zoom and the l2.ini more rang vision and the npcname to look the levels please help to in the server official



All times are GMT +2. The time now is 04:01.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.