Register for your free account! | Forgot your password?

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

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

Advertisement



[Q] Entity Remove not working.

Discussion on [Q] Entity Remove not working. within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
[Q] Entity Remove not working.



It´s driving me crazy. Everything on the General Data Packet works as it should, so the packet is correct. I also send the remove packet as soon as the mob dies and faded out.



Thats how I try to remove the mob.
Here is the way Fang recommended:


Here´s the packet. Dont mind the useless casting from long to short.

Y u k i is offline  
Old 10/16/2013, 21:09   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
I'm not sure if that's the way I recommended it. You might have read my post about screen systems, but this isn't what I would recommend doing. Anyways, it looks like the fade effect has been properly added, but the entity still remains alive. Make sure your alive method returns false.
Spirited is offline  
Old 10/16/2013, 21:38   #3
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Quote:
Originally Posted by Fang View Post
I'm not sure if that's the way I recommended it. You might have read my post about screen systems, but this isn't what I would recommend doing. Anyways, it looks like the fade effect has been properly added, but the entity still remains alive. Make sure your alive method returns false.
It isnt alive, yes the packet gets sent.
Y u k i is offline  
Old 10/16/2013, 21:41   #4
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
Quote:
Originally Posted by Y u k i View Post
It isnt alive, yes the packet gets sent.
This looks like an older patch... what patch is this? The subtype might be different, depending on what patch it is.
Spirited is offline  
Old 10/16/2013, 21:43   #5
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Quote:
Originally Posted by Fang View Post
This looks like an older patch... what patch is this? The subtype might be different, depending on what patch it is.
5017, as far as i know its 132
Y u k i is offline  
Old 10/16/2013, 21:49   #6


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
It should work... But I remember having the same issue at some point...


Code:
        public void Die(Int32 KillerUID)
        {
            Brain.Sleep();

            LastDieTime = Environment.TickCount;
            LastKillerUID = KillerUID;
            Disappeared = false;

            Timer.Start();

            CurHP = 0;

            Flags = (Int64)Monster.Flag.None;
            AddFlag(Monster.Flag.Die);
            AddFlag(Monster.Flag.Frozen);
            World.BroadcastRoomMsg(this, MsgUserAttrib.Create(this, Flags, MsgUserAttrib.Type.Flags));
        }

        public void Disappear()
        {
            Disappeared = true;
            World.BroadcastRoomMsg(this, MsgAction.Create(this, 0, MsgAction.Action.LeaveMap));

            X = StartX;
            Y = StartY;

            if (RespawnSpeed == -1)
            {
                Timer.Stop();

                Map CMap = World.AllMaps[Map];
                CMap.DelEntity(this);

                lock (World.AllMonsters)
                {
                    if (World.AllMonsters.ContainsKey(UniqId))
                        World.AllMonsters.Remove(UniqId);
                }
            }
        }
CptSky is offline  
Thanks
1 User
Old 10/16/2013, 22:24   #7
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Quote:
Originally Posted by CptSky View Post
It should work... But I remember having the same issue at some point...


Code:
        public void Die(Int32 KillerUID)
        {
            Brain.Sleep();

            LastDieTime = Environment.TickCount;
            LastKillerUID = KillerUID;
            Disappeared = false;

            Timer.Start();

            CurHP = 0;

            Flags = (Int64)Monster.Flag.None;
            AddFlag(Monster.Flag.Die);
            AddFlag(Monster.Flag.Frozen);
            World.BroadcastRoomMsg(this, MsgUserAttrib.Create(this, Flags, MsgUserAttrib.Type.Flags));
        }

        public void Disappear()
        {
            Disappeared = true;
            World.BroadcastRoomMsg(this, MsgAction.Create(this, 0, MsgAction.Action.LeaveMap));

            X = StartX;
            Y = StartY;

            if (RespawnSpeed == -1)
            {
                Timer.Stop();

                Map CMap = World.AllMaps[Map];
                CMap.DelEntity(this);

                lock (World.AllMonsters)
                {
                    if (World.AllMonsters.ContainsKey(UniqId))
                        World.AllMonsters.Remove(UniqId);
                }
            }
        }
hmm sadly it didnt work. I added the flags but nothing changed (besides that they didnt fade anymore)

oh, might be the screen system >.<
Y u k i is offline  
Old 10/16/2013, 23:23   #8
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Am I the only one laughing at Brain.Sleep()?
Super Aids is offline  
Old 10/16/2013, 23:34   #9
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Quote:
Originally Posted by Super Aids View Post
Am I the only one laughing at Brain.Sleep()?
Well it gave me cance... a smile too!

Anyway, it was indeed my screen system. I didnt really remove the entity from the screen... thanks for the help
Y u k i is offline  
Old 10/17/2013, 03:36   #10


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
Quote:
Originally Posted by Super Aids View Post
Am I the only one laughing at Brain.Sleep()?
The state of most people... But I think the naming is fine Just special to read...
CptSky is offline  
Thanks
2 Users
Old 10/17/2013, 03:38   #11
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Yeah I'm sure it's something serious, was just kinda hilarious :3
Super Aids is offline  
Old 10/17/2013, 13:12   #12
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
it's your monster Ids it shouldn't be > 499999 , and it will work fine!
Mr_PoP is offline  
Old 10/17/2013, 13:44   #13
 
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
Quote:
Originally Posted by Mr_PoP View Post
it's your monster Ids it shouldn't be > 499999 , and it will work fine!
No its not. Seriously stay away with your "solutions" if you dont even know what you´re talking about or failed to read everything that contains information. I already stated that the problem was the screen system.

I know this post will look rude, but its the truth. This Thread can be closed, as it is resolved. Thanks for all your help!
Y u k i is offline  
Old 10/17/2013, 15:12   #14


 
CptSky's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
Quote:
Originally Posted by Y u k i View Post
No its not. Seriously stay away with your "solutions" if you dont even know what you´re talking about or failed to read everything that contains information. I already stated that the problem was the screen system.

I know this post will look rude, but its the truth. This Thread can be closed, as it is resolved. Thanks for all your help!
By the way, he's still right with the UID, although it's not the problem.
CptSky is offline  
Old 10/17/2013, 22:18   #15
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by Y u k i View Post
No its not. Seriously stay away with your "solutions" if you dont even know what you´re talking about or failed to read everything that contains information. I already stated that the problem was the screen system.

I know this post will look rude, but its the truth. This Thread can be closed, as it is resolved. Thanks for all your help!
-your question doesn't involve any info that says "your problem is in your screen system " does it?
-also my solution is valid , if you passed the range Id , this prob will happen, if you didn't know that , that doesn't mean am wrong or am saying *****!
-if you already stated that the prob is in your screen system then, what the point of your question?
-about being rude you are , which means you aren't getting any contribution from me anymore
Mr_PoP is offline  
Closed Thread


Similar Threads Similar Threads
[Request Help] Remove mobs / remove eur items / remove npc
02/15/2013 - SRO Private Server - 0 Replies
Iam sure all now saies this guy is mad :D why not remove the db i want to know how i can remove mobs from samrkand and add alex mobs there and remove eur item from npc and drobs and remove some npcs ty guys _________________________ I see that there is too much help here it's my topic no.2 without any answer



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


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.