Trip3033
Sorceror
This is a simple anti res kill script that should help prevent pvpers from res killing. It also comes with an off command if the player wishes to not be protected anymore also helps if a GM forgets to mortal the player back so they wont be stuck with invul.
------------------------------------
It's really simple to install just:
And underneith the brace { add:
it should look something like this all together:
And that's it all done.
------------------------------------
If you would like to change the timer/count down for how long they have to recover, change this line in playermobile:
new PKProtect( this, 60.0).Start();
Change the 60.00 to what ever you would like to give players to recover.
You're welcome to edit, change, mod, or improve anything you like in these scripts, Enjoy.
*Edit* forgot to change sendmessage code. reload the RKProtect.cs
------------------------------------
It's really simple to install just:
- Copy res kill protection folder to your custom scripts
- Edit Playermobile.cs
Code:
if ( this.Alive && !wasAlive )
Code:
if ( this.AccessLevel < AccessLevel.GameMaster )
new RKProtect( this, 60.0).Start();
Code:
public override void Resurrect()
{
bool wasAlive = this.Alive;
base.Resurrect();
if ( this.Alive && !wasAlive )
{
if ( this.AccessLevel < AccessLevel.GameMaster )
new RKProtect( this, 60.0).Start();
Item deathRobe = new DeathRobe();
if ( !EquipItem( deathRobe ) )
deathRobe.Delete();
}
------------------------------------
If you would like to change the timer/count down for how long they have to recover, change this line in playermobile:
new PKProtect( this, 60.0).Start();
Change the 60.00 to what ever you would like to give players to recover.
You're welcome to edit, change, mod, or improve anything you like in these scripts, Enjoy.
*Edit* forgot to change sendmessage code. reload the RKProtect.cs