Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP]Drop effect for + items/dbs/meteors

Discussion on [HELP]Drop effect for + items/dbs/meteors within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2022
Posts: 4
Received Thanks: 0
[HELP]Drop effect for + items/dbs/meteors

Hello. Can someone tell me please how can I make the effect to be seen ONLY for the character that found the item? At the moment, every character that`s in the map can see the effect if someone finds something. Source 5065.
Thank you!

ushort X = 0;
ushort Y = 0;
X = DI2.Loc.X;
Y = DI2.Loc.Y;
var DI = new Game.MapEffect();
DI.DropTime = DateTime.Now;
DI.LastDrop = DateTime.Now;
DI.Loc = new Game.Location();
DI.Loc.Map = Char.Loc.Map;
DI.Info = new Game.MEffect();
DI.Info.ID = 17;
DI.UID = (uint)Program.Rnd.Next(900000, 999999);
DI.Info.UID = DI.UID;
DI.Loc.X = X;
DI.Loc.Y = Y;
DI.Drop();
DropsEffects.Add(DI.UID, DI);
Vortex87 is offline  
Old 07/12/2022, 22:25   #2
 
elite*gold: 0
Join Date: Jan 2013
Posts: 89
Received Thanks: 27
I don't know what source you're using but you need to look at the function which is broadcasting the packet. You should have one which only sends it to the player, one to broadcast it to the area at x y, one to broadcast it to the map, and one to broadcast to all players. Pick the appropriate one.

Also you shouldn't generate a random number for the trap in-case you want to delete it - you need to actually track that unique id in your DI.UID field.
thisismyaccountokay is offline  
Old 07/14/2022, 19:17   #3
 
elite*gold: 0
Join Date: Jul 2022
Posts: 4
Received Thanks: 0
Tyvm !
Vortex87 is offline  
Reply


Similar Threads Similar Threads
DragonBall-Co V5517 Drop DB-Meteors Last Class Monk
07/23/2020 - CO2 PServer Archive - 5 Replies
DragonBall-CoV5517 Opened 27/6/2020 Stones prices *10. Drop 1-5 CPs.
T>Items/DBS on Royalty for Items/DBS on Storm
09/02/2011 - Conquer Online 2 Trading - 2 Replies
del
Wtb meteors,dbs,millions,account in lion server!!(wild kingdom)
04/12/2011 - Conquer Online 2 Trading - 0 Replies
Im paying by paypal tell me what you got and ur contacts :pimp:



All times are GMT +1. The time now is 01:20.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.