Register for your free account! | Forgot your password?

You last visited: Today at 20:52

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

Advertisement



[Release] CoolEffects Update...

Discussion on [Release] CoolEffects Update... within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
[Release] CoolEffects Update...

this will make the effects viewable by nearby players...

..just change your CoolEffect.cs with this one

All credits goes to glover and Korvacs...

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;
                }
            new Thread(delegate()
            {
                foreach (Game.Character CC in Game.World.H_Chars.Values)
                {
                    if (CC.Loc.Map == MyClient.MyChar.Loc.Map && MyMath.InBox(MyClient.MyChar.Loc.X, MyClient.MyChar.Loc.Y, CC.Loc.X, CC.Loc.Y, 100))
                    {
                        if (counter == 7)
                        {
                            if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior"));
                            else if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "fighter"));
                            else if (MyClient.MyChar.Job >= 100)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist"));
                            else if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer"));
                            else if (MyClient.MyChar.Job >= 50 && MyClient.MyChar.Job <= 55)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "Ninja120"));
                        }
                        else
                        {
                            if (MyClient.MyChar.Job >= 10 && MyClient.MyChar.Job <= 15)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "warrior-s"));
                            else if (MyClient.MyChar.Job >= 20 && MyClient.MyChar.Job <= 25)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "fighter-s"));
                            else if (MyClient.MyChar.Job >= 100)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "taoist-s"));
                            else if (MyClient.MyChar.Job >= 39 && MyClient.MyChar.Job <= 46)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "archer-s"));
                            else if (MyClient.MyChar.Job >= 50 && MyClient.MyChar.Job <= 55)
                                CC.MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "Ninja120"));
                        }
                    }
                    MyClient.MyChar.Action = 100;
                }
            }).Start();   
        }
    }
}
kamote is offline  
Thanks
7 Users
Old 03/01/2010, 10:36   #2
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
good work

but mine is more simple with that
ramix is offline  
Old 03/01/2010, 10:47   #3
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 91
Quote:
Originally Posted by ramix View Post
good work

but mine is more simple with that
would you mind sharing it?
kamote is offline  
Old 03/01/2010, 15:23   #4
 
killersub's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
pardon my newbie error XD...

I get this error

Quote:
The type or namespace 'CoPinoy' could not be found(are you missing an assembly or reference?)
btw nice job
killersub is offline  
Old 03/01/2010, 16:30   #5

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
Quote:
Originally Posted by killersub View Post
pardon my newbie error XD...

I get this error



btw nice job
Not sure but I think that it should be called NewestCoServer
Kiyono is offline  
Old 03/01/2010, 16:31   #6
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
Quote:
Originally Posted by kamote View Post
would you mind sharing it?
this is my code is simple and works for me you release a good code

Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NewestCOServer.Game;

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

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

            if (GC.MyChar.Job >= 100)
                if (counter == 6)
                    counter = 7;
            if (GC.MyChar.Job >= 40 && GC.MyChar.Job <= 45)
                if (counter == 6)
                {
                    Game.Item I = GC.MyChar.Equips.Get(5);
                    I.ID = GC.MyChar.Equips.LeftHand.ID;
                    if (I.ID == 0)
                        counter = 7;
                }
            if (counter == 7)
            {
                if (GC.MyChar.Job >= 10 && GC.MyChar.Job <= 15)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "warrior").Get);
                else if (GC.MyChar.Job >= 20 && GC.MyChar.Job <= 25)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "fighter").Get);
                else if (GC.MyChar.Job >= 100)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "taoist").Get);
                else if (GC.MyChar.Job >= 39 && GC.MyChar.Job <= 46)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "archer").Get);
                else if (GC.MyChar.Job >= 50 && GC.MyChar.Job <= 55)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "Ninja120").Get);
            }
            else
            {
                if (GC.MyChar.Job >= 10 && GC.MyChar.Job <= 15)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "warrior-s").Get);
                else if (GC.MyChar.Job >= 20 && GC.MyChar.Job <= 25)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "fighter-s").Get);
                else if (GC.MyChar.Job >= 100)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "taoist-s").Get);
                else if (GC.MyChar.Job >= 39 && GC.MyChar.Job <= 46)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "archer-s").Get);
                if (GC.MyChar.Job >= 50 && GC.MyChar.Job <= 55)
                    Game.World.Action(GC.MyChar, Packets.String(GC.MyChar.EntityID, 10, "Ninja1206").Get);
            }
            GC.MyChar.Action = 100;

        }
    }
}
ramix is offline  
Thanks
2 Users
Old 03/01/2010, 16:42   #7
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Nice Job!
Decker_ is offline  
Old 03/02/2010, 02:15   #8
 
WHITELIONX's Avatar
 
elite*gold: 0
Join Date: Apr 2006
Posts: 532
Received Thanks: 66
new Thread(delegate() <<<<----causes me problems >.<
WHITELIONX is offline  
Old 03/02/2010, 02:16   #9
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Nice job!
Arcо is offline  
Old 03/02/2010, 02:29   #10
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Quote:
Originally Posted by .Arco View Post
Nice job!
Really again?
Decker_ is offline  
Old 03/02/2010, 02:56   #11
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
I don't even have a CoolEffect.cs ...
where do I make it? (Which folder i mean. lol)


btw- nice job if it works =P
-NewDawn- is offline  
Old 03/02/2010, 02:56   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by -NewDawn- View Post
I don't even have a CoolEffect.cs ...
where do I make it? (Which folder i mean. lol)
Right click the features folder and add class.
Arcо is offline  
Old 03/02/2010, 03:25   #13
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by .Arco View Post
Right click the features folder and add class.
Doesn't work for me. This is the code I have that it has a problem with...
"new Thread(delegate()"

It says there is no reference and when I use "using System.Threading;" it still doesn't work. =\
-NewDawn- is offline  
Old 03/02/2010, 08:07   #14
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
you can use mine is simple and works perfertly
ramix is offline  
Old 03/02/2010, 09:03   #15
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by ramix View Post
you can use mine is simple and works perfertly
I tried yours first. lol, didn't work for me.
Are you sure it goes in the Features folder Arco?
-NewDawn- is offline  
Reply


Similar Threads Similar Threads
[Release]Hochzeits Q update
09/10/2010 - Metin2 PServer Guides & Strategies - 46 Replies
so da ich gerne einen weiblichen char zocke ... meine frau aber auch logischerweise hab ich mir überlegt die geschlechter prüfung rauszunehmen somit ist es nun möglich das 2 frauen oder männer heiraten !!! habs eben getestet http://kamatya.bplaced.net/marriage_manage.quest
[Fun Release] C&F Size Update
05/09/2010 - S4 League Hacks, Bots, Cheats & Exploits - 43 Replies
The update!, All in one! :awesome: Failplaya, you're doing it wrong... -> Virus Check! <- Att. ZeroTheAprendice
[Release]Updated CRC for new update (5.2.7)
12/01/2009 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 5 Replies
HEY GUYS HERE IS NEW UPDATED CRC FOR NEW UPDATE ENJOY HAKING :) RapidShare: 1-CLICK Web hosting - Easy Filehosting
[RELEASE] mp hack (no need to update)
11/17/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 7 Replies
same procedure of placing .kom files if you have problem on how to use this... Go to the tut.... it took me a month to modify this.... FAQ: 1. does this work even after every patch? YES
[Update/Release] PazeCO v2..
10/25/2009 - CO2 PServer Guides & Releases - 19 Replies
Guys, i found my missing Latest update of my PazeCO v2...as i said, my last post about pazeCO wasn't my latest....checked this out... Sorry for spamming....but am i spamming? hehehe BTW here DL it... Good luck... Remember Please: Like: Press +Thanks



All times are GMT +2. The time now is 20:52.


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.