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 16:21

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

Advertisement



Release: Cool effects.Everyone see them.

Discussion on Release: Cool effects.Everyone see them. within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
Release: Cool effects.Everyone see them.

Well...because a lot of ppl...was waiting for it..and because i stopped coding....im gonna post it.
here it comes:
In character.cs at line 100 add
Code:
public bool AllSuper = false;
in the "void TimerElapsed(object source, ElapsedEventArgs e)" you should find something like
Code:
            if (Action == 250)
after it add
Code:
if (Action == 100)
                if (Stamina < 100)
                {
                    Stamina += 5;
                    if (Stamina > 100)
                        Stamina = 100;
                    MyClient.SendPacket(General.MyPackets.Vital(UID, 9, Stamina));
                }
            if (Action == 230)
            {
                if (Equips[3] != null)
                {
                    FullSuper();
                    string TheEquip = Equips[3];
                    string[] Splitter = TheEquip.Split('-');
                    uint ItemId = uint.Parse(Splitter[0]);
                    if (Other.ItemQuality(ItemId) == 9 && (Equips[1] != null || Equips[4] == null) && (Equips[2] != null || Equips[2] == null) && (Equips[4] != null || Equips[4] == null) && (Equips[8] != null || Equips[8] == null) && (Equips[6] != null || Equips[6] == null))
                    {
                        if (Job <= 16 && Job >= 9)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s"));
                            Action = 100;
                        }
                        if (Job <= 26 && Job >= 19)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s"));
                            Action = 100;

                        }
                        if (Job <= 46 && Job >= 39)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s"));
                            Action = 100;
                        }
                        if (Job <= 146 && Job >= 100)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
                            Action = 100;
                        }
                    }
                    if (AllSuper == true && Other.ItemQuality(ItemId) == 9 && Equips[1] != null && Equips[2] != null && Equips[3] != null && Equips[4] != null && Equips[8] != null && Equips[6] != null)
                    {
                        if (Job <= 16 && Job >= 9)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior"));
                            Action = 100;
                        }
                        if (Job <= 26 && Job >= 19)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter"));
                            Action = 100;

                        }
                        if (Job <= 46 && Job >= 39)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer"));
                            Action = 100;
                        }
                        if (Job <= 146 && Job >= 100)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist"));
                            Action = 100;
                        }
                    }
                }
            }
search for public Character()
before it add
Code:
public void FullSuper()
        {
            if (Equips[1] != null && Equips[2] != null && Equips[3] != null && Equips[4] != null && Equips[8] != null && Equips[6] != null)
            {
                string TheEquip1 = Equips[1];
                string TheEquip2 = Equips[2];
                string TheEquip3 = Equips[3];
                string TheEquip4 = Equips[4];
                string TheEquip8 = Equips[8];
                string TheEquip6 = Equips[6];

                string[] Splitter1 = TheEquip1.Split('-');
                uint ItemId1 = uint.Parse(Splitter1[0]);

                string[] Splitter2 = TheEquip2.Split('-');
                uint ItemId2 = uint.Parse(Splitter2[0]);

                string[] Splitter3 = TheEquip3.Split('-');
                uint ItemId3 = uint.Parse(Splitter3[0]);

                string[] Splitter4 = TheEquip4.Split('-');
                uint ItemId4 = uint.Parse(Splitter4[0]);

                string[] Splitter8 = TheEquip8.Split('-');
                uint ItemId8 = uint.Parse(Splitter8[0]);

                string[] Splitter6 = TheEquip6.Split('-');
                uint ItemId6 = uint.Parse(Splitter6[0]);

                if (Other.ItemQuality(ItemId1) == 9 && Other.ItemQuality(ItemId2) == 9 && Other.ItemQuality(ItemId3) == 9 && Other.ItemQuality(ItemId4) == 9 && Other.ItemQuality(ItemId8) == 9 && Other.ItemQuality(ItemId6) == 9)
                {
                    AllSuper = true;
                }
            }
        }
Thats all...it works awesome...trust me.


