Register for your free account! | Forgot your password?

You last visited: Today at 17:04

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

Advertisement



Coding CTF

Discussion on Coding CTF within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Talking Coding CTF

Does Anyone Knows Where the Npcs For Capture that Flag Spawn At?!
if so can be kind to Post It here
-Shunsui- is offline  
Old 05/18/2009, 00:03   #2
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
Grrr u typed it wrong lmao. Inside 1018 i know that but cords and what npc where
Pete1990 is offline  
Old 05/18/2009, 00:26   #3
 
AndreaCo's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 510
Received Thanks: 104
i know.. because i was the one that coded it.. no im not helping.. -_-
AndreaCo is offline  
Old 05/18/2009, 00:51   #4
 
TheLeGend209's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 157
Received Thanks: 15
Quote:
Originally Posted by flako27 View Post
Does Anyone Knows Where the Npcs For Capture that Flag Spawn At?!
if so can be kind to Post It here

Like andrea said she coded it and u dont need it

#Request Close Noob Post
TheLeGend209 is offline  
Old 05/18/2009, 01:17   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by TheLeGend209 View Post
Like andrea said she coded it and u dont need it

#Request Close Noob Post
you released it...so stop flaming him...

flako just put all npcs in a city or something
PeTe Ninja is offline  
Old 05/18/2009, 07:38   #6
 
AndreaCo's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 510
Received Thanks: 104
thanks so much pete!!!!! <3...
AndreaCo is offline  
Old 05/18/2009, 17:06   #7
 
adz06676's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
Quote:
Originally Posted by AndreaCo View Post
i know.. because i was the one that coded it.. no im not helping.. -_-
your not the only one who's coded CTF, it isn't exactly hard.
adz06676 is offline  
Old 05/18/2009, 19:20   #8
 
AndreaCo's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 510
Received Thanks: 104
yes i know it wasent hard.. and kinshi also coded it in but i didint want mine to be released -_-... because my server was the only one to have it and now most of the servers have it
AndreaCo is offline  
Old 05/18/2009, 20:45   #9
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
I probably set it all up wrong, but anyways here's mine shitty coded (NOT LOTF PETE)

Quote:
public static Guild Team1;
public static Guild Team2;
public static void Start(Guild Team1, Guild Team2)
{
Team1.GuildMsg("SYSTEM", "ALL", "Capture The Flag has started! Kill FlagKeeper in the middle of the map to receive the flag!");
Team2.GuildMsg("SYSTEM", "ALL", "Capture The Flag has started! Kill FlagKeeper in the middle of the map to receive the flag!");
}
public static void GivePoints(Guild Guild)
{
Guild.CTFPoints += 5;
Guild.GuildMsg("SYSTEM", "ALL", "Your guild has gained 5 points from the CTF challange war!");
Guild.ClaimedFlag = DateTime.Now;
}
public static void End(Guild Team1, Guild Team2)
{
Guild Winner;
if (Team1.CTFPoints >= Team2.CTFPoints)
Winner = Team1;
else
Winner = Team2;
LiveManager.SendMsgToAll("[SYSTEM]", "Capture The Flag has ended! Winners are " + Winner.GuildName + " !", 2005);
foreach (DictionaryEntry DE in LiveManager.H_Chars)
{
Character Char = (Character)DE.Value;
if (Char.Loc.Map == 500)
Char.Teleport(1002, 350, 350);
}
}

Quote:
case (uint)NpcIds.CaptureTheFlag:
if (Type == 0)
{
C.NPCSay("Hello. If you are the guild leader of your guild, you can join the CTF war. Would you want to join");
C.NPCSay(" the challange?");
C.NPCOption("Yes, me and my guild is ready!", 1);
C.NPCOption("No thanks, we're not that good yet..", 255);
C.NPCDone(29);
}
if (Type == 1)
{
if (Quests.CaptureTheFlag.Team1 != null && Quests.CaptureTheFlag.Team2 != null)
{
if (C.MyChar.GRank == GuildRank.GuildLeader)
foreach (DictionaryEntry DE in LiveManager.H_Chars)
{
Character AllGuildMembers = (Character)DE.Value;
if (AllGuildMembers.MyGuild == C.MyChar.MyGuild)
AllGuildMembers.Teleport(500, 500, 500);
}
C.MyChar.Teleport(500, 500, 500);
if (Quests.CaptureTheFlag.Team1 == null)
Quests.CaptureTheFlag.Team1 = C.MyChar.MyGuild;
else
Quests.CaptureTheFlag.Team2 = C.MyChar.MyGuild;
LiveManager.SendMsgToAll("[SYSTEM]", C.MyChar.MyGuild + " has joined the CTF challange!", 2005);
}
}

break;

case (uint)NpcIds.CTFTeam1;
case (uint)NpcIds.CTFTeam2;
if (Type == 0)
{
if (C.MyChar.FlagKeeper && DateTime.Now.AddSeconds(45) >= C.MyChar.MyGuild.ClaimedFlag)
Quests.CaptureTheFlag.GivePoints(C.MyChar.MyGuild) ;
else
C.SendLocalMessage("Either you are not the flagkeeper, or you have to wait a little bit before claiming the flag", 2005);
}
break;

Quote:
foreach (DictionaryEntry DI in LiveManager.H_Chars)
{
Character Char = (Character)DI.Value;
if (Char.FlagKeeper && !Char.Alive)
{
Character C = (Character)Char.Blood.Attacker;
C.FlagKeeper = true;
Char.FlagKeeper = false;
LiveManager.SendMsgToAll("[SYSTEM]", Char.Name + " has lost the flag and " + C.Name + " has it!",2005);

}
}
Old, old old code, shitty code, but may improve your code.

Goodluck,
Emme
_Emme_ is offline  
Old 05/18/2009, 21:23   #10
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by EmmeTheCoder View Post
I probably set it all up wrong, but anyways here's mine ****** coded (NOT LOTF PETE)









Old, old old code, ****** code, but may improve your code.

Goodluck,
Emme
xD, why you said NOT LOTF PETE? pete me or other pete?
PeTe Ninja is offline  
Reply


Similar Threads Similar Threads
*NEW CODING ART!!!..........:::::~WhiteLight D3D~:::::..........*NEW CODING ART!!!
09/21/2010 - WarRock Hacks, Bots, Cheats & Exploits - 25 Replies
http://250kb.de/u/100911/p/m4buevNCZhoQ.PNG Download: Multiupload.com - upload your files to multiple file hosting sites! VirusScan: VirusTotal - Free Online Virus, Malware and URL Scanner Funktionen: SuperJump Teleport NoSpread NoRecoil
Uce Coding+ winhex coding
03/05/2009 - Dekaron - 8 Replies
i was just wondering is it true if u do coding with winhex is it less dc?? tats all cuz uce coding dcs me alot



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


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.