Register for your free account! | Forgot your password?

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

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

Advertisement



how to make people see effects

Discussion on how to make people see effects within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2010
Posts: 28
Received Thanks: 4
how to make people see effects

I made this command:

Code:
if (Cmd[0] == "/seffect")
                        {
                                GC.AddSend(Packets.String(GC.MyChar.EntityID, 10, Cmd[1]));
                        }
But other people can't see the effects when I send them off.

How can I do this?
tomtucker is offline  
Old 10/08/2010, 00:22   #2
 
elite*gold: 0
Join Date: Jun 2010
Posts: 50
Received Thanks: 10
dont know about this as im still very new to coding but mite help you on the right path

Code:
if (Cmd[0] == "/seffect")
{
foreach (DictionaryEntry DE in Game.World.H_Chars)
{
Game.Character Chaar = (Game.Character)DE.Value;
if (Chaar.Name != GC.MyChar.Name)
{
Chaar.MyClient.AddSend(Packets.String(GC.MyChar.EntityID, 10, Cmd[1]));
}
}
GC.MyChar.MyClient.AddSend(Packets.String(GC.MyChar.EntityID, 10, Cmd[1]));
}
if its no help i think this has been asked befor try search mite find how in that..
Macnoo is offline  
Thanks
1 User
Old 10/08/2010, 01:47   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
You don't need that complecated a function. You need to send to all locally though (do a foreach, check dist to where you are and then send)
pro4never is offline  
Thanks
1 User
Old 10/08/2010, 02:08   #4
 
elite*gold: 0
Join Date: Oct 2010
Posts: 28
Received Thanks: 4
I got it already. Thanks though.
tomtucker is offline  
Old 10/08/2010, 02:39   #5
 
elite*gold: 0
Join Date: Jun 2010
Posts: 50
Received Thanks: 10
Quote:
Originally Posted by pro4never View Post
You don't need that complecated a function. You need to send to all locally though (do a foreach, check dist to where you are and then send)
pro4 Thanks

so you mean

Code:
if (Cmd[0]) 
{
foreach (Player)
{
if (check loc for within range)
send (Cmd[1])
}
}
@tomtucker
Macnoo is offline  
Old 10/08/2010, 03:54   #6
 
elite*gold: 0
Join Date: Oct 2010
Posts: 28
Received Thanks: 4
sorry i thought i pressed thanks but it didnt work the first time, i pressed it
tomtucker is offline  
Old 10/09/2010, 01:28   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by tomtucker View Post
#reported
Spam
Your post itself is as much spam as his was

Anywho the source has this in it, learn to use it.
Code:
        public static bool InBox(double x1, double y1, double x2, double y2, byte Range)
        {
            return (Math.Max(Math.Abs(x1 - x2), Math.Abs(y1 - y2)) <= Range);
        }
Arcо is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Guide] make Effects viewable by players
03/10/2010 - CO2 PServer Guides & Releases - 23 Replies
I feel so darn` to found out this late... in Character.cs there is a pre-made void/method called SendScreen() which has a code that would send packets to any nearby players from the executor player. With this we may able now to use SendScreen instead of using AddSend method to any Effect code that we want... example in my previous CoolEffect UPDATE I used to have this code: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace...
How to make effects show again?
09/20/2008 - CO2 Private Server - 0 Replies
hi, can soemone please tell me how to make my effects in CO show again? my ss skills and cyclone skills and phoenix, dragon gem effect etc
can u make the king,prince,duke effects go away
03/31/2008 - Conquer Online 2 - 2 Replies
tittle says all I run dial up :D so i was wondering is i can take it out somehow cause it really is laggy in GW when alot of them are dukes and others, and also sdg effect pretty much everything cept for the fb/ss effect and the dmg number
What I Did To Make People Red
12/21/2007 - CO2 Guides & Templates - 1 Replies
I want delete this thread ..
How can I make people invisible?
04/06/2007 - Conquer Online 2 - 0 Replies
http://www.elitepvpers.com/forum/index.php?...f=85& amp;t=10994&s= How do I make People invisible, and the monsters name invisible?



All times are GMT +1. The time now is 07:45.


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.