[Release]ReviveHere Code For 5165

01/23/2010 04:50 DvD4#1
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;
                                        }
                                }
                            }
                        }
                    }
                }
            }
        }
    } 
01/23/2010 06:28 Arcо#2
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?
01/23/2010 06:47 spare2#3
I think it's the normal revive button.
01/23/2010 06:59 Arcо#4
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?
01/23/2010 11:31 ImmuneOne#5
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.
01/23/2010 18:15 DvD4#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
01/23/2010 19:01 .Ryu#7
Ohh cool now you can revive here with blessing -.-
01/23/2010 19:10 Vultix#8
good job
01/23/2010 21:55 QuickCo#9
good release
01/30/2010 22:23 renetjuuh#10
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
01/30/2010 22:58 gulpi_de_gulat#11
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
01/30/2010 23:46 renetjuuh#12
Quote:
Originally Posted by gulpi_de_gulat View Post
this is realease by pringle in 4botters
yep it is
09/21/2010 22:29 donjwan3#13
not working still no use for revive here button