Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP] hello pls help in my code addflag

Discussion on [HELP] hello pls help in my code addflag within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 46
Received Thanks: 1
[HELP] hello pls help in my code addflag

Hello friends, i use old trinity source, i have this 2 codes to addflags.

public void AddFlag(ulong flag)
{
if (!ContainsFlag(Network.GamePackets.Update.Flags.De ad) && !ContainsFlag(Network.GamePackets.Update.Flags.Gho st))
StatusFlag |= flag;
}


public void AddFlag2(ulong flag)
{
// if (!ContainsFlag(Network.GamePackets.Update.Flags.De ad) && !ContainsFlag(Network.GamePackets.Update.Flags.Gho st))
StatusFlag2 |= flag;
}

some flags, addflag2 only work with, but I'm having some problems.
first-> when I add the flag topmonk other flag that is in the char is invisible to me.

second-> when I use the skill soulshackle, to revive the button disappears and never comes back, I wonder why and where the error might be there. ok
thanks all!
djneo31 is offline  
Old 07/21/2011, 02:58   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Addflag2 is wrong at first glance. You commented out the checks and never check if flag2 exists.

Should be something more like...

public void AddFlag2(ulong flag)
{
if (!ContainsFlag2(flag))
StatusFlag2 |= flag;
}


Then obviously you need to use flag2's with the add/removeflag2 and flag2 with the add/removeflag codes as they write to different offsets.


Soulshackle sounds like you are never removing the effect properly or you are clearing the dead/ghost effect. When you remove the shackle effect make sure they are still flagged as dead/ghost so the revive button shows.
pro4never is offline  
Thanks
1 User
Old 07/21/2011, 04:18   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 46
Received Thanks: 1
Quote:
Originally Posted by pro4never View Post
Addflag2 is wrong at first glance. You commented out the checks and never check if flag2 exists.

Should be something more like...

public void AddFlag2(ulong flag)
{
if (!ContainsFlag2(flag))
StatusFlag2 |= flag;
}


Then obviously you need to use flag2's with the add/removeflag2 and flag2 with the add/removeflag codes as they write to different offsets.


Soulshackle sounds like you are never removing the effect properly or you are clearing the dead/ghost effect. When you remove the shackle effect make sure they are still flagged as dead/ghost so the revive button shows.
Thank you for your attention, you're right, the problem I'm having here is that when added Flag2 flag1 seems to be replacing, but only on my screen when I'm in another character I can see the two flags. I used the option you give me but still did not work.
djneo31 is offline  
Reply


Similar Threads Similar Threads
Waffen Code´s - Premium Code´s - Dinar Code´s [VERKAUFBAR] ! ! !
03/10/2011 - WarRock Trading - 3 Replies
Hallo Leute , ich verkaufe Code´s . Die Code´s werde ich jetzt darunter hinschreiben und ihr könnt euch bei mir melden 50 % Günstiger Als WarRock Marketplace . 1.Waffen Code´s >>> G36 Code Xm8 Code Javelin Code Mp7a1 Code Famas Retail Code G36 Retail Code
Waffen Code´s - Premium Code´s - Dinar Code´s [VERKAUFBAR] ! ! !
03/10/2011 - WarRock Trading - 9 Replies
Waffen Code´s - Premium Code´s - Dinar Code´s ! ! ! Hallo Leute , ich verkaufe Code´s . Die Code´s werde ich jetzt darunter hinschreiben und ihr könnt euch bei mir melden 50 % Günstiger Als WarRock Marketplace . 1.Waffen Code´s >>> G36 Code Xm8 Code Javelin Code
B> DriftCity CBS Code | S> War Rock Code / Bounty Bay Code etc.
10/05/2010 - Trading - 1 Replies
Hi, wie schon im Titel beschrieben. In der CBS vom November gab es Bonusodes für mehrere Spiele. Ich benötige DriftCity Codes. Kann sonst für alle anderen Spiele die Codes biten, einige auch doppelt. Hier eine Liste der Spiele und Bonusaktionen: - (2x) War Rock - (2x) War of Titans - (2x) World of Warcraft - (1x) Warhammer Online - (1x) Bounty Bay online



All times are GMT +1. The time now is 13:45.


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.