Register for your free account! | Forgot your password?

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

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

Advertisement



Help please its about capture flag elite pk events

Discussion on Help please its about capture flag elite pk events within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2011
Posts: 3
Received Thanks: 0
Help please its about capture flag elite pk events

Like i said in name of theard can u help me guyz to find a scripts about capture flag elite pk plant bomb that events
Jiraiya-san is offline  
Old 02/21/2011, 21:01   #2
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
You will have to write these events for yourself because as far as I am aware no one has released them
.Beatz is offline  
Old 02/21/2011, 22:48   #3
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Plant The Bomb from Fallenheroes 5071.

PacketProcessor -> Revive
Code:
        public static void Revive(GameClient Hero, bool OnSpot)
        {
            if (!Hero.Entity.Dead)
                return;

            Hero.Entity.Dead = false;
            Hero.Entity.Hitpoints = Hero.Entity.MaxHitpoints;
            Hero.Entity.SpawnProtection = true;

            if (!OnSpot)
            {
                RevivePoint rPoint;
                #region RevPTB
                else if (Hero.Entity.MapID == 1037)
                {
                    Hero.Teleport(1002, 400, 400);
                    Hero.Entity.PTBBlack = false;
                    Hero.Entity.PTBWhite = false;
                    Hero.Entity.GotBomb = false;
                    Hero.Entity.Signed = false;
                    Hero.Entity.Garment = false;
                    Hero.Entity.BombTick = 0;
                }
                #endregion
                else
                {
                    if (Kernel.RevivePoints.TryGetValue(Hero.Entity.MapID, out rPoint))
                        Hero.Teleport(rPoint.RevMap, rPoint.RevX, rPoint.RevY);
                    else
                        Hero.Teleport(1002, 430, 380);
                }
            }
            else
                Hero.Teleport(Hero.Entity.MapID, Hero.Entity.X, Hero.Entity.Y);

            Hero.Stamina = 100;

            Hero.LoadEquipment();

            Sync.HP(Hero);
            Sync.Stamina(Hero);
            Sync.Revive(Hero);

            GetSurroundings(Hero);

            Screen screen = new Screen(Hero);
            screen.Reload(true, null);
        }
Attack -> Physical -> case EntityFlag.Player -> if (Damage >= hero.Attacked.Hitpoints)
Code:
                      #region PTB
                                    if (hero.Entity.GotBomb == true)
                                    {
                                        foreach (GameClient Charrr in Kernel.GamePool.Values)
                                        {
                                            PTB.PTBs = false;
                                            PTB.TheBombIsTaken = false;
                                            Charrr.Entity.PTBBlack = false;
                                            Charrr.Entity.GotBomb = false;
                                            Charrr.Entity.Signed = false;
                                            Charrr.Entity.Garment = false;
                                            Charrr.Entity.BombTick = 0;
                                            ActionTimer.TournyOn = false;
                                            Message.Global(hero.Entity.Name + " has died, the bomb got lost. The White Team Has Won And Gained 200HeroPoints.", MessagePacket.Teal, MessagePacket.Center);
                                            if (Charrr.Entity.MapID == 1037)
                                            {
                                                Charrr.Teleport(1002, 400, 400);
                                            }
                                            if (Charrr.Entity.PTBWhite == true)
                                            {
                                                Charrr.HeroPoints += 200;
                                                Charrr.Entity.PTBWhite = false;
                                            }
                                        }
                                    }
                                    if (hero.Entity.MapID == 1037)
                                    {
                                        hero.Entity.PTBBlack = false;
                                        hero.Entity.PTBWhite = false;
                                        hero.Entity.GotBomb = false;
                                        hero.Entity.Signed = false;
                                        hero.Entity.Garment = false;
                                        hero.Entity.BombTick = 0;
                                        hero.Teleport(1002, 400, 400);
                                    }
                                    #endregion
PacketProcessor -> PlayerGroundMovment
Code:
        public static void PlayerGroundMovment(GameClient Hero, GroundMovementPacket Packet)
        {
            Hero.Entity.SpawnProtection = false;

            #region PTB
            if (Hero.Entity.BombTick >= 50 && Hero.Entity.GotBomb == true && Hero.Entity.X == 228 && Hero.Entity.Y == 232 || Hero.Entity.BombTick >= 50 && Hero.Entity.GotBomb == true && Hero.Entity.X == 227 && Hero.Entity.Y == 231 || Hero.Entity.BombTick >= 50 && Hero.Entity.GotBomb == true && Hero.Entity.X == 228 && Hero.Entity.Y == 229 || Hero.Entity.BombTick >= 50 && Hero.Entity.GotBomb == true && Hero.Entity.X == 229 && Hero.Entity.Y == 233 || Hero.Entity.BombTick >= 50 && Hero.Entity.GotBomb == true && Hero.Entity.X == 226 && Hero.Entity.Y == 233)
            {
                foreach (GameClient Char in Kernel.GamePool.Values)
                {
                    if (Char.Entity.MapID == 1037)
                    {
                        if (Char.Entity.PTBBlack == true)
                        {
                            Char.HeroPoints += 200;
                        }
                        PTB.PTBs = false;
                        PTB.TheBombIsTaken = false;
                        Char.Entity.PTBBlack = false;
                        Char.Entity.PTBWhite = false;
                        Hero.Entity.GotBomb = false;
                        Hero.Entity.BombTick = 0;
                        Char.Entity.Signed = false;
                        Char.Entity.Garment = false;
                        ActionTimer.TournyOn = false;
                        Message.Send(Char, "Plant The Bomb have ended and The Black Team have won!!!!", MessagePacket.Teal, MessagePacket.Center);
                        Char.Teleport(1002, 400, 400);
                    }
                }
            }
            if (Hero.Entity.GotBomb == true && Hero.Entity.X == 228 && Hero.Entity.Y == 232 || Hero.Entity.GotBomb == true && Hero.Entity.X == 227 && Hero.Entity.Y == 231 || Hero.Entity.GotBomb == true && Hero.Entity.X == 228 && Hero.Entity.Y == 229 || Hero.Entity.GotBomb == true && Hero.Entity.X == 229 && Hero.Entity.Y == 233 || Hero.Entity.GotBomb == true && Hero.Entity.X == 226 && Hero.Entity.Y == 233)
            {
                Random r = new Random();
                int up = r.Next(1, 3);
                Hero.Entity.BombTick += up;
            }
            #endregion
            Hero.SendScreen(Packet, true);
            Hero.Entity.Move(Packet.Direction);
            Hero.Screen.Reload(false, null);
            if (Hero.Attacking)
                Hero.Attacking = false;
        }
PlantTheBomb
Code:
    public class PTB
    {
        public static bool PTT = false;
        public static bool PTBs = false;
        public static bool TheBombIsTaken = false;
        public static void PTBStart()
        {
            foreach (GameClient Char in Kernel.GamePool.Values)
            {
                Message.Send(Char, "Plant The Bomb have started, please sign up. You have 1minute!!", MessagePacket.Teal, MessagePacket.Center);
            }
            PTT = true;
            PTBs = true;
        }
        public static void PTBGO()
        {
            PTBs = false;
            foreach (GameClient Char in Kernel.GamePool.Values)
            {
                Message.Send(Char, "PLANT THE BOMB!!!!!!!!!!!!!!!!!!", MessagePacket.Teal, MessagePacket.Center);
                if (Char.Entity.PTBBlack == true)
                {
                    Char.Teleport(1037, 392, 280);
                }
                if (Char.Entity.PTBWhite == true)
                {
                    Char.Teleport(1037, 232, 236);
                }
            }
        }
        public static void PTBEND()
        {
            ActionTimer.TournyOn = false;
            PTT = false;
            PTBs = false;
            foreach (GameClient Char in Kernel.GamePool.Values)
            {
                Message.Send(Char, "Plant The Bomb Have AutoEnded. If the bomb wasn't planted, White wins!", MessagePacket.Teal, MessagePacket.Center);
                if (Char.Entity.MapID == 1037)
                {
                    Char.Teleport(1002, 400, 400);
                }
                if (Char.Entity.PTBWhite == true)
                {
                    //Reward
                    Char.Nobility.Donation += 50;
                }
                PTBs = false;
                TheBombIsTaken = false;
                Char.Entity.PTBBlack = false;
                Char.Entity.PTBWhite = false;
                Char.Entity.GotBomb = false;
                Char.Entity.Garment = false;
                Char.Entity.Signed = false;
                Char.Entity.BombTick = 0;
            }
        }
    }
This is from the Fallenheroes source v5071. Never finished it. You should be able to convert it, else just don't use it.
Syst3m_W1z4rd is offline  
Thanks
1 User
Old 02/22/2011, 13:12   #4
 
elite*gold: 0
Join Date: Jan 2011
Posts: 3
Received Thanks: 0
Thanks
Jiraiya-san is offline  
Old 02/22/2011, 14:53   #5
 
Iron~Man's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 162
Received Thanks: 31
Quote:
Originally Posted by Jiraiya-san View Post
Thanks
I doubt you can convert that.
Iron~Man is offline  
Reply


Similar Threads Similar Threads
CTF-Capture the Flag,
03/11/2010 - CO2 Private Server - 6 Replies
I Want to know what exacly Did CTF Do on LOTF/5017 Back then I remember it been Mensioned alot but never got to do it nor know what exacly did,
[Release] Capture the Flag!!!
05/01/2009 - CO2 PServer Guides & Releases - 4 Replies
#Deleted
Capture the Flag Bug
12/27/2008 - Silkroad Online - 5 Replies
So today I wanted to join at Capture the Flag. When I get started there is a freaking lvl 88 guy in oposite team and I am only lvl 42. He's buffing his team with Swing march 2. Here's Screenshot: http://img508.imageshack.us/img508/930/strangegi8. th.jpg He hit like 44k dmg on me :( Feel free to coment on this!
capture the flag times?
09/07/2008 - Silkroad Online - 7 Replies
i remember a while back i went to this site that had the countdown till the next capture the flag. but i forgot it lol. does anyone have a timer or a site that tells u how long till the next capture the flag?
Capture the Flag ?????
02/29/2008 - Silkroad Online - 7 Replies
Warum kann ich mich net bei event so ok anmelden ??? kann mir jemand helfen auf dem ganzen server alexander hatts gesponnen-.-



All times are GMT +2. The time now is 14:11.


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.