Register for your free account! | Forgot your password?

You last visited: Today at 12:25

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

Advertisement



[Release] Revive Command

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

Reply
 
Old   #1
 
Zkiller110's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 276
Received Thanks: 99
[Release] Revive Command

This is a perfect revive command to my knowledge I've tested it multiple times in my server and had no problems. I'm currently working on remaking all commands and releasing them sometime in the near future. This is for a 5165 source. Hope you guys like it

Command:
/revive
/revive (players name)

Code:
                        #region Revive

                        if (Cmd[0] == "/Revive" || Cmd[0] == "/revive")
                        {
                            if (Cmd.Length == 1)
                            {
                                if (!GC.MyChar.Alive)
                                {
                                    GC.MyChar.Ghost = false;
                                    GC.MyChar.BlueName = false;
                                    GC.MyChar.CurHP = (ushort)GC.MyChar.MaxHP;
                                    GC.MyChar.Alive = true;
                                    GC.MyChar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.Dead);
                                    GC.MyChar.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.BlueName);
                                    GC.MyChar.Body = GC.MyChar.Body;
                                    GC.MyChar.Hair = GC.MyChar.Hair;
                                    GC.MyChar.Equips.Send(GC, false);
                                }
                                else
                                    GC.LocalMessage(2000, "Your not dead.");
                            }
                            Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                            if (C != null)
                            {
                                if (!C.Alive)
                                {
                                    C.Ghost = false;
                                    C.BlueName = false;
                                    C.CurHP = (ushort)GC.MyChar.MaxHP;
                                    C.Alive = true;
                                    C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.Dead);
                                    C.StatEff.Remove(NewestCOServer.Game.StatusEffectEn.BlueName);
                                    C.Body = GC.MyChar.Body;
                                    C.Hair = GC.MyChar.Hair;
                                    C.Equips.Send(GC, false);
                                    C.MyClient.LocalMessage(2000, GC.MyChar.Name + GC.AuthInfo.Status + " has revived you.");
                                }
                                else
                                    GC.LocalMessage(2000, C.Name + C.MyClient.AuthInfo.Status + " is not dead.");
                            }
                        }

                        #endregion
Zkiller110 is offline  
Thanks
1 User
Old 08/02/2010, 09:49   #2
 
Escapex's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 102
Received Thanks: 36
not bad <: are they for players and staff? o-o
or it for staff? or it for players?

well.. it good if u can make the command exist for staff. so when

e.g: ABC[PM] Has Been Killed By SoSo[GM] then ABC[PM]
will do /revive then u dont gotta wait for 20secs (for staff)
Escapex is offline  
Old 08/02/2010, 15:53   #3
 
Zkiller110's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 276
Received Thanks: 99
Quote:
Originally Posted by Escapex View Post
not bad <: are they for players and staff? o-o
or it for staff? or it for players?

well.. it good if u can make the command exist for staff. so when

e.g: ABC[PM] Has Been Killed By SoSo[GM] then ABC[PM]
will do /revive then u dont gotta wait for 20secs (for staff)
it if for GMs and PMs and they can intently revive anyone
you can make it work for all players if you want
Zkiller110 is offline  
Reply


Similar Threads Similar Threads
[Release] Revive Potion
07/24/2010 - EO PServer Guides & Releases - 9 Replies
This is a simple release from me.. this potion use to revive all the dead eudemon in your eudemon bag.Can be use anywhere except legion land. Screenshot http://i37.servimg.com/u/f37/12/57/38/57/111.jpg http://i37.servimg.com/u/f37/12/57/38/57/211.jpg
[RELEASE] Revive Command
10/06/2009 - CO2 PServer Guides & Releases - 13 Replies
Press thanks and I hope you enjoy. In Client.cs add:
[Release]How to FIX stamina at revive[CoEmu]
08/13/2009 - CO2 PServer Guides & Releases - 3 Replies
If work +thanks (Use Ctrl+F for find the codes cited) File: PacketProcessor.cs Below it: CSocket.Client.CurrentHP = CSocket.Client.MaxHP; Add: CSocket.Client.CurrentStam = 100; Below it: CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CurrentHP, Struct.StatusTypes.Hp)); Add:
@revive command
02/07/2009 - CO2 Private Server - 12 Replies
hi im pete, this is not a release just a question , and i dont even know if this code works never tested ( ye its for LOTF , if you have a problem dont post xD ) if (Splitter == "@revive") { foreach (DictionaryEntry DE in World.AllChars) { if (MyChar.Alive = false) ...



All times are GMT +1. The time now is 12:25.


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.