Use THANKS BUTTON to thank me....XD
alexbigfoot is offline  
Thanks
55 Users
Old 09/03/2008, 22:57   #2
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
oMgNoWaIzLuLkThNxBaIiRbOrEd -_-
Zanzibar is offline  
Thanks
1 User
Old 09/03/2008, 23:14   #3
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Quote:
Originally Posted by Zanzibar View Post
oMgNoWaIzLuLkThNxBaIiRbOrEd -_-
/accepted i thought so about one year^^
~Yuki~ is offline  
Old 09/03/2008, 23:24   #4
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
@alex Nice work pal...
@Zanzibar Just one LOL! Nothing else
glupkotrup is offline  
Thanks
1 User
Old 09/03/2008, 23:32   #5
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,882
LOL @ the string operations being preformed.
InfamousNoone is offline  
Old 09/03/2008, 23:57   #6
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
Uhh sure.. With the uh.. strcompress..
Zanzibar is offline  
Old 09/04/2008, 16:03   #7
 
elite*gold: 0
Join Date: Nov 2007
Posts: 306
Received Thanks: 75
Quote:
Originally Posted by alexbigfoot View Post
Well...because a lot of ppl...was waiting for it..and because i stopped coding....im gonna post it.
here it comes:
In character.cs at line 100 add
Code:
public bool AllSuper = false;
in the "void TimerElapsed(object source, ElapsedEventArgs e)" you should find something like
Code:
            if (Action == 250)
after it add
Code:
if (Action == 100)
                if (Stamina < 100)
                {
                    Stamina += 5;
                    if (Stamina > 100)
                        Stamina = 100;
                    MyClient.SendPacket(General.MyPackets.Vital(UID, 9, Stamina));
                }
            if (Action == 230)
            {
                if (Equips[3] != null)
                {
                    FullSuper();
                    string TheEquip = Equips[3];
                    string[] Splitter = TheEquip.Split('-');
                    uint ItemId = uint.Parse(Splitter[0]);
                    if (Other.ItemQuality(ItemId) == 9 && (Equips[1] != null || Equips[4] == null) && (Equips[2] != null || Equips[2] == null) && (Equips[4] != null || Equips[4] == null) && (Equips[8] != null || Equips[8] == null) && (Equips[6] != null || Equips[6] == null))
                    {
                        if (Job <= 16 && Job >= 9)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior-s"));
                            Action = 100;
                        }
                        if (Job <= 26 && Job >= 19)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter-s"));
                            Action = 100;

                        }
                        if (Job <= 46 && Job >= 39)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer-s"));
                            Action = 100;
                        }
                        if (Job <= 146 && Job >= 100)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist-s"));
                            Action = 100;
                        }
                    }
                    if (AllSuper == true && Other.ItemQuality(ItemId) == 9 && Equips[1] != null && Equips[2] != null && Equips[3] != null && Equips[4] != null && Equips[8] != null && Equips[6] != null)
                    {
                        if (Job <= 16 && Job >= 9)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "warrior"));
                            Action = 100;
                        }
                        if (Job <= 26 && Job >= 19)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "fighter"));
                            Action = 100;

                        }
                        if (Job <= 46 && Job >= 39)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "archer"));
                            Action = 100;
                        }
                        if (Job <= 146 && Job >= 100)
                        {
                            foreach (DictionaryEntry DE in World.AllChars)
                            {
                                Character Chaar = (Character)DE.Value;
                                if (Chaar.Name != Name)
                                {
                                    Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist"));
                                }
                            }
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, "taoist"));
                            Action = 100;
                        }
                    }
                }
            }
search for public Character()
before it add
Code:
public void FullSuper()
        {
            if (Equips[1] != null && Equips[2] != null && Equips[3] != null && Equips[4] != null && Equips[8] != null && Equips[6] != null)
            {
                string TheEquip1 = Equips[1];
                string TheEquip2 = Equips[2];
                string TheEquip3 = Equips[3];
                string TheEquip4 = Equips[4];
                string TheEquip8 = Equips[8];
                string TheEquip6 = Equips[6];

                string[] Splitter1 = TheEquip1.Split('-');
                uint ItemId1 = uint.Parse(Splitter1[0]);

                string[] Splitter2 = TheEquip2.Split('-');
                uint ItemId2 = uint.Parse(Splitter2[0]);

                string[] Splitter3 = TheEquip3.Split('-');
                uint ItemId3 = uint.Parse(Splitter3[0]);

                string[] Splitter4 = TheEquip4.Split('-');
                uint ItemId4 = uint.Parse(Splitter4[0]);

                string[] Splitter8 = TheEquip8.Split('-');
                uint ItemId8 = uint.Parse(Splitter8[0]);

                string[] Splitter6 = TheEquip6.Split('-');
                uint ItemId6 = uint.Parse(Splitter6[0]);

                if (Other.ItemQuality(ItemId1) == 9 && Other.ItemQuality(ItemId2) == 9 && Other.ItemQuality(ItemId3) == 9 && Other.ItemQuality(ItemId4) == 9 && Other.ItemQuality(ItemId8) == 9 && Other.ItemQuality(ItemId6) == 9)
                {
                    AllSuper = true;
                }
            }
        }
