Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 15:51

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

Advertisement



[Guide] make Effects viewable by players

Discussion on [Guide] make Effects viewable by players within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 03/09/2010, 11:03   #16
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Quote:
Originally Posted by ramix View Post
show only the ppl is in the area... i tested and works good for me...
hmmm... how about for flowers and Fireworks effects?
kamote is offline  
Old 03/09/2010, 13:33   #17
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
works too... because when u use the fireworks is only for ppl see in the area...
ramix is offline  
Old 03/09/2010, 13:58   #18
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Quote:
Originally Posted by ramix View Post
works too... because when u use the fireworks is only for ppl see in the area...
i don't think so.. and im quite sure you don't even test your code for flower effect and firework! if you did you will knew that all players in your server would see it...
kamote is offline  
Old 03/09/2010, 14:43   #19
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
nope i tested the fireworks and works 100%...

that is the code i use for fireworks

Quote:
World.Action(this, Packets.ItemPacket(EntityID, 255, 26).Get);
ramix is offline  
Old 03/09/2010, 15:50   #20
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Quote:
Originally Posted by walmartboi View Post
Very nice. Wouldn't of thought of this by myself, so you deserve my special thanks. :P
You coulda just have asked me. =)
~Yuki~ is offline  
Old 03/09/2010, 16:17   #21
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
@pro4never, thx =P lol

/on topic:
If you ask me, the effect code we have already is just fine.
It works right?
Anyways, sometimes you need the statement before the effect - like checking for ping and if the character's ping is high then it won't show for them (how do you do that btw- I just came up with that on the spot).
Why change it?
-NewDawn- is offline  
Old 03/09/2010, 19:15   #22
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by kamote View Post
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:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewestCOServer.PacketHandling
{
   class CoolEffect
    {
        public static void ActiveCool(Main.GameClient MyClient)
        {
            byte counter = 0;

            for (byte i = 1; i < 9; i++)
            {
                if (i == 7) i++;
                Game.Item I = MyClient.MyChar.Equips.Get(i);
                if (I.ID != 0)
                {
                    Game.ItemIDManipulation Q = new CoPinoy.Game.ItemIDManipulation(I.ID);
                    if (Q.Quality == Game.Item.ItemQuality.Super)
                        counter += 1;
                }
            }

            if (MyClient.MyChar.Job >= 100)
                if (counter == 6)
                    counter = 7;
            if (MyClient.MyChar.Job >= 40 && MyClient.MyChar.Job <= 45)
                if (counter == 6)
                {
                    Game.Item I = MyClient.MyChar.Equips.Get(5);
                    I.ID = MyClient.MyChar.Equips.LeftHand.ID;
                    if (I.ID == 0)
                        counter = 7;
                }
            [B]new Thread(delegate()
            {
                ...
            }).Start();   [/B]
        }
    }
}

I can't understand why would you need a new thread to do this thing....
-impulse- is offline  
Old 03/09/2010, 19:18   #23
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -impulse- View Post
I can't understand why would you need a new thread to do this thing....

Exactly what I was thinking.
Arcо is offline  
Old 03/10/2010, 01:57   #24
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Quote:
Originally Posted by -impulse- View Post
I can't understand why would you need a new thread to do this thing....
this thread is not for CoolEffect ... i only added it as an example...

Quote:
Why change it?
with this thread I'm not suggesting nor forcing anyone to change there existing code. I only intend to inform you guys that there is an existing code for it.
kamote is offline  
Reply


Similar Threads Similar Threads
[Request]Visual mods on viewable on self.
01/28/2010 - Mabinogi - 4 Replies
is this possible by dll editing?
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



All times are GMT +2. The time now is 15:51.


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