Register for your free account! | Forgot your password?

You last visited: Today at 10:55

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


[Coding] Cool Effects

Closed Thread
 
Old 08/25/2008, 15:51   #16
 
elite*gold: 0
Join Date: Aug 2006
Posts: 227
Received Thanks: 57
YukiXian: That is so easy if you using you brain u get the solution :P




keving is offline  
Old 08/25/2008, 16:21   #17
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Well First at all, Were to place it ?

And...
Quote:
Originally Posted by keving View Post
YukiXian: That is so easy if you using you brain u get the solution :P

Could you just tell me ?


YukiXian is offline  
Old 08/25/2008, 16:39   #18
 
elite*gold: 0
Join Date: Aug 2006
Posts: 227
Received Thanks: 57
Make an foreach for all Chars and simple send the effect for all to you
If you dont understand dont ask me pls
keving is offline  
Old 08/25/2008, 18:58   #19
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Quote:
Originally Posted by keving View Post
Make an foreach for all Chars and simple send the effect for all to you
If you dont understand dont ask me pls

Ok, But were do I put the Action? In what .cs file?


YukiXian is offline  
Old 08/25/2008, 19:12   #20
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 153
Quote:
Originally Posted by keving View Post
Make an foreach for all Chars and simple send the effect for all to you
If you dont understand dont ask me pls
You'd probably want to do it just on the map or close by you, otherwise if you have a ton of people doing effects, it will lagg people who are tons of maps away, because it is sending the packets for the effects.. but they don't even need to see them.(Correct me If I'm wrong, I don't know much about the coding of Conquer D=<)

Edit: Here's the code ... I shortened it a bit ..

Code:
            if (Action == 230)//Cool Effect
            {
                string TheEquip = Equips[3];

                string[] Splitter = TheEquip.Split('-');
                uint ItemId = uint.Parse(Splitter[0]);

                int ClassType = (int)Job;
                string EfTy = "";

                if (Other.ItemQuality(ItemId) == 9)
                {
                    if (Job >= 10 && Job <= 15)
                    {
                        EfTy = "warrior-s";
                    }
                    if (Job >= 40 && Job <= 45)
                    {
                        EfTy = "archer-s";
                    }
                    if (Job >= 20 &&  Job <= 25)
                    {
                        EfTy = "figher-s";
                    }
                    if (Job >= 132 &&  Job <=145 || Job == 100 || Job == 101)
                    {
                        EfTy = "taoist-s";
                    }
                    foreach (DictionaryEntry DE in World.AllChars)
                    {
                        Character Charr = (Character)DE.Value;
                        if (Charr.LocMap == LocMap)
                        {
                            MyClient.SendPacket(General.MyPackets.String(UID, 10, EfTy));
                        }
                    }
                    Action = 100;
                }
            }
Probably something a tad bit wrong with that. Anyone can correct me.. Don't have a server to test on, and too lazy to set up one to test it out right now.
tao4229 is offline  
Old 08/26/2008, 07:11   #21
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
Updated
kinshi88 is offline  
Old 08/26/2008, 09:23   #22
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
it works?
alexbigfoot is offline  
Old 08/26/2008, 09:27   #23
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
Simple efects dont work.
alexbigfoot is offline  
Old 08/26/2008, 10:00   #24
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 908
This isn't a release...
kinshi88 is offline  
Old 08/26/2008, 13:25   #25
 
elite*gold: 0
Join Date: Jun 2007
Posts: 323
Received Thanks: 30
You mixed up the warrior effect with the trojan lol
Zanzibar is offline  
Old 08/26/2008, 14:33   #26
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
lolz...he/her (tell me if u read this topic) didnt mixed them :P just forgot to change //warrior effect and thats all
alexbigfoot is offline  
Old 08/26/2008, 14:34   #27
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
and FullSuper() wont work fine...try this one:
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;
                }
            }
        }
alexbigfoot is offline  
Old 08/26/2008, 16:12   #28
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 153
Quote:
Originally Posted by alexbigfoot View Post
and FullSuper() wont work fine...try this one:
Code:
        public [U]bool[/U] 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)
                {
                    [U]return [/U] true;
                }
            }
        }
Why would you do it like that?... You make it like this.... (Editted up there) Then in your cool effect, you make a Bool FullSup = FullSuper(); and if you have full super it will return true and you can go from there.
tao4229 is offline  
Old 08/26/2008, 22:21   #29
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
well...if u really wanna know without my add without full super nothing is going to happen
alexbigfoot is offline  
Old 08/27/2008, 00:11   #30
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 153
Quote:
Originally Posted by alexbigfoot View Post
well...if u really wanna know without my add without full super nothing is going to happen
Im just saying, the way I did it makes a lot more sense.. How would you use a void to check if they have supers..?


tao4229 is offline  
Closed Thread



« How I Can Fixed It | andyd123 So Angry »

Similar Threads
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)
[HELLP] anyone can give me cool code(cool off super or full super only)5165
01/22/2010 - CO2 PServer - Discussions / Questions - 6 Replies
I really need it!5165:confused::confused::confused:
Release: Cool effects.Everyone see them.
05/06/2009 - CO2 PServer Guides & Releases - 34 Replies
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 public bool AllSuper = false; in the "void TimerElapsed(object source, ElapsedEventArgs e)" you should find something like if (Action == 250)
Taoist Cool Move Effects
10/20/2006 - CO2 Main - Discussions / Questions - 27 Replies
open folder conquer/c3/effects then paste overwrite



All times are GMT +1. The time now is 10:55.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.