|
You last visited: Today at 04:24
Advertisement
[Release]Reviver Guard[5165]
Discussion on [Release]Reviver Guard[5165] within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
06/29/2010, 09:25
|
#31
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by C#Nooby
Code:
99 Revivor 6 910 250 50000 0 70 10000 0 0 0 0 21 1050 0 True 18 100000 500000 500 3 True
What Here Need's To Be Changed To Make It Revive Ghost's?
|
That file isn't what makes it revive ghost.
I was referring to what sklar said about it attacking blue names only.
|
|
|
06/29/2010, 09:52
|
#32
|
elite*gold: 0
Join Date: Jun 2010
Posts: 19
Received Thanks: 2
|
Quote:
Originally Posted by .Arco
That file isn't what makes it revive ghost.
I was referring to what sklar said about it attacking blue names only.
|
Well, How Do I Get It To Attack Ghost's, -Im'a Newby :/
|
|
|
06/29/2010, 11:37
|
#33
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
By following the guide?
|
|
|
06/30/2010, 22:21
|
#34
|
elite*gold: 0
Join Date: Jun 2010
Posts: 19
Received Thanks: 2
|
:D
Hm, I Noticed A Flaw. The Guard Revive's You Yess.. But It Doesn't Replenish Stamina. I Used A Bit Of Common Sense & Got It To Work ;D
Find
Code:
if (M.Name == "ReviverGuard")
{
if (M.Loc.Map == Target.Loc.Map)
{
if (MyMath.PointDistance(M.Loc.X, M.Loc.Y, Target.Loc.X, Target.Loc.Y) <= 15)
{
if (!Target.Alive)
{
Target.Ghost = false;
Target.BlueName = false;
Target.CurHP = (ushort)Target.MaxHP;
Target.Alive = true;
And Put This Below It
Code:
Target.Stamina = 100;
Woohoo He Now Re-Fill's Stamina When Your Revived ;D!
- Yes I Know, A Bit Nooby. Sorry
|
|
|
07/01/2010, 21:45
|
#35
|
elite*gold: 0
Join Date: Jun 2010
Posts: 2
Received Thanks: 0
|
wtf alot of error
|
|
|
07/01/2010, 22:55
|
#36
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
|
wtf, no
I thought noobs where good and its there specialty to copy + paste, guess not
|
|
|
07/05/2010, 08:18
|
#37
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
Code:
Error 4 'NewestCOServer.Database' does not contain a definition for 'LoadReviverGuards'
I did everything and this is the only error I get now.
|
|
|
09/30/2010, 22:38
|
#38
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by †he Knight §olari§
Did you add the two files in oldcodb?
their names should be ReviverGuardinfo and ReviverGuardspawns
(have to be txt { which means need to be created in notepad } )
If you cant do it add me on I'm Going to help you.
|
That's not the cause of the error. The cause of the error is him not putting the void in Database.cs
|
|
|
09/30/2010, 23:15
|
#39
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
|
Quote:
Originally Posted by copz1337
Code:
Error 4 'NewestCOServer.Database' does not contain a definition for 'LoadReviverGuards'
I did everything and this is the only error I get now.
|
No you didn't, add
Code:
public static void LoadReviverGuards()
{
string[] FMobs = File.ReadAllLines(@"C:\OldCODB\ReviverGuardinfo.txt");
Hashtable Mobs = new Hashtable(FMobs.Length);
for (int i = 0; i < FMobs.Length; i++)
{
if (FMobs[i][0] != '*')
{
Game.Mob M = new ProjectToxicCo.Game.Mob(FMobs[i]);
Mobs.Add(M.MobID, M);
}
}
int ReviveGuards = 0;
string[] FSpawns = File.ReadAllLines(@"C:\OldCODB\ReviverGuardspawns.txt");
foreach (string Spawn in FSpawns)
{
if (Spawn[0] == '*') return;
string[] SpawnInfo = Spawn.Split(' ');
int MobID = int.Parse(SpawnInfo[0]);
int Count = int.Parse(SpawnInfo[1]);
ushort Map = ushort.Parse(SpawnInfo[2]);
ushort XFrom = ushort.Parse(SpawnInfo[3]);
ushort YFrom = ushort.Parse(SpawnInfo[4]);
ushort XTo = ushort.Parse(SpawnInfo[5]);
ushort YTo = ushort.Parse(SpawnInfo[6]);
if (!Game.World.H_Mobs.Contains(Map))
Game.World.H_Mobs.Add(Map, new Hashtable());
Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Map];
DMap D = (DMap)DMaps.H_DMaps[Map];
for (int i = 0; i < Count; i++)
{
Game.Mob _Mob = new ProjectToxicCo.Game.Mob((Game.Mob)Mobs[MobID]);
_Mob.Loc = new ProjectToxicCo.Game.Location();
_Mob.Loc.Map = Map;
_Mob.Loc.X = (ushort)Program.Rnd.Next(Math.Min(XFrom, XTo), Math.Max(XFrom, XTo));
_Mob.Loc.Y = (ushort)Program.Rnd.Next(Math.Min(YFrom, YTo), Math.Max(YFrom, YTo));
while (D != null && D.GetCell(_Mob.Loc.X, _Mob.Loc.Y).NoAccess)
{
_Mob.Loc.X = (ushort)Program.Rnd.Next(Math.Min(XFrom, XTo), Math.Max(XFrom, XTo));
_Mob.Loc.Y = (ushort)Program.Rnd.Next(Math.Min(YFrom, YTo), Math.Max(YFrom, YTo));
}
_Mob.StartLoc = _Mob.Loc;
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID))
_Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000);
MapMobs.Add(_Mob.EntityID, _Mob);
ReviveGuards++;
}
}
Program.WriteLine("[GameServer] Loaded " + ReviveGuards + " Reviver Guards");//+ MobsCount.ToString());
}
Quote:
Originally Posted by †he Knight §olari§
Did you add the two files in oldcodb?
their names should be ReviverGuardinfo and ReviverGuardspawns
(have to be txt { which means need to be created in notepad } )
If you cant do it add me on I'm Going to help you.
|
Re-read his post.
Quote:
Originally Posted by Аrco
That's not the cause of the error. The cause of the error is him not putting the void in Database.cs
|
Some people on this forum just can't read =/
//edit Just noticed how old it was.
|
|
|
10/01/2010, 01:58
|
#40
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by †he Knight §olari§
Doesn't matter you ********** , I Would help him anyway if he added me on msn!And i'm still going to!
|
Actually you need to make Gay a variable of the bool type in the Arco class,as well as "*******" so make that a byte, so it would be
if (Arco.Gay == true)
Arco.FirstJob == *******;
or
if (Arco.Gay)
Arco.FirstJob == *******;
|
|
|
10/01/2010, 02:19
|
#41
|
elite*gold: 0
Join Date: Nov 2009
Posts: 129
Received Thanks: 45
|
Quote:
Originally Posted by Аrco
if (Arco.Gay == true)
Arco.FirstJob == *******;
or
if (Arco.Gay)
Arco.FirstJob == *******;
|
Equality Fail.
|
|
|
10/01/2010, 02:36
|
#42
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
****, thanks for that, forgot 2 equal signs are for checks, not sets.
|
|
|
10/01/2010, 20:30
|
#43
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by †he Knight §olari§
if (Arco.AmateurGay == true)
Arco.FirstJob == *******;
else if (Arco.ProGay)
Arco.FirstJob == DoubleBlowJob;
Makes sense yeah?
|
No no no, we just went over this mate.
Double equal signs are for checks, not sets so
if (Arco.AmateurGay == true)
Arco.FirstJob = *******;
else if (Arco.ProGay)
Arco.FirstJob = DoubleBlowJob;
Get it now?
|
|
|
10/01/2010, 21:38
|
#44
|
elite*gold: 0
Join Date: Oct 2010
Posts: 148
Received Thanks: 57
|
Quote:
Originally Posted by †he Knight §olari§
I was just giving an example how big gay you are.
|
I was going to learn you to spell proper.
|
|
|
10/01/2010, 21:47
|
#45
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
Quote:
Originally Posted by †he Knight §olari§
I was just giving an example how big gay you are.
|
I still win though... right?
Also... bothers me to no end when people use == to check bools.
NOT NEEDED
if(true)
if(!false)
if(!true)
if(false)
etc
or even
bool Blah = true;
Blah = !Blah;
Console.WriteLine(Blah);
output would be 'false'.
|
|
|
Similar Threads
|
[Help] Reviver Guard
04/05/2010 - CO2 Private Server - 17 Replies
Anyone here know how to add a Reviver Guard
Basically its a Guard that Revives everyone all the time once we die
Thanks in advance
|
[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 +2. The time now is 04:24.
|
|