Gamers-Heaven
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomeSearchLatest imagesLog inRegister
Vote for us please :)
Conquer Online MMORPG & MPOG bots
Top posters
awesome100able
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
NeoN
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
Angel
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
iGoogle
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
FruitJuice
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
DevilshCQ
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
Myndeth
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
noob123
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
jason11040
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
sunrisegf
[Release] Revive Guard 5165 I_vote_lcap[Release] Revive Guard 5165 I_voting_bar[Release] Revive Guard 5165 I_vote_rcap 
Social bookmarking
Bookmark and share the address of Gamers-Heaven on your social bookmarking website

 

 [Release] Revive Guard 5165

Go down 
AuthorMessage
NeoN
I am a gamer
I am a gamer



Posts : 27
Heaven points : 5147
Heaven points : 0
Join date : 2010-05-04
Age : 36
Location : Sweden

[Release] Revive Guard 5165 Empty
PostSubject: [Release] Revive Guard 5165   [Release] Revive Guard 5165 EmptySat May 15, 2010 10:16 pm

Well was going to release revive guard for conquer online private server 5165 Smile


First you go into Program.cs and searh for:

Code:
foreach (Hashtable H in Game.World.H_Mobs.Values)
                        {
                            foreach (Mob M in H.Values)
                            {

And below that code add this:

Code:
foreach (Game.Character Target in Game.World.H_Chars.Values)
                                {
                                    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;
                                                    Target.StatEff.Remove(ProjectToxicCo.Game.StatusEffectEn.Dead);
                                                    Target.StatEff.Remove(ProjectToxicCo.Game.StatusEffectEn.BlueName);
                                                    Target.Body = Target.Body;
                                                    Target.Hair = Target.Hair;
                                                    Target.Equips.Send(Target.MyClient, false);
                                                    Target.MyClient.LocalMessage(2001, "You have been revived by the Reviver Guard!");
                                                    Thread.Sleep(10000);
                                                }
                                            }
                                        }
                                    }
                                }

Then go into Database.cs and add this:

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());
        }

Now you go into your C:\OldCODB and add theese too files:

ReviverGuardinfo.txt and ReviverGuardspawns.txt

Add this line in ReviverGuardinfo.txt


Code:
99 ReviverGuard 6 910 250 50000 0 70 10000 0 0 0 0 21 1050 0 True 18 100000 500000 500 3 True

Then inside the ReviverGuardspawns.txt you add:

Code:
99 1 1002 403 404 403 404


Now go back to Program.cs and search for:

Code:
Database.LoadMobs();

and below that you will add:

Code:
Database.LoadReviverGuards();


Here you go Smile
Back to top Go down
 
[Release] Revive Guard 5165
Back to top 
Page 1 of 1
 Similar topics
-
» [Release] 5165 source
» [Release] Frozen grotto (5165)
» [Release] Another 5165 source (guide by me)
» [Release] Hit the NPC
» [Release] Gem effects

Permissions in this forum:You cannot reply to topics in this forum
Gamers-Heaven :: OnlineGames :: ConquerOnline :: How to make your own private server :: Releases & Guides for 5165-
Jump to: