Register for your free account! | Forgot your password?

You last visited: Today at 22:11

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

Advertisement



[Help] Reviver Guard

Discussion on [Help] Reviver Guard within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2007
Posts: 16
Received Thanks: 3
[Help] Reviver Guard

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
BadmanDiogo is offline  
Old 01/31/2010, 17:58   #2
 
Sion~'s Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 181
Received Thanks: 68
Depends on the source, but it's very simple instead of the guard casting thunder let him cast the revive on the dead.
Sion~ is offline  
Old 01/31/2010, 18:03   #3
 
elite*gold: 0
Join Date: May 2007
Posts: 16
Received Thanks: 3
In MobInfos file i have this line

Quote:
97 Guard2 6 900 250 50000 2500 70 10000 0 0 100 70 21 8036 0 False 18 100000 500000 500 3 False
Which one relates to the attack skill? x)
BadmanDiogo is offline  
Old 01/31/2010, 19:58   #4
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Its gonna be in the actual source
hunterman01 is offline  
Old 01/31/2010, 20:24   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Also note, you will wanna break the guards lockon once the player has been revived or it will target one person when they die and just keep spamming revive on them.

So basically have the guard look for players who are dead, cast revive on them and then break the attack loop. If not it wouldn't be fun having a guard chasing you around going "OMG LEMME HEALLLL YOUUUUUUU!!"
pro4never is offline  
Old 01/31/2010, 20:27   #6
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
Im guessing its coemu?
.Ryu is offline  
Old 01/31/2010, 21:12   #7
 
elite*gold: 0
Join Date: May 2007
Posts: 16
Received Thanks: 3
Quote:
Originally Posted by pro4never View Post
So basically have the guard look for players who are dead, cast revive on them and then break the attack loop. If not it wouldn't be fun having a guard chasing you around going "OMG LEMME HEALLLL YOUUUUUUU!!"
That's right but atm all i could do is making the guard spell revive, but only if im blue named, and besides they take me HP from doing that o_O

Quote:
Originally Posted by .Ryu View Post
Im guessing its coemu?
Sorry didnt clarify that
Its 5165 version
BadmanDiogo is offline  
Old 01/31/2010, 23:21   #8
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by BadmanDiogo View Post
That's right but atm all i could do is making the guard spell revive, but only if im blue named, and besides they take me HP from doing that o_O



Sorry didnt clarify that
Its 5165 version
That's because you are apparently only displaying the spell effect. You want to change the guard attack spell, change it's damage to 0 (incase for some messed up reason the source is still doing dmg to you) and then do the actual revival of the player (not just the spell effect)

Ps: am I the only one who for some reason right now feels that it would be simpler to have a revive radius and the guard will check for players that are in range and do a mass revive ever 5-10 seconds?

Then again I suppose doing it that way would use needless system resources... it would fix any buggy targeting that the guards are doing though.

Ooh and the guards only attacking people who are flashing is because the way guards are written they check if the player is flashing to kill them.

<edit>

My bad... I think my hangover is to blame for not thinking of this earlier.

Why not have the guard behave similarly to a 'normal' mob in that it tries to attack the player when it is near (without moving though, if not the guard will jump around trying to attack ppl) and then just do a check to see if they are alive or not. If dead, break the attack and try someone different. That way you avoid the entire flashing/not flashing problem all together.
pro4never is offline  
Old 02/01/2010, 00:20   #9
 
elite*gold: 0
Join Date: May 2007
Posts: 16
Received Thanks: 3
After changing the attack to 0, the Guards hit me 0 (They keep hunting blue named players)

So I guess its going to need a Mob.cs change
Correct me if i am wrong but i think its something related to this line: (line 175 at Mob.cs)

Quote:
if (Type == MobBehaveour.HuntBlueNames || Type == MobBehaveour.HuntMobsAndBlue)
Is someone able to check for it?
BadmanDiogo is offline  
Thanks
1 User
Old 02/28/2010, 12:24   #10
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
Yes people I need this to HELP!
Paralyzer[GM] is offline  
Old 03/04/2010, 19:03   #11
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
bumpy bump
Paralyzer[GM] is offline  
Old 03/04/2010, 23:06   #12
 
walmartboi's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
Quote:
Originally Posted by Paralyzer[GM] View Post
bumpy bump
I was going to post my Reviver code, but since you posted here, I am SURELY not going to release it now.
walmartboi is offline  
Old 03/05/2010, 00:01   #13
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Why dont they just get it out of coemu it was already in there when released
hunterman01 is offline  
Old 03/05/2010, 00:06   #14
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Quote:
Originally Posted by hunterman01 View Post
Why dont they just get it out of coemu it was already in there when released
I'm guessing he is talking about 5165.
And most people are too lazy to convert.
Hunter if you can pm me the code cause I don't feel like dling coemu lol.
Arcо is offline  
Old 04/04/2010, 17:00   #15
 
elite*gold: 0
Join Date: Feb 2010
Posts: 492
Received Thanks: 222
well here is some code if anyone feels like converting

Code:
if (MType == 2)
World.MobAttacksCharSkill(this, Target, 0, 1100, 0);
{
foreach  (DictionaryEntry DE in World.AllChars)
{
Character Charr =  (Character)DE.Value;
if (DateTime.Now > Charr.Death.AddSeconds(5))
if  (Charr.LocMap == this.Map)
{
if (!Charr.Alive)
{
Charr.Revive(true);
System.Threading.Thread.Sleep(100);
}
}
}
}
Any help ?
Paralyzer[GM] is offline  
Reply


Similar Threads Similar Threads
[Release]Reviver Guard[5165]
10/02/2010 - CO2 PServer Guides & Releases - 46 Replies
Sup, I have not released anything yet so I will release a reviver guard.... go into Program.cs and find foreach (Hashtable H in Game.World.H_Mobs.Values) { foreach (Mob M in H.Values) {
{Help}How it works reviver in Jail.GW30..in wear TQ binary
05/21/2009 - CO2 Private Server - 0 Replies
{Help}How it works reviver in Jail.GW30..in wear TQ binary :(



All times are GMT +2. The time now is 22:11.


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