Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 06:32

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

Advertisement



[help] how i make "Revive Guard"

Discussion on [help] how i make "Revive Guard" within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
Question [help] how i make "Revive Guard"

I had an idea to put a guard at the jail, to revive the players who are dead or someone you know might help?
reborn666 is offline  
Old 10/05/2008, 10:36   #2
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Easy,im not going to post the actual code for you,just some parts that are needed.

Name-checker
If the player is in the same map
Checks if the character is dead
MobUseCharSkill, the revive skill on an character
Sleep for around 5 seconds
Do it again


Easy.
_Emme_ is offline  
Thanks
1 User
Old 10/05/2008, 15:16   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by emildayan1 View Post
Easy,im not going to post the actual code for you,just some parts that are needed.

Name-checker
If the player is in the same map
Checks if the character is dead
MobUseCharSkill, the revive skill on an character
Sleep for around 5 seconds
Do it again


Easy.
Yeah, you have to watch out, the mob's make sure their target is dead, you have to reverse it for revivers.
+ After MobAttacksCharSkill you'll need to ACTUALLY revive the person as
the skill is just the effect.

Target.Revive(false)

Couldn't have said it better emme, I wonder why
tao4229 is offline  
Old 10/05/2008, 15:35   #4
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
I didnt get a **** of what ur talking about tao,as I said a week ago,stop the drugs kid! Nah,im kidding,but yeah you have to revive the target and ****,but as I said I wont post the actual code.
+Thanks to you for letting me look at reviving guards a few weeks ago,just to get the idea of what to do. At the moment,im using my own style,which works better to me.
_Emme_ is offline  
Old 10/05/2008, 18:00   #5
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by emildayan1 View Post
I didnt get a **** of what ur talking about tao,as I said a week ago,stop the drugs kid! Nah,im kidding,but yeah you have to revive the target and ****,but as I said I wont post the actual code.
+Thanks to you for letting me look at reviving guards a few weeks ago,just to get the idea of what to do. At the moment,im using my own style,which works better to me.
Nice, I haven't done anything to them in forever <3

I haven't coded anything that's worth doing except funny stuff for myself in a while actually... >_>
tao4229 is offline  
Old 10/06/2008, 00:25   #6
 
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
ty emme
Quote:
else if (MType == 2)
World.MobAttacksCharSkill(this, Target, (uint)DMG, 1100, 0);
this work!
no more revives the dead, the guard uses in players who are alive, and revive any time, any idea?
reborn666 is offline  
Old 10/06/2008, 20:54   #7
 
xxFastBoy's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 145
Received Thanks: 8
Quote:
Originally Posted by reborn666 View Post
ty emme
this work!
no more revives the dead, the guard uses in players who are alive, and revive any time, any idea?
in Client.cs ??????
xxFastBoy is offline  
Old 10/06/2008, 22:30   #8
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by bela144 View Post
in Client.cs ??????
No, stop being a dumbass.
tao4229 is offline  
Old 10/06/2008, 22:33   #9
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Something like this,that defines that it should sleep a bit,and only revive players in the map and bla bla bla,.

Quote:
Character Charr = (Character)DE.Value;
if (DateTime.Now > Charr.Death.AddSeconds(5))
if (Charr.LocMap == this.Map)
{
if (!Charr.Alive)
{
Charr.Revive(false);
System.Threading.Thread.Sleep(100);
World.MobAttacksCharSkill(this, Charr, 0, 1100, 0);
}
}
Dont forget to do a foreach allchars above all that ****,then also make sure the source checks if its the name of the mob is Reviver
_Emme_ is offline  
Old 10/06/2008, 22:38   #10
 
xxFastBoy's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 145
Received Thanks: 8
Quote:
Originally Posted by tao4229 View Post
No, stop being a dumbass.
what is problem?? ****'
xxFastBoy is offline  
Old 10/06/2008, 22:41   #11
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by bela144 View Post
what is proble?? ****'
KOS OMAK.




Okay other than unneeded spam... emme pretty much GAVE you the code, with a few changes that works, but it's not the best way to approach it. Not like I did any better . Anyways, the only major thing that prevents THAT from working is... you have to make sure on GetTarget() (in Entities.cs with all the other mob ****) if the name is reviver or the type is whatever, you allow them to target only DEAD people, instead of alive.
tao4229 is offline  
Old 10/06/2008, 22:42   #12
 
xxFastBoy's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 145
Received Thanks: 8
Quote:
Originally Posted by emildayan1 View Post
Something like this,that defines that it should sleep a bit,and only revive players in the map and bla bla bla,.


Dont forget to do a foreach allchars above all that ****,then also make sure the source checks if its the name of the mob is Reviver


can u tell we add to where???
xxFastBoy is offline  
Old 10/07/2008, 02:27   #13
 
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
Quote:
Originally Posted by emildayan1 View Post
Something like this,that defines that it should sleep a bit,and only revive players in the map and bla bla bla,.


Dont forget to do a foreach allchars above all that ****,then also make sure the source checks if its the name of the mob is Reviver

reliving players still alive and not the dead ..! look

Quote:
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);
}
}
}
}
Thanks for helping me be
reborn666 is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[AUFRUF] An alle, die von "[Aimee]", "Blck-Sellerx" & ".Ava" betrogen worden sind!
03/23/2010 - Last Chaos - 34 Replies
Hallo libe ehrlichen Member von e*PvPers! Im LastChaos und Metin Bereich im TBM Forum soll ".Ava" mehrere Leute abgezogen haben. Nun kommen aber plötzlich Gegenstimmen in der iTrader Bewertung die positiv ausfallen von "Black-SellerX" und "" bei genauerem Hinsehen bemerkt man, dass diese 3 Forenuser sich gegenseitig immer wieder positiv bewerten, dennnoch werden diese von vielen Usern negativ bewertet. Von "" wurde ich selber betrogen, daher mein Interesse. Deshalb vermute ich, dass hinter...



All times are GMT +2. The time now is 06:32.


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.