|
You last visited: Today at 17:03
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.
01/23/2010, 04:50
|
#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 GC, byte[] 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(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
{
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(GC, false);
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.Map, GC.MyChar.Loc.X, GC.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
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by DvD4
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 GC, byte[] 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(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
{
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(GC, false);
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.Map, GC.MyChar.Loc.X, GC.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
|
#3
|
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
|
I think it's the normal revive button.
|
|
|
01/23/2010, 06:59
|
#4
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by spare2
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
|
#5
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
Quote:
Originally Posted by Hepatitis C
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
|
#6
|
elite*gold: 0
Join Date: Apr 2007
Posts: 9
Received Thanks: 6
|
Quote:
Originally Posted by Hepatitis C
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
|
#7
|
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
|
Ohh cool now you can revive here with blessing -.-
|
|
|
01/23/2010, 19:10
|
#8
|
elite*gold: 0
Join Date: Jan 2010
Posts: 36
Received Thanks: 8
|
good job
|
|
|
01/23/2010, 21:55
|
#9
|
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
|
good release
|
|
|
01/30/2010, 22:23
|
#10
|
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
|
|
|
01/30/2010, 22:58
|
#11
|
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 40
|
Quote:
Originally Posted by renetjuuh
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
|
#12
|
elite*gold: 0
Join Date: Jul 2008
Posts: 97
Received Thanks: 9
|
Quote:
Originally Posted by gulpi_de_gulat
this is realease by pringle in 4botters
|
yep it is
|
|
|
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
|
|
|
 |
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.
|
|