I need add guild war in co v2 source... because /gwstart doesnt work... Thank !
Now shearch for "static void Main()"Quote:
if (Splitter[0] == "/startgw")
{
General.GWOn = true;
World.SendMsgToAll(" GuildWar has started!!", "GW", 2011);
}
if (Splitter[0] == "/stopgw")
{
General.GWOn = false;
World.SendMsgToAll(" GuildWar has ended! Winner is : " + World.PoleHolder, "GUILDWAR", 2011);
}
Quote:
public static bool GWOn = false;
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);
}
}
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);
}
}
}