I had an idea to put a guard at the jail, to revive the players who are dead or someone you know might help?:)
Yeah, you have to watch out, the mob's make sure their target is dead, you have to reverse it for revivers.Quote:
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.
Nice, I haven't done anything to them in forever <3Quote:
I didnt get a shit 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 shit,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.
this work!Quote:
else if (MType == 2)
World.MobAttacksCharSkill(this, Target, (uint)DMG, 1100, 0);
Dont forget to do a foreach allchars above all that shit,then also make sure the source checks if its the name of the mob is ReviverQuote:
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);
}
}
KOS OMAK.Quote:
what is proble?? shit'
Quote:
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 shit,then also make sure the source checks if its the name of the mob is Reviver
Quote:
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 shit,then also make sure the source checks if its the name of the mob is Reviver
Thanks for helping me be :handsdown: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);
}
}
}
}