Thats all...it works awesome...trust me.


Use THANKS BUTTON to thank me....XD




Don't mean to impose.. butt... the first part there.. wouldn't it be more efficient to just do:

Code:
string c = null;
if (Action == 100)
                if (Stamina < 100)
                {
                    Stamina += 5;
                    if (Stamina > 100)
                        Stamina = 100;
                    MyClient.SendPacket(General.MyPackets.Vital(UID, 9, Stamina));
                }
            if (Action == 230)
            {
                if (Equips[3] != null)
                {
                    FullSuper();
                    string TheEquip = Equips[3];
                    string[] Splitter = TheEquip.Split('-');
                    uint ItemId = uint.Parse(Splitter[0]);
                    if (Other.ItemQuality(ItemId) == 9 && (Equips[1] != null || Equips[4] == null) && (Equips[2] != null || Equips[2] == null) && (Equips[4] != null || Equips[4] == null) && (Equips[8] != null || Equips[8] == null) && (Equips[6] != null || Equips[6] == null))
                    {
                        if (Job <= 16 && Job >= 9)
							c = "warrior-s";
                        if (Job <= 26 && Job >= 19)
							c = "fighter-s"
                        if (Job <= 46 && Job >= 39)
							c = "archer-s"
                        if (Job <= 146 && Job >= 100)
							c = "taoist-s"
                    }
                    if (AllSuper == true && Other.ItemQuality(ItemId) == 9 && Equips[1] != null && Equips[2] != null && Equips[3] != null && Equips[4] != null && Equips[8] != null && Equips[6] != null)
                    {
                        if (Job <= 16 && Job >= 9)
							c = "warrior"
                        if (Job <= 26 && Job >= 19)
							c = "fighter"
                        if (Job <= 46 && Job >= 39)
							c = "archer"
                        if (Job <= 146 && Job >= 100)
							c = "taoist"
                    }
					foreach (DictionaryEntry DE in World.AllChars)
					{
						Character Chaar = (Character)DE.Value;
						if (Chaar.Name != Name)
						{
							Chaar.MyClient.SendPacket(General.MyPackets.String(UID, 10, c));
						}
					}
					MyClient.SendPacket(General.MyPackets.String(UID, 10, c));
					Action = 100;
                }
            }

To me, this seems smarter, faster, more efficient, and other positive adjectives... just a thought, I see a lot of code in a lot of sources that could be rewritten to run better\faster\smoother.. But that trouble can be prevented by writing it in this style from the start... Hope ive spread some enlightenment..

-Rech
Rechocto is offline  
Thanks
4 Users
Old 09/04/2008, 16:42   #8
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
thanx
alexbigfoot is offline  
Old 09/04/2008, 17:43   #9
 
MushyPeas's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 800
Received Thanks: 89
Quote:
Originally Posted by Rechocto View Post
To me, this seems smarter, faster, more efficient, and other positive adjectives... just a thought, I see a lot of code in a lot of sources that could be rewritten to run betterfastersmoother.. But that trouble can be prevented by writing it in this style from the start... Hope ive spread some enlightenment..

-Rech
On this forum.. I wouldn't get my hopes up
MushyPeas is offline  
Old 09/04/2008, 20:58   #10
 
elite*gold: 0
Join Date: Jan 2008
Posts: 53
Received Thanks: 16
Nice guide, but I took some time to improve it... honestly it's written poorly.

I don't normally give away code... but I'm bored, and I needed to code it for our server anyway... enjoy.

I didn't code it for 2 handers (Can't do everything for you hehe). I'll leave that up to you.

In the LOTF src, there are about 5000 places you can put it... but personally I put it in the Client.cs after this...

Code:
                          case 81:
                                    {
                                        MyChar.Ready = false;
                                        MyChar.Action = Data[12];
                                        World.Instance.PlayerMoves(MyChar, Data);



Code:
            if (MyChar.Action == 230 && MyChar.Equips[3] != null)
            {
                byte TotalQ = 0;
                for (byte x = 1; x < 9; x++)
                {
                    if (MyChar.Equips[x] != null)
                        if (((x > 0 && x < 7) || x == 8) && MyChar.Equips[x][5] == '9')
                            TotalQ++;
                }
                if (MyChar.Equips[3][5] == '9')
                {
                    if (TotalQ == 7)
                    {
                        if (MyChar.Job >= 10 && MyChar.Job <= 15)
                            World.Instance.ShowEffectAll(MyChar, MyChar.UID, "warrior");
                        if (MyChar.Job >= 20 && MyChar.Job <= 25)
                            World.Instance.ShowEffectAll(MyChar, MyChar.UID, "fighter");
                    }
                    else if (TotalQ < 7 && MyChar.Job >= 10 && MyChar.Job <= 25)
                    {
                        if (MyChar.Job >= 10 && MyChar.Job <= 15)
                            World.Instance.ShowEffectAll(MyChar, MyChar.UID, "warrior-s");
                        if (MyChar.Job >= 20 && MyChar.Job <= 25)
                            World.Instance.ShowEffectAll(MyChar, MyChar.UID, "fighter-s");
                    }
                    else if (TotalQ == 6)
                    {
                        if (MyChar.Job >= 100)
                            World.Instance.ShowEffectAll(MyChar, MyChar.UID, "taoist");
                        if (MyChar.Job >= 40 && MyChar.Job <= 45)
                            World.Instance.ShowEffectAll(MyChar, MyChar.UID, "archer");
                    }
                    else if (TotalQ < 6)
                    {
                        if (MyChar.Job >= 100)
                            World.Instance.ShowEffectAll(MyChar, MyChar.UID, "taoist-s");
                        if (MyChar.Job >= 40 && MyChar.Job <= 45)
                            World.Instance.ShowEffectAll(MyChar, MyChar.UID, "archer-s");
                    }
                }

            }
For your code... You likely don't have Instances or even a ShowEffectAll function, so you'll simply need to replace these calls with the code from above..

After looking at the code from above... I improved it a little...

If you can't make it work, don't ask me for help... I've provided more then enough example to learn from and if you can't learn I have no interest in speaking with you.

Code:
            foreach (DictionaryEntry DE in World.AllChars)
            {
                Character Charr = (Character)DE.Value;
                if (Charr.MyClient.Online)
                    if (Charr.LocMap == LocMap && MyMath.CanSee(LocX, LocY, Charr.LocX, Charr.LocY))
                        Charr.MyClient.SendPacket(General.MyPackets.String(UID, 10, "whatever-string-here"));

            }
            MyClient.SendPacket(General.MyPackets.String(UID, 10, "whatever-string-here"));
            Action = 100;
isp is offline  
Thanks
3 Users
Old 09/04/2008, 21:35   #11
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
Quote:
Originally Posted by isp View Post
Nice guide, but I took some time to improve it... honestly it's written poorly.

I don't normally give away code... but I'm bored, and I needed to code it for my server anyway... enjoy.

I didn't code it for 2 handers (Can't do everything for you hehe). I'll leave that up to you.

In the LOTF src, there are about 5000 places you can put it... but personally I put it in the Client.cs after this...

Code:
                          case 81:
                                    {
                                        MyChar.Ready = false;
                                        MyChar.Action = Data[12];
                                        World.Instance.PlayerMoves(MyChar, Data);



Code:
            if (MyChar.Action == 230 && MyChar.Equips[3] != null)
            {
                byte TotalQ = 0;
                for (byte x = 1; x < 9; x++)
                {
                    if (MyChar.Equips[x] != null)
                        if (((x > 0 && x < 7) || x == 8) && MyChar.Equips[x][5] == '9')
                            TotalQ++;
                }

                if (MyChar.Equips[3][5] == '9' && TotalQ < 6)
                {
                    if (MyChar.Job >= 100)
                        World.Instance.ShowEffectAll(MyChar, MyChar.UID, "taoist-s");
                    if (MyChar.Job >= 140 && MyChar.Job <= 145)
                        World.Instance.ShowEffectAll(MyChar, MyChar.UID, "archer-s");
                    if (MyChar.Job >= 10 && MyChar.Job <= 15)
                        World.Instance.ShowEffectAll(MyChar, MyChar.UID, "warrior-s");
                    if (MyChar.Job >= 20 && MyChar.Job <= 25)
                        World.Instance.ShowEffectAll(MyChar, MyChar.UID, "fighter-s");
                }
                if (TotalQ == 6)
                {
                    if (MyChar.Job >= 100)
                        World.Instance.ShowEffectAll(MyChar, MyChar.UID, "taoist");
                    if (MyChar.Job >= 140 && MyChar.Job <= 145)
                        World.Instance.ShowEffectAll(MyChar, MyChar.UID, "archer");
                }
                if (TotalQ == 7)
                {
                    if (MyChar.Job >= 10 && MyChar.Job <= 15)
                        World.Instance.ShowEffectAll(MyChar, MyChar.UID, "warrior");
                    if (MyChar.Job >= 20 && MyChar.Job <= 25)
                        World.Instance.ShowEffectAll(MyChar, MyChar.UID, "fighter");
                }
            }
For your code... You likely don't have Instances or even a ShowEffectAll function, so you'll simply need to replace these calls with the code from above..

After looking at the code from above... I improved it a little...

If you can't make it work, don't ask me for help... I've provided more then enough example to learn from and if you can't learn I have no interest in speaking with you.

Code:
            foreach (DictionaryEntry DE in World.AllChars)
            {
                Character Charr = (Character)DE.Value;
                if (Charr.MyClient.Online)
                    if (Charr.LocMap == LocMap && MyMath.CanSee(LocX, LocY, Charr.LocX, Charr.LocY))
                        Charr.MyClient.SendPacket(General.MyPackets.String(UID, 10, "whatever-string-here"));

            }
            MyClient.SendPacket(General.MyPackets.String(UID, 10, "whatever-string-here"));
            Action = 100;
LOL?1 simple question....ARE YOU IN NUTS?

Can i know what`s the problem if it works?
alexbigfoot is offline  
Old 09/04/2008, 21:37   #12
 
elite*gold: 0
Join Date: Jan 2008
Posts: 53
Received Thanks: 16
Quote:
Originally Posted by alexbigfoot View Post
LOL?1 simple question....ARE YOU IN NUTS?

Can i know what`s the problem if it works?
Sure, it consumes too much memory & cpu cycles and global variables should only be used when absolutely necessary.
isp is offline  
Old 09/04/2008, 22:39   #13
 
taguro's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
Awesome code, thank you, saves me alot of time doing it myself =)
taguro is offline  
Old 09/04/2008, 23:13   #14
 
MushyPeas's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 800
Received Thanks: 89
Quote:
Originally Posted by alexbigfoot View Post
LOL?1 simple question....ARE YOU IN NUTS?

Can i know what`s the problem if it works?
Just because it works doesn't mean it works well, which would obviously be better
MushyPeas is offline  
Old 09/06/2008, 08:25   #15
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
Mabye someone can make this work with Gems ?
$HaDoW is offline  
Reply


Similar Threads Similar Threads
[RELEASE]Garment effects
05/03/2012 - CO2 PServer Guides & Releases - 37 Replies
Okay, i saw post somewere that somebody wanted garment to have effect, so i tought i will find out and release it soo 1. Go to your ini folder and open Action3Deffect.ini 2. Add one line there Quote: 999.100.181.890=w-taoist The 999.100.181.890=w-taoist is what makes ur armor/garment have effect
Better Cool and Super Cool Effects for 5165 source
10/13/2011 - CO2 PServer Guides & Releases - 26 Replies
Hello all. Here is my code for better procedure for Cool Effects for 5165 source. it's work good like 90pct same at global CQ. For perfectly working we need add some checks for all class 1h-2hweapons handled. Open Characters.cs file and find: if (Vigor < MaxVigor) Vigor += 6; if (!GettingLuckyTime)
[Coding] Cool Effects
04/18/2009 - CO2 Private Server - 40 Replies
Completed.
[Release] SuperGem effects.
10/31/2008 - CO2 Private Server - 9 Replies
Okay here you guys go i don't know if you have it but you have it now. In Character.cs search for public void GemEffect() Replace whats there with this -EDIT Not your code, next time give credits atleast. - Hope this helped you people that don't have it. Uhh some times it don't like to work say if u have one equipt on with 2 sdg's some times you have to have maybe 2 or 3 equips with a super gem in it but i has its ups and downs
Taoist Cool Move Effects
10/20/2006 - Conquer Online 2 - 27 Replies
open folder conquer/c3/effects then paste overwrite



All times are GMT +2. The time now is 16:21.


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.