Register for your free account! | Forgot your password?

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

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

Advertisement



[request] How to make guildWar working on PowerSourceCo

Discussion on [request] How to make guildWar working on PowerSourceCo within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Kital82's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 129
Received Thanks: 15
Question [request] How to make guildWar working on PowerSourceCo

Hello everyone
Can you tell me what i have to do to make guildwar working on PowerSource Co because my / command don't work

Thank you for reply
Kital82 is offline  
Old 11/08/2008, 19:39   #2


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
It should work. Maybe a typo?
KraHen is offline  
Old 11/08/2008, 19:42   #3
 
Kital82's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 129
Received Thanks: 15
Idk. When i use /gwstart nothing is from gw is coming :/
Kital82 is offline  
Old 11/08/2008, 19:49   #4
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
whats in your /gwstart code?
if you dunno how to get it,search for:


/gwstart
_Emme_ is offline  
Old 11/08/2008, 20:19   #5
 
Kital82's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 129
Received Thanks: 15
There is no /gwstart code in my file theres only that about /gwstart or /gwstop

SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "/gwstart", 2000));
SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "/gwstop", 2000));

No more things ...
Kital82 is offline  
Old 11/08/2008, 21:18   #6
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
You think this would work?

Two new commands:


Quote:
if (Splitter[0] == "/startgw")
{
General.GWOn = true;
World.SendMsgToAll(" GuildWar has started! Hurry up and defeat your enemies!", "GUILDWAR", 2011);
}
if (Splitter[0] == "/stopgw")
{
General.GWOn = false;
World.SendMsgToAll(" GuildWar has ended! Winner is : " + World.PoleHolder, "GUILDWAR", 2011);
}


Search for:
static void Main()


Above it , add:


Quote:
public static bool GWOn = false;


Search for:


Quote:
else
{

CurHP -= Damage;
if (Sob == 2)
{
if (Attacker.MyGuild != null)
{
if (Attacker.MyGuild != World.PoleHolder)
Attacker.MyGuild.PoleDamaged += (int)Damage;
if (World.GWScores.Contains(Attacker.MyGuild.GuildID) )
World.GWScores.Remove(Attacker.MyGuild.GuildID);

World.GWScores.Add(Attacker.MyGuild.GuildID, Attacker.MyGuild.PoleDamaged);
}

}

Do it:


Quote:
else
{
if (General.GWOn)
{
CurHP -= Damage;
if (Sob == 2)
{
if (Attacker.MyGuild != null)
{
if (Attacker.MyGuild != World.PoleHolder)
Attacker.MyGuild.PoleDamaged += (int)Damage;
if (World.GWScores.Contains(Attacker.MyGuild.GuildID) )
World.GWScores.Remove(Attacker.MyGuild.GuildID);

World.GWScores.Add(Attacker.MyGuild.GuildID, Attacker.MyGuild.PoleDamaged);
}
}
}


Never tested but should work, makes pope unable to be damaged unless gw is started ( by command ) or stopped.
_Emme_ is offline  
Thanks
4 Users
Old 11/09/2008, 11:01   #7
 
Kital82's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 129
Received Thanks: 15
Ok thank you i'll test it now

It works now :P
Thank you emme for the help
Kital82 is offline  
Old 11/09/2008, 18:13   #8
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
thx for posting emme
ure the best =P (with coding)
turk55 is offline  
Old 11/16/2008, 07:40   #9
 
elite*gold: 0
Join Date: Jun 2006
Posts: 21
Received Thanks: 1
Quote:
Error 3 'COServer_Project.General' does not contain a definition for 'GWOn' C:\PowerSource CO\COServerProject1\COServerProject\Client.cs 5286 53 COServerProject
Can anyone help about this error???
tidus2005 is offline  
Old 11/16/2008, 14:09   #10
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Search for:
static void Main()


Above it , add:



Quote:
public static bool GWOn = false;
_Emme_ is offline  
Thanks
1 User
Old 03/24/2009, 08:49   #11
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1
Received Thanks: 0
emme can u help me hot to make guild name appears/ gw start cuz i cant find the file to make this stuff
midonido2009 is offline  
Old 03/25/2009, 15:12   #12
 
elite*gold: 0
Join Date: Oct 2008
Posts: 3
Received Thanks: 0
Hello please help me how to hit the pole when you see the name of the Guild and who appear in this first I am very grateful to be able to help me!

msn
juliahtinha is offline  
Old 06/30/2009, 16:50   #13
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 1
how i can make guild war work on CoEmo v2
0105653642 is offline  
Old 06/30/2009, 17:52   #14
 
danielachraf's Avatar
 
elite*gold: 20
Join Date: Mar 2008
Posts: 958
Received Thanks: 494
1 question .... i had GW problem too ... i tried to add this
public static bool GWScores = false;
and in the command General.GWScores = true;
and GW was working ... but the gate and the pole don't die i will try yours emme now

edit: still have this program
danielachraf is offline  
Old 07/28/2009, 02:09   #15
 
elite*gold: 0
Join Date: Jun 2008
Posts: 6
Received Thanks: 0
hum nice
felipe666 is offline  
Reply


Similar Threads Similar Threads
[REL]Make GuildWar start auto after it has been Taken + command to stop GW
04/02/2010 - CO2 PServer Guides & Releases - 4 Replies
Ok so this code SHOULD work perfectly with no errors right.... to make the GW start auto after it has been taken.... goto Features>Guildwar.cs and hit CTRL+F and search for World.SendMsgToAll("SYSTEM", Highest.TheGuild.GuildName + under the rest of that line just add THIS code
[Help] PowerSourceCO
11/21/2009 - CO2 Private Server - 2 Replies
Hi there, I have Downloaded CoMy, and I have discovered that i am unable to change anything due to when i build the solution, it builds the output PowerSourceCO.exe. When i am launching the Server, i launch from, CoMy.exe. When i happen to launch from PowerSourceCo.exe, i get this error that i have tried to spend 3 days fixing now. It may be something simple, but its just a little server that i would like to build my C# knowledge on. The error in the CMD server window states. Loaded...
How i can make work gw in PowerSourceCo?
08/18/2009 - CO2 Private Server - 13 Replies
hi ppl. Im new to pvpers. I made my own private server and i started learning how to code etc..I need help with the GuildWar in my private server.. i dont know how to make it work i searched here in pvpers and didnt found nothing. So if any1 can help me please do it.. TNX =P
Cant run PowerSourceCo.exe
06/18/2009 - CO2 Private Server - 4 Replies
Hello , im making a private server . I cant seem to run PowerSourceCo.exe here's a screenshot. http://img193.imageshack.us/img193/964/nonamen.pn g Oh yea , after i download NetFramework 3.5 . This is what happen . http://img25.imageshack.us/img25/4197/noname2evg. png
Can not run PowerSourceCO.exe
11/29/2008 - CO2 Private Server - 1 Replies
Can anyone help me? Afer i run PowerSourceCO.exe,it crashes. I have WindowsXP SP3, and i have NetFramework 2.0 too. <-- can this be a problem? http://img147.imageshack.us/img147/6315/servercra shdk9.th.jpg



All times are GMT +2. The time now is 22:39.


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.