|
You last visited: Today at 06:32
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.
10/05/2008, 07:01
|
#1
|
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
|
[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?
|
|
|
10/05/2008, 10:36
|
#2
|
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.
|
|
|
10/05/2008, 15:16
|
#3
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
Quote:
Originally Posted by emildayan1
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
|
|
|
10/05/2008, 15:35
|
#4
|
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.
|
|
|
10/05/2008, 18:00
|
#5
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
Quote:
Originally Posted by emildayan1
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... >_>
|
|
|
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?
|
|
|
10/06/2008, 20:54
|
#7
|
elite*gold: 0
Join Date: Jun 2007
Posts: 145
Received Thanks: 8
|
Quote:
Originally Posted by reborn666
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 ??????
|
|
|
10/06/2008, 22:30
|
#8
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
Quote:
Originally Posted by bela144
in Client.cs ??????
|
No, stop being a dumbass.
|
|
|
10/06/2008, 22:33
|
#9
|
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
|
|
|
10/06/2008, 22:38
|
#10
|
elite*gold: 0
Join Date: Jun 2007
Posts: 145
Received Thanks: 8
|
Quote:
Originally Posted by tao4229
No, stop being a dumbass.
|
what is problem?? ****'
|
|
|
10/06/2008, 22:41
|
#11
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
Quote:
Originally Posted by bela144
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.
|
|
|
10/06/2008, 22:42
|
#12
|
elite*gold: 0
Join Date: Jun 2007
Posts: 145
Received Thanks: 8
|
Quote:
Originally Posted by emildayan1
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???
|
|
|
10/07/2008, 02:27
|
#13
|
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
|
Quote:
Originally Posted by emildayan1
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
|
|
|
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.
|
|