|
You last visited: Today at 22:39
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.
11/08/2008, 19:31
|
#1
|
elite*gold: 0
Join Date: Aug 2006
Posts: 129
Received Thanks: 15
|
[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
|
|
|
11/08/2008, 19:39
|
#2
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
|
It should work. Maybe a typo?
|
|
|
11/08/2008, 19:42
|
#3
|
elite*gold: 0
Join Date: Aug 2006
Posts: 129
Received Thanks: 15
|
Idk. When i use /gwstart nothing is from gw is coming :/
|
|
|
11/08/2008, 19:49
|
#4
|
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
|
|
|
11/08/2008, 20:19
|
#5
|
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 ...
|
|
|
11/08/2008, 21:18
|
#6
|
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.
|
|
|
11/09/2008, 11:01
|
#7
|
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
|
|
|
11/09/2008, 18:13
|
#8
|
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
|
thx for posting emme
ure the best =P (with coding)
|
|
|
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???
|
|
|
11/16/2008, 14:09
|
#10
|
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;
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
06/30/2009, 17:52
|
#14
|
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
|
|
|
07/28/2009, 02:09
|
#15
|
elite*gold: 0
Join Date: Jun 2008
Posts: 6
Received Thanks: 0
|
hum nice
|
|
|
|
|
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.
|
|