Register for your free account! | Forgot your password?

You last visited: Today at 23:06

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

Advertisement



[Release]Add/Remove Halos with cmd

Discussion on [Release]Add/Remove Halos with cmd within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
winpro's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 11
Received Thanks: 4
[Release]Add/Remove Halos with cmd

Before I get flamed for releasing something that has already been released please look at the code. I modified it to save the halos with Arco's Halo Save script. This is for 5165 source.

Credits:
Andrew.A
LetterX

Search Chat.cs for:
Code:
                        if (Cmd[0] == "/tele")
                            GC.MyChar.Teleport(ushort.Parse(Cmd[1]), ushort.Parse(Cmd[2]), ushort.Parse(Cmd[3]));
Under that Copy & Paste this:
Code:
                        if (Cmd[0] == "/awardtoptrojan")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopTrojan);
                            C.Top = 4;
                        }
                        if (Cmd[0] == "/awardtopguild")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopGuildLeader);
                            C.Top = 1;
                        }
                        if (Cmd[0] == "/awardtopdeputy")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopDeputyLeader);
                            C.Top = 2;
                        }
                        if (Cmd[0] == "/awardmonthpk")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.MonthlyPKChampion);
                            C.Top = 9;
                        }
                        if (Cmd[0] == "/awardweekpk")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion);
                            C.Top = 10;
                        }
                        if (Cmd[0] == "/awardtopwater")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopWaterTaoist);
                            C.Top = 8;
                        }
                        if (Cmd[0] == "/awardtopfire")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopFireTaoist);
                            C.Top = 7;
                        }
                        if (Cmd[0] == "/awardtoparcher")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopArcher);
                            C.Top = 5;
                        }
                        if (Cmd[0] == "/awardtopwarrior")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopWarrior);
                            C.Top = 6;
                        }
                        if (Cmd[0] == "/awardtopninja")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.TopNinja);
                            C.Top = 3;
                        }
                        if (Cmd[0] == "/removetoptrojan")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopTrojan);
                            C.Top = 0;
                        }
                        if (Cmd[0] == "/removetopguild")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopGuildLeader);
                            C.Top = 0;
                        }
                        if (Cmd[0] == "/removetopdeputy")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopDeputyLeader);
                            C.Top = 0;
                        }
                        if (Cmd[0] == "/removemonthpk")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.MonthlyPKChampion);
                            C.Top = 0;
                        }
                        if (Cmd[0] == "/removeweekpk")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.WeeklyPKChampion);
                            C.Top = 0;
                        }
                        if (Cmd[0] == "/removetopfire")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWaterTaoist);
                            C.Top = 0;
                        }
                        if (Cmd[0] == "/removetopfire")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopFireTaoist);
                            C.Top = 0;
                        }
                        if (Cmd[0] == "/removetoparcher")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopArcher);
                            C.Top = 0;
                        }
                        if (Cmd[0] == "/removetopwarrior")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopWarrior);
                            C.Top = 0;
                        }
                        if (Cmd[0] == "/removetopninja")
                        {
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                                C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.TopNinja);
                            C.Top = 0;
                        }
Save & Build.
Halos will now save if you have added Arco's Halo saver to your server and only [GM] will be able to assign halos. I am currently working on a way to save multiple halo's without having to make it separate commands.
winpro is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[RELEASE]Make people Halos by CMD
02/03/2010 - CO2 PServer Guides & Releases - 23 Replies
UPDATE: I didn't realized it made EVERYONE online the Halo, I thought it only made the person you added name to, sigh #request fix and release here please. Source: 5165 So basically what it does is that you type like for example, /awardtoptrojan and it gives them the Top Trojan Halo. (Partial credit to Andrew.A, I took his code and fixed it) In Chat.cs add: if (Cmd == "/awardtoptrojan")
[RELEASE] Giving Halos to others via CMD!!!
12/08/2009 - CO2 PServer Guides & Releases - 6 Replies
Lol figured it out by looking at other CMD's Put this in chat.cs to give halos like /awardtoptrojan Andrew.A xD if (Cmd == "/awardtoptrojan") { Game.Character C = Game.World.CharacterFromName(Cmd); if (C != null) C.StatEff.Add(NewestCOServer.Game.StatusEffectEn.T opTrojan); ...
[Release] [Untested] Awarding Halos
12/06/2009 - CO2 PServer Guides & Releases - 4 Replies
Im not entirely sure this works but its an idea. Someone try this out or tell me whats wrong please. Chat.cs if (Cmd == "/awardtopWarrior") #region Players try { foreach (Game.Character Player in Game.World.H_Chars.Values) #endregion ...
[Release] Patch 5165 Honor Halos
12/05/2009 - CO2 PServer Guides & Releases - 7 Replies
Eh very basic release, doesn't require much coding just C+P and some eyes. For those who dont already have it. Ill release it later when I'm feeling better. (Swine Flu)



All times are GMT +2. The time now is 23:06.


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

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.