Register for your free account! | Forgot your password?

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

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

Advertisement



Help on remove floor effect

Discussion on Help on remove floor effect within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Help on remove floor effect

Well guys! I need some help here... i try to remove a floor effect from screen... but i got some problens... It's not cooded to remove a effect from a screen, just remove itens... I want to know if it's possible someone post an example for me to follow removing floor effect ...
zakkwilde_17 is offline  
Old 05/24/2013, 22:37   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
What do you mean by floor effects? If you're sending an effect to an X/Y on the ground then that effect has to wear off as far as I'm aware. That's why you only send effects that should either be.

A: Permanent
B: Do not last longer then they are needed


Anything that does not fit that criteria should not be sent as a floor effect and should instead be handled some other way.

Think of it like casting a Spell on an X/Y coord then asking how to cancel out the spell effect before it's finished displaying... it's just not something the client was designed to do.
pro4never is offline  
Old 05/25/2013, 00:06   #3
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
A workaround (which I don't completely support but will work) would be adding the effect to something with an id. Any entity that has an identity in the game can be removed from the map at any time (or at least moved). The way the client wants you to do it is make a new entry in the effects file and change the length of time it will display for.
Spirited is offline  
Old 05/25/2013, 01:02   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
That being said... i cannot think of a single example where a ground effect used properly would need to be removed early.

use traps if you want something that displays and is removed early imo.
pro4never is offline  
Old 05/25/2013, 01:50   #5
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Quote:
Originally Posted by pro4never View Post
That being said... i cannot think of a single example where a ground effect used properly would need to be removed early.

use traps if you want something that displays and is removed early imo.
This is an spell effecto, from DaggerStorm spell. Is a circle in that area can reach monsters and players during a given time. The effect is utilized by the method "floorItem" with a subtype 11 (for effect on ground). Is the right way to do a spell... Like this:

Code:
                                                Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
                                                floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
                                                floorItem.ItemID = 48;//ID from MapMagicItem.ini
                                                floorItem.MapID = attacker.MapID;
                                                floorItem.MapObjType = Game.MapObjectType.Item;
                                                floorItem.X = X;
                                                floorItem.Y = Y;
                                                floorItem.Owner = attacker.Owner;
                                                floorItem.Type = Network.GamePackets.FloorItem.Effect;//Subtype 11
                                                floorItem.OnFloor = Time32.Now;
                                                floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
                                                while (Map.Npcs.ContainsKey(floorItem.UID))
                                                    floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
                                                Map.AddFloorItem(floorItem);
                                                attacker.Owner.SendScreenSpawn(floorItem, true);

and to it on spell:


But the method of removing items from the screen, is not treated for subtype 11

Code:
                            if (obj.MapObjType == MapObjectType.Item)
                            {
                                Network.GamePackets.FloorItem item = obj as Network.GamePackets.FloorItem;
                                if (item.Type != Network.GamePackets.FloorItem.Effect)
                                {
                                    if (Time32.Now > item.OnFloor.AddSeconds(ServerBase.Constants.FloorItemSeconds))
                                    {
                                        item.Type = Network.GamePackets.FloorItem.Remove;
                                        foreach (Interfaces.IMapObject _obj in Objects)
                                        {
                                            if (_obj != null)
                                            {
                                                if (_obj.MapObjType == MapObjectType.Player)
                                                {
                                                    (_obj as Entity).Owner.Send(item);
                                                }
                                            }
                                        }
                                        Owner.Map.Floor[item.X, item.Y, MapObjectType.Item, null] = true;
                                        Remove(obj);
                                    }
                                }
                                else
                                {
                                    // Console.WriteLine("zaza");
                                    item.Type = Network.GamePackets.FloorItem.Effect;
                                    foreach (Interfaces.IMapObject _obj in Objects)
                                    {
                                        if (_obj != null)
                                        {
                                            if (_obj.MapObjType == MapObjectType.Player)
                                            {
                                                (_obj as Entity).Owner.Send(item);
                                            }
                                        }
                                    }
                                }
                            }
Any idea?!
zakkwilde_17 is offline  
Old 05/27/2013, 01:22   #6
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
UP
zakkwilde_17 is offline  
Old 05/29/2013, 20:45   #7
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
up
zakkwilde_17 is offline  
Old 05/30/2013, 00:54   #8
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
you are doing it wrong!

AddEffect = 0xA,
RemoveEffect = 0xC,

you are adding the effect with the wrong subtype idk how it even works LOL!
Mr_PoP is offline  
Thanks
1 User
Old 05/31/2013, 01:00   #9
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Quote:
Originally Posted by Mr_PoP View Post
you are doing it wrong!

AddEffect = 0xA,
RemoveEffect = 0xC,

you are adding the effect with the wrong subtype idk how it even works LOL!
Hm... I saw this subtype 11 in some topic here in the forum. Who commented this subtype was the Fang... But NVM its done now. Thanks sir... now i got a full work DaggerStorm
zakkwilde_17 is offline  
Reply


Similar Threads Similar Threads
How Do I remove SDG EFFECT?
05/05/2009 - CO2 Weapon, Armor, Effects & Interface edits - 7 Replies
I would like to have my SDG effect removed because it causes lag when i ss...so i want to remove it completely without having to use Cotobo or all those type of hacks!!! Anyone?
Remove gold from the floor?
07/03/2008 - Conquer Online 2 - 4 Replies
hi guys ive searched for the effect removing tools and they are good but is there any tools that can remove gold on the floor completely?
How Do I remove SDG effect?
01/15/2008 - Conquer Online 2 - 2 Replies
I would like to remove the sdg effect to cause no lag...how can I, without using programs like cotobo,etc
remove effecT
05/03/2007 - CO2 Exploits, Hacks & Tools - 3 Replies
Hi All .. maybe somone can help me im need File to Remover alllllll Effect...



All times are GMT +1. The time now is 02:14.


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.