Flags IDs?! :D

02/26/2015 18:22 GameHackerPM#1
Hey I just wonder how do you guys get these Flags IDs? :D Kinda like these :
Code:
public class Flags
        {
            public const ulong
                Normal = 0x0,
                FlashingName = 0x1,
                Poisoned = 0x2,
                Invisible = 0x4,
                XPList = 0x10,
                Dead = 0x20,
                TeamLeader = 0x40,
                StarOfAccuracy = 0x80,
                MagicShield = 0x100,
                Stigma = 0x200,
                Ghost = 0x400,
                FadeAway = 0x800,
                RedName = 0x4000,
                BlackName = 0x8000,
                ReflectMelee = 0x20000,
                Superman = 0x40000,
                Ball = 0x80000,
                Ball2 = 0x100000,
                Invisibility = 0x400000,
                Cyclone = 0x800000,
                Dodge = 0x4000000,
                Fly = 0x8000000,
                Intensify = 0x10000000,
                CastPray = 0x40000000,
                Praying = 0x80000000,
                HeavenBlessing = 0x200000000,
                TopGuildLeader = 0x400000000,
                TopDeputyLeader = 0x800000000,
                MonthlyPKChampion = 0x1000000000,
                WeeklyPKChampion = 0x2000000000,
                TopWarrior = 0x4000000000,
                TopTrojan = 0x8000000000,
                TopArcher = 0x10000000000,
                TopWaterTaoist = 0x20000000000,
                TopFireTaoist = 0x40000000000,
                DefensiveStance = 1UL << (ushort)125,
                TopNinja = 0x80000000000,
                ShurikenVortex = 0x400000000000,
                FatalStrike = 0x800000000000,
                Flashy = 0x1000000000000,
                Ride = 0x4000000000000,
               TopSpouse = 1UL << 51,
            OrangeSparkles = 1UL << 52,
            PurpleSparkles = 1UL << 53,
            Frightened = 1UL << 54,
            SpeedIncreased = 1UL << 55,
            MoveSpeedRecovered = 1UL << 56,
            DivineShield = 1UL << 57,
            Dizzy = 1UL << 58,
            Cursed = 1UL << 32,
            ShockDaze = 1UL << 58,
            Freeze = 1UL << 59,
            Confused = 1UL << 60;
        }
Or if it's possible to change/get the effect of (f-taoist in strings effect) that named as Super Trojan's Lev120 Armor Effect. ! :D

So what do you think guys?! :)

Mr.Fang, Mr.pro4never, Mr.CptSky, Anyone else <3! :)

Thanks.
02/26/2015 18:30 Xio.#2
statuseffect.ini

:facepalm:
02/26/2015 18:54 GameHackerPM#3
Quote:
Originally Posted by Xio. View Post
statuseffect.ini

:facepalm:
Fine?!

Explain more please?

Code:
0 NULL NULL -1
1 poisonstate NULL -1 1
2 NULL NULL -1
3 NULL NULL -1
4 NULL NULL -1
5 NULL NULL -1
6 NULL TeamLeader -1
7 attackfast40 NULL -1
8 zf2-e307 NULL -1
9 attackup40 NULL -1
10 NULL NULL -1
11 NULL NULL -1
14 NULL NULL -1
15 NULL NULL -1
16 NULL NULL -1
17 Reflect NULL -1
18 SuperSoldier NULL -1
19 BodyShield NULL -1
20 GodBelieve NULL -1
21 NULL NULL -1
22 NULL NULL -1
23 Tornado NULL -1
24 NULL NULL -1
25 ReflectMagic NULL -1
26 Dodge NULL -1
27 NULL NULL -1
28 NULL NULL -1
30 LuckDiffuse NULL -1
31 LuckAbsorb NULL -1
32 curse NULL -1
33 bless NULL -1
34 gamemain NULL -1
35 gameassistant NULL -1
36 gamemonth NULL -1
37 gameweek NULL -1
38 gamefighter NULL -1
39 gamewarrior NULL -1
40 gamebow NULL -1
41 gamewater NULL -1
42 gamefire NULL -1
43 gamegulp NULL -1
44 NULL NULL -1 1
47 endureXPstate NULL -1
46 cyclonehandcycle NULL -1
48 PKchampion NULL -1
49 pkvip NULL -1
51 mate_pk_01 NULL -1
52 moveadding NULL 68
53 moveallaying NULL 69 1
54 Status_Stop_cyc NULL 70 1
55 move_continue NULL 67
56 replymove NULL -1
57 guard_defshare NULL 63
58 noconfirm096-999 NULL 64 1
59 frost_cyc NULL 66 1
60 chaos_cyc NULL 65 1
64 weekpk_eight NULL -1
65 weekpk_second NULL -1
66 weekpk_third NULL -1
67 moonpk_eight NULL -1
68 moonpk_second NULL -1
69 moonpk_third NULL -1
70 firepk_eight NULL -1
71 firepk_second NULL -1
72 firepk_third NULL -1
73 waterpk_eight NULL -1
74 waterpk_second NULL -1
75 waterpk_third NULL -1
76 ninjapk_eight NULL -1
77 ninjapk_second NULL -1
78 ninjapk_third NULL -1
79 warriorpk_eight NULL -1
80 warriorpk_second NULL -1
81 warriorpk_third NULL -1
82 trojanpk_eight NULL -1
83 trojanpk_second NULL -1
84 trojanpk_third NULL -1
85 Archerpk_eight NULL -1
86 Archerpk_second NULL -1
87 Archerpk_third NULL -1
88 mate_pk_08 NULL -1
89 mate_pk_02 NULL -1
90 mate_pk_03 NULL -1
93 sscs_htsd_cyc NULL 89
98 forceaura_01 NULL -1
100 wbonze_state NULL -1
102 halo_jin_cyc NULL -1
104 halo_mu_cyc NULL -1
106 halo_shui_cyc NULL -1
108 halo_huo_cyc NULL -1
110 halo_tu_cyc NULL -1
111 wssfs_cyc NULL 98
114 wspk_first NULL -1
115 wspk_eighth NULL -1
116 wspk_second NULL -1
117 wspk_third NULL -1
119 pro_tir_sta NULL -1
122 sea_ver_fir NULL -1
123 sea_ver_eig NULL -1
124 sea_ver_sec NULL -1
125 sea_ver_thi NULL -1
128 mag_pro_rep NULL -1
131 cam_con_tri1 NULL -1
132 cam_con_tri NULL -1
145 NULL NULL -1 -1 NULL NULL 1005 2
148 blooddrcontin NULL 10148
150 cyclonehun NULL -1 -1 cyclonexian cycloneshi
151 Surround1 NULL -1
152 Surround2 NULL -1
153 Surround3 NULL -1
154 li_pk_win NULL -1
158 flyroddebuff NULL -1
159 cyclonecyc NULL -1 -1 cycloneadd NULL
160 jeetstepcontin NULL -1

Tried to add :
Code:
161 f-taoist NULL -1
And added it at Updates with " TrojanSuperArmor = 1UL << 161, ".
Not working! :D (Then i miss understand it)

TY
02/26/2015 19:15 abdoumatrix#4
this should help
PHP Code:
public void Add(int index)
{
    if (
index Size)
    {
        
int idx index 32;
        
uint bites = (uint)(<< (index 32));
        
bits[idx] |= bites;
      }

index = Flag id in Status Effect.ini

Quote:
Originally Posted by GameHackerPM View Post
Fine?!

Explain more please?

Code:
0 NULL NULL -1
1 poisonstate NULL -1 1
2 NULL NULL -1
3 NULL NULL -1
4 NULL NULL -1
5 NULL NULL -1
6 NULL TeamLeader -1
7 attackfast40 NULL -1
8 zf2-e307 NULL -1
9 attackup40 NULL -1
10 NULL NULL -1
11 NULL NULL -1
14 NULL NULL -1
15 NULL NULL -1
16 NULL NULL -1
17 Reflect NULL -1
18 SuperSoldier NULL -1
19 BodyShield NULL -1
20 GodBelieve NULL -1
21 NULL NULL -1
22 NULL NULL -1
23 Tornado NULL -1
24 NULL NULL -1
25 ReflectMagic NULL -1
26 Dodge NULL -1
27 NULL NULL -1
28 NULL NULL -1
30 LuckDiffuse NULL -1
31 LuckAbsorb NULL -1
32 curse NULL -1
33 bless NULL -1
34 gamemain NULL -1
35 gameassistant NULL -1
36 gamemonth NULL -1
37 gameweek NULL -1
38 gamefighter NULL -1
39 gamewarrior NULL -1
40 gamebow NULL -1
41 gamewater NULL -1
42 gamefire NULL -1
43 gamegulp NULL -1
44 NULL NULL -1 1
47 endureXPstate NULL -1
46 cyclonehandcycle NULL -1
48 PKchampion NULL -1
49 pkvip NULL -1
51 mate_pk_01 NULL -1
52 moveadding NULL 68
53 moveallaying NULL 69 1
54 Status_Stop_cyc NULL 70 1
55 move_continue NULL 67
56 replymove NULL -1
57 guard_defshare NULL 63
58 noconfirm096-999 NULL 64 1
59 frost_cyc NULL 66 1
60 chaos_cyc NULL 65 1
64 weekpk_eight NULL -1
65 weekpk_second NULL -1
66 weekpk_third NULL -1
67 moonpk_eight NULL -1
68 moonpk_second NULL -1
69 moonpk_third NULL -1
70 firepk_eight NULL -1
71 firepk_second NULL -1
72 firepk_third NULL -1
73 waterpk_eight NULL -1
74 waterpk_second NULL -1
75 waterpk_third NULL -1
76 ninjapk_eight NULL -1
77 ninjapk_second NULL -1
78 ninjapk_third NULL -1
79 warriorpk_eight NULL -1
80 warriorpk_second NULL -1
81 warriorpk_third NULL -1
82 trojanpk_eight NULL -1
83 trojanpk_second NULL -1
84 trojanpk_third NULL -1
85 Archerpk_eight NULL -1
86 Archerpk_second NULL -1
87 Archerpk_third NULL -1
88 mate_pk_08 NULL -1
89 mate_pk_02 NULL -1
90 mate_pk_03 NULL -1
93 sscs_htsd_cyc NULL 89
98 forceaura_01 NULL -1
100 wbonze_state NULL -1
102 halo_jin_cyc NULL -1
104 halo_mu_cyc NULL -1
106 halo_shui_cyc NULL -1
108 halo_huo_cyc NULL -1
110 halo_tu_cyc NULL -1
111 wssfs_cyc NULL 98
114 wspk_first NULL -1
115 wspk_eighth NULL -1
116 wspk_second NULL -1
117 wspk_third NULL -1
119 pro_tir_sta NULL -1
122 sea_ver_fir NULL -1
123 sea_ver_eig NULL -1
124 sea_ver_sec NULL -1
125 sea_ver_thi NULL -1
128 mag_pro_rep NULL -1
131 cam_con_tri1 NULL -1
132 cam_con_tri NULL -1
145 NULL NULL -1 -1 NULL NULL 1005 2
148 blooddrcontin NULL 10148
150 cyclonehun NULL -1 -1 cyclonexian cycloneshi
151 Surround1 NULL -1
152 Surround2 NULL -1
153 Surround3 NULL -1
154 li_pk_win NULL -1
158 flyroddebuff NULL -1
159 cyclonecyc NULL -1 -1 cycloneadd NULL
160 jeetstepcontin NULL -1
for example :

160

its value =

1 << 160 % 32 = 1 << 52

its postion in packet = 160 / 32 = 5

Flag1
uint 0
uint 1

Flag2
uint 2
uint 3

Flag3
uint 4
uint 5
02/26/2015 19:17 Best Coder 2014#5
Quote:
Originally Posted by abdoumatrix View Post
this should help
PHP Code:
public void Add(int index)
{
    if (
index Size)
    {
        
int idx index 32;
        
uint bites = (uint)(<< (index 32));
        
bits[idx] |= bites;
      }

"bites", LOL.
02/26/2015 19:22 abdoumatrix#6
Quote:
Originally Posted by Best Coder 2014 View Post
"bites", LOL.
enlighten me where is the funny part :D

sry i got it :D

bits instead of bites :D
02/26/2015 20:20 H.Mando#7
why no Flag Dragon Warrio ?!
02/26/2015 23:53 GameHackerPM#8
Quote:
Originally Posted by abdoumatrix View Post
this should help
PHP Code:
public void Add(int index)
{
    if (
index Size)
    {
        
int idx index 32;
        
uint bites = (uint)(<< (index 32));
        
bits[idx] |= bites;
      }

index = Flag id in Status Effect.ini



for example :

160

its value =

1 << 160 % 32 = 1 << 52

its postion in packet = 160 / 32 = 5

Flag1
uint 0
uint 1

Flag2
uint 2
uint 3

Flag3
uint 4
uint 5

Got it <3 :D
03/01/2015 02:01 _DreadNought_#9
Quote:
Originally Posted by abdoumatrix View Post
enlighten me where is the funny part :D

sry i got it :D

bits instead of bites :D
i'm surprisingly amused by this
03/01/2015 20:46 abdoumatrix#10
Quote:
Originally Posted by _DreadNought_ View Post
i'm surprisingly amused by this
not my codes so i don't take deep look at variables names :D