Register for your free account! | Forgot your password?

You last visited: Today at 17:03

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

Advertisement



[Release]ReviveHere Code For 5165

Discussion on [Release]ReviveHere Code For 5165 within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2007
Posts: 9
Received Thanks: 6
[Release]ReviveHere Code For 5165

This is my first post on ElitePvpers
i don't know if any one released it before I made it my self i'm a c# noob btw so Go easy on me guys

first open PacketHandling\Revive
then replace everything with this

PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 
NewestCOServer.PacketHandling
{
    class 
Revive
    
{
        public static 
void Handle(Main.GameClient GCbyte[] Data)
        {
            if (!
GC.MyChar.Alive)
            {
                if (
DateTime.Now GC.MyChar.DeathHit.AddSeconds(20))
                {
                    
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(GCfalse);

                    if (
GC.MyChar.Loc.Map == 1038 && Features.GuildWars.War)
                        
GC.MyChar.Teleport(60013272);
                    else
                    {
                        if (
GC.MyChar.PKPoints >= 100)
                            
GC.MyChar.Teleport(60003272);

                        else
                        {
                            if (
GC.MyChar.BlessingLasts 0)
                            {
                                
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(GCfalse);

                                if (
GC.MyChar.Loc.Map == 1038)
                                    if (
Features.GuildWars.War)
                                    {
                                        
GC.LocalMessage(2005"You cant revive here while guild war is on.");
                                    }

                                        
GC.MyChar.Teleport(GC.MyChar.Loc.MapGC.MyChar.Loc.XGC.MyChar.Loc.Y);
                                    }

                                else
                                {
                                    foreach (
ushort[] Point in Database.RevPoints)
                                        if (
Point[0] == GC.MyChar.Loc.Map)
                                        {
                                            
GC.MyChar.Teleport(Point[1], Point[2], Point[3]);
                                            break;
                                        }
                                }
                            }
                        }
                    }
                }
            }
        }
    } 
DvD4 is offline  
Thanks
6 Users
Old 01/23/2010, 06:28   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by DvD4 View Post
This is my first post on ElitePvpers
i don't know if any one released it before I made it my self i'm a c# noob btw so Go easy on me guys

first open PacketHandling\Revive
then replace everything with this

PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 
NewestCOServer.PacketHandling
{
    class 
Revive
    
{
        public static 
void Handle(Main.GameClient GCbyte[] Data)
        {
            if (!
GC.MyChar.Alive)
            {
                if (
DateTime.Now GC.MyChar.DeathHit.AddSeconds(20))
                {
                    
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(GCfalse);

                    if (
GC.MyChar.Loc.Map == 1038 && Features.GuildWars.War)
                        
GC.MyChar.Teleport(60013272);
                    else
                    {
                        if (
GC.MyChar.PKPoints >= 100)
                            
GC.MyChar.Teleport(60003272);

                        else
                        {
                            if (
GC.MyChar.BlessingLasts 0)
                            {
                                
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(GCfalse);

                                if (
GC.MyChar.Loc.Map == 1038)
                                    if (
Features.GuildWars.War)
                                    {
                                        
GC.LocalMessage(2005"You cant revive here while guild war is on.");
                                    }

                                        
GC.MyChar.Teleport(GC.MyChar.Loc.MapGC.MyChar.Loc.XGC.MyChar.Loc.Y);
                                    }

                                else
                                {
                                    foreach (
ushort[] Point in Database.RevPoints)
                                        if (
Point[0] == GC.MyChar.Loc.Map)
                                        {
                                            
GC.MyChar.Teleport(Point[1], Point[2], Point[3]);
                                            break;
                                        }
                                }
                            }
                        }
                    }
                }
            }
        }
    } 
So this uses the revive here button correct?
You didn't just edit it so that pressing the normal revive button does the action as revive here?
Arcо is offline  
Old 01/23/2010, 06:47   #3
 
spare2's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
I think it's the normal revive button.
spare2 is offline  
Old 01/23/2010, 06:59   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by spare2 View Post
I think it's the normal revive button.
Yeah, because wouldn't you need to know the revive here packet before you can create the code for it?
Arcо is offline  
Old 01/23/2010, 11:31   #5
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by Hepatitis C View Post
Yeah, because wouldn't you need to know the revive here packet before you can create the code for it?
It's not a packet, the way features of heavensblessing features being enabled is simply by sending the status packet.
ImmuneOne is offline  
Old 01/23/2010, 18:15   #6
 
elite*gold: 0
Join Date: Apr 2007
Posts: 9
Received Thanks: 6
Quote:
Originally Posted by Hepatitis C View Post
So this uses the revive here button correct?
You didn't just edit it so that pressing the normal revive button does the action as revive here?
yes you gonna use the normal revive button but only if you have Heaven Bleased you will rev in your place
DvD4 is offline  
Old 01/23/2010, 19:01   #7
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
Ohh cool now you can revive here with blessing -.-
.Ryu is offline  
Old 01/23/2010, 19:10   #8
 
elite*gold: 0
Join Date: Jan 2010
Posts: 36
Received Thanks: 8
good job
Vultix is offline  
Old 01/23/2010, 21:55   #9
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
good release
QuickCo is offline  
Old 01/30/2010, 22:23   #10
 
renetjuuh's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 97
Received Thanks: 9
Code:
    class Revive
    {
        public static void Handle(Main.GameClient GC, byte[] Data)
        {
            if (!GC.MyChar.Alive)
            {
                bool ReviveHere = Convert.ToBoolean(Data[8]);
                if (DateTime.Now > GC.MyChar.DeathHit.AddSeconds(20))
                {
                    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);

                    if (GC.MyChar.Loc.Map == 1038 && Features.GuildWars.War)
                        GC.MyChar.Teleport(6001, 32, 72);
                    else
                    {
                        if (GC.MyChar.PKPoints >= 100)
                            GC.MyChar.Teleport(6000, 32, 72);
                        else
                        {
                            foreach (ushort[] Point in Database.RevPoints)
                                if (Point[0] == GC.MyChar.Loc.Map)
                                {
                                    GC.MyChar.Teleport(Point[1], Point[2], Point[3]);
                                    break;
                                }
                        }
                    }
                }
            }
        }
    }
}
just fixed
renetjuuh is offline  
Thanks
1 User
Old 01/30/2010, 22:58   #11
 
gulpi_de_gulat's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 40
Quote:
Originally Posted by renetjuuh View Post
Code:
    class Revive
    {
        public static void Handle(Main.GameClient GC, byte[] Data)
        {
            if (!GC.MyChar.Alive)
            {
                bool ReviveHere = Convert.ToBoolean(Data[8]);
                if (DateTime.Now > GC.MyChar.DeathHit.AddSeconds(20))
                {
                    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);

                    if (GC.MyChar.Loc.Map == 1038 && Features.GuildWars.War)
                        GC.MyChar.Teleport(6001, 32, 72);
                    else
                    {
                        if (GC.MyChar.PKPoints >= 100)
                            GC.MyChar.Teleport(6000, 32, 72);
                        else
                        {
                            foreach (ushort[] Point in Database.RevPoints)
                                if (Point[0] == GC.MyChar.Loc.Map)
                                {
                                    GC.MyChar.Teleport(Point[1], Point[2], Point[3]);
                                    break;
                                }
                        }
                    }
                }
            }
        }
    }
}
just fixed
this is realease by pringle in 4botters
gulpi_de_gulat is offline  
Old 01/30/2010, 23:46   #12
 
renetjuuh's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 97
Received Thanks: 9
Quote:
Originally Posted by gulpi_de_gulat View Post
this is realease by pringle in 4botters
yep it is
renetjuuh is offline  
Old 09/21/2010, 22:29   #13
 
elite*gold: 0
Join Date: Mar 2009
Posts: 27
Received Thanks: 0
not working still no use for revive here button
donjwan3 is offline  
Reply


Similar Threads Similar Threads
[Release] Reflect Code (5165 LOTF)
04/18/2012 - CO2 PServer Guides & Releases - 46 Replies
Maybe isn't very right but it works.... at Character.cs more ore less at line 1711 add this: public bool CanReflect = false; Now you have to make a check for the CanReflect become true.... go to LoadCharacter void at database.cs and add this after the load for skills:
[Release] Teleportation Code [5165]
02/22/2010 - CO2 PServer Guides & Releases - 3 Replies
Chat.cs: if (Cmd == "/tele") GC.MyChar.Teleport(ushort.Parse(Cmd), ushort.Parse(Cmd), ushort.Parse(Cmd)); Usage: /tele (map id) (x) (y) Example: /tele 601 61 54 http://i746.photobucket.com/albums/xx110/brokentw ilight91/Capture.png
[Release]5165 code to prohibit Guard attack
02/17/2010 - CO2 PServer Guides & Releases - 28 Replies
hi guys let me share you this simple code that will prohibit players from attacking the guards in most city of CO. i hope this release will be useful. here is the guide: 1. open Attack.cs in PacketHandling. 2. in Attack.cs look for this code public static void Handle(Main.GameClient GC, byte Data)



All times are GMT +1. The time now is 17:04.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.