Register for your free account! | Forgot your password?

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

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

Advertisement



small think in screen.cs

Discussion on small think in screen.cs within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 24
Received Thanks: 1
small think in screen.cs

hello everyone i this code in my source
this code make monster
Disappear..
can anyone help
Code:
        public double interval = 100;
        public System.Timers.Timer MyTimer;
  
        public List<Interfaces.IMapObject> Objects;
        public Client.GameState Owner;

        private Queue<IMapObject> OnAdd;
        private Queue<IMapObject> OnRemove;

        public Screen(Client.GameState client)
        {
            Owner = client;
            Objects = new List<IMapObject>(1000);
            OnAdd = new Queue<IMapObject>(300);
            OnRemove = new Queue<IMapObject>(300);


            MyTimer = new System.Timers.Timer(interval);
            MyTimer.AutoReset = true;

            MyTimer.Elapsed += new System.Timers.ElapsedEventHandler(Sceen_thread);
            MyTimer.Start();
        }

        public void Sceen_thread(object jjjhh, System.Timers.ElapsedEventArgs arg)
        {
            try
            {
                if (Owner.Alive)
                {
                    
                    try
                    {
                        while (OnAdd.Count != 0)
                            Objects.Add(OnAdd.Dequeue());
                        while (OnRemove.Count != 0)
                            Objects.Remove(OnRemove.Dequeue());
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine(e.ToString());
                    }

                    if (Owner.Map.FreezeMonsters)
                        return;
                    for (int c = 0; c < Objects.Count; c++)
                    {
                        if (c >= Objects.Count)
                            break;
                        IMapObject obj = Objects[c];
                        if (obj != null)
                        {
asdalhog is offline  
Old 09/26/2011, 14:28   #2
 
elite*gold: 0
Join Date: Apr 2008
Posts: 18
Received Thanks: 0
i have the same code

but monisters are visable

dont have this problem

so the problem isnt at this code

i think
hatem555 is offline  
Old 09/26/2011, 14:38   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 24
Received Thanks: 1
its Disappear after kill like 300.000 monster
asdalhog is offline  
Reply


Similar Threads Similar Threads
[METIN2.de SCREEN!] IMBA MENTALO lvl 72 + EQ screen tausche alles!
02/04/2011 - Metin2 Trading - 10 Replies
Huhu ich vk oder tausche hier mein imba mentalo lvl 72. Skills: Verwandlung G9 Pferderufen 70% Mg Pferd mit alle fertigkeiten m1 Starker Körper G1 Heftiges Schlagen G1 Stampfer G1 Durchschlag m10 noch 8 fbs G1
Nobility icon (small thing in the top left of the screen)
09/12/2009 - CO2 Private Server - 17 Replies
//



All times are GMT +1. The time now is 03:49.


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.