|
You last visited: Today at 03:21
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.
10/16/2013, 17:08
|
#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.
|
|
|
10/16/2013, 21:09
|
#2
|
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.
|
|
|
10/16/2013, 21:38
|
#3
|
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
|
Quote:
Originally Posted by Fang
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.
|
|
|
10/16/2013, 21:41
|
#4
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
|
Quote:
Originally Posted by Y u k i
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.
|
|
|
10/16/2013, 21:43
|
#5
|
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
|
Quote:
Originally Posted by Fang
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
|
|
|
10/16/2013, 21:49
|
#6
|
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);
}
}
}
|
|
|
10/16/2013, 22:24
|
#7
|
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
|
Quote:
Originally Posted by CptSky
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 >.<
|
|
|
10/16/2013, 23:23
|
#8
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
Am I the only one laughing at Brain.Sleep()?
|
|
|
10/16/2013, 23:34
|
#9
|
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
|
Quote:
Originally Posted by Super Aids
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
|
|
|
10/17/2013, 03:36
|
#10
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
|
Quote:
Originally Posted by Super Aids
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...
|
|
|
10/17/2013, 03:38
|
#11
|
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
|
|
|
10/17/2013, 13:12
|
#12
|
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!
|
|
|
10/17/2013, 13:44
|
#13
|
elite*gold: 0
Join Date: May 2011
Posts: 648
Received Thanks: 413
|
Quote:
Originally Posted by Mr_PoP
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!
|
|
|
10/17/2013, 15:12
|
#14
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,443
Received Thanks: 1,175
|
Quote:
Originally Posted by Y u k i
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.
|
|
|
10/17/2013, 22:18
|
#15
|
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
|
Quote:
Originally Posted by Y u k i
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
|
|
|
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.
|
|