[request] How to make guildWar working on PowerSourceCo

11/08/2008 19:31 Kital82#1
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 KraHen#2
It should work. Maybe a typo?
11/08/2008 19:42 Kital82#3
Idk. When i use /gwstart nothing is from gw is coming :/
11/08/2008 19:49 _Emme_#4
whats in your /gwstart code?
if you dunno how to get it,search for:


/gwstart
11/08/2008 20:19 Kital82#5
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 _Emme_#6
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 Kital82#7
Ok thank you i'll test it now ;)

It works now :P
Thank you emme for the help :)
11/09/2008 18:13 turk55#8
thx for posting emme
ure the best =P (with coding)
11/16/2008 07:40 tidus2005#9
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 _Emme_#10
Search for:
static void Main()


Above it , add:



Quote:
public static bool GWOn = false;
03/24/2009 08:49 midonido2009#11
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 juliahtinha#12
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 [Only registered and activated users can see links. Click Here To Register...]
06/30/2009 16:50 0105653642#13
how i can make guild war work on CoEmo v2
06/30/2009 17:52 danielachraf#14
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 :D i will try yours emme now

edit: still have this program
07/28/2009 02:09 felipe666#15
hum nice