Register for your free account! | Forgot your password?

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

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

Advertisement



Hi I got little Problems here at 5165 source(NPCDialog.cs)

Discussion on Hi I got little Problems here at 5165 source(NPCDialog.cs) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Hi I got little Problems here at 5165 source(NPCDialog.cs)

#region Gw Winner npc
case 8888:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello if you win guild war you can recive good prizes!"));
GC.AddSend(Packets.NPCSay("I Can Give You 100k Cps For Wining!!"));
GC.AddSend(Packets.NPCLink("My guild won give me my reward please", 1));
GC.AddSend(Packets.NPCLink("Thats cool", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopGuildLeade r);
GC.MyChar.CPs += 100000;
GC.Message(2005, GC.MyChar.Name + "Claimed 100000cps from GuildWar");

}
else
{
GC.AddSend(Packets.NPCLink("You Didn`t Won On GW !! or maybe you already claim it !!", 1));
GC.AddSend(Packets.NPCLink("Ok Thanks", 255));
}
}
break;
}
#endregion


My Problem: when my guild won a guildwar i should claim the reward 1 time only but in this case i can claim as many as i can, how can I code to claim only 1 time? or what is the code to make the record won of my guild turns to zero.
marlyandedsel is offline  
Old 09/15/2010, 20:35   #2
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
i think it should be something like thisjust a quicky, im in a rush )
find:

Guildwar= False;
below that add:
GuildWarClaim= False;


Quote:
#region Gw Winner npc
case 8888:
{
if (Control == 0 && GC.Mychar.GuildWarClaim =True)
{
GC.AddSend(Packets.NPCSay("Hello if you win guild war you can recive good prizes!"));
GC.AddSend(Packets.NPCSay("I Can Give You 100k Cps For Wining!!"));
GC.AddSend(Packets.NPCLink("My guild won give me my reward please", 1));
GC.AddSend(Packets.NPCLink("Thats cool", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (GC.MyChar.MyGuild == Features.GuildWars.LastWinner && (GC.MyChar.GuildRank == NewestCOServer.Features.GuildRank.GuildLeader))
{
GC.MyChar.StatEff.Add(StatusEffectEn.TopGuildLeade r);
GC.MyChar.CPs += 100000;
GC.Message(2005, GC.MyChar.Name + "Claimed 100000cps from GuildWar");

}
else
{
GC.AddSend(Packets.NPCLink("You Didn`t Won On GW !! or maybe you already claim it !!", 1));
GC.AddSend(Packets.NPCLink("Ok Thanks", 255));
}
}
break;
}
#endregion
should be something like this.
then add it so it will become treu, and if gw restarts let it all be false


GoodLuck
pintser is offline  
Old 09/15/2010, 23:40   #3
 
elite*gold: 0
Join Date: Aug 2010
Posts: 452
Received Thanks: 75
if (Control == 0 && GC.Mychar.GuildWarClaim =True)

should be

if (Control == 0 && GC.Mychar.GuildWarClaim == True)


and the npc looks messy.
if claim = true u enter gw.
if is off u can get reward.
dowhatuwant is offline  
Thanks
1 User
Old 09/16/2010, 03:41   #4
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Thank you guyz i will try that one.
marlyandedsel is offline  
Reply


Similar Threads Similar Threads
5156 NPCDialog (Item and ClientSockets Problems)
06/20/2010 - CO2 Private Server - 3 Replies
Friends, I'm having trouble compiling sources NewestCOServer, specifically giving this error in the following source: NPCDialog.cs ClientSocket class does not exist, and structure "Struct.ItemInfo" the method AddItem is not localized. Could anyone help me or pass the sources corrected? Thanks
plz help me i have Problems in 5165 Source
12/04/2009 - CO2 Private Server - 3 Replies
:handsdown:halo all:handsdown: i have Problems in 5165 Source so plz plz help me First Problem: i downloaded all the register page one by one and it Work Very Well, But When the players Make account they select Job And Make Name...Then Enter To PLay Then the game return them to the previuos screen and make new char and account damage so what shall i do? Please Help Me 2nd Problem: When i add new npc to (NPCDialog) and hit f6 and f5 and run the server the server restart in 1 min...
[Problems] Source 5165 All Problems
11/28/2009 - CO2 Private Server - 7 Replies
Hello Everyone, Ok i will put All my problems here So i hope noone spamming and Say Go learn C# and w/e 1-RegPage: fixed all by adding  to the start of the pass and  to the end of the pass. its working okay and when i create character and try to rejoin the game close with itself Note: When i make From NewestCOServer Cmd it works fine and the game dont close i mean i want other players to make thier own accounts and dont ask me to make them The Accounts they want. 2-Lottery: Cant...
5165 Source With Steeds [Problems]
11/26/2009 - CO2 Private Server - 17 Replies
I Have Download this Source From Here And When i Get it Working i have get some bugs If Any One Can Give me Codes Or Source Already Fixed Ty To Him Here the Bugs 1- I Cant Pk Players



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


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