tomm_60421
Wanderer
[rkill awsome
if any one would like to use this or help me out with the one error probly something stupid would be a nice script for everyone
cs0123: <line 19, column 88> Method 'Server.Scripts.Commands.Rkill.Onrkill<server.CommandEventArgs, Server.Mobile>' does not match delegate 'void server. Commandeventhandler<server.CommandEventArgs>'
PHP:
using System;
using Server;
using Server.Mobiles;
using Server.Items;
using Server.Network;
using Server.Spells;
using Server.Targeting;
using Server.Targets;
using Server.Misc;
using System.IO;
using System.Collections;
using Server.Gumps;
namespace Server.Scripts.Commands
{
public class Rkill
{
public static void Initialize()
{
Server.Commands.Register( "Rkill", AccessLevel.GameMaster, new CommandEventHandler( OnRkill ) );
}
[Usage( "Rkill <parameter>" )]
[Description( "Remotely Kill's Lower Access Level's." )]
private static void OnRkill( CommandEventArgs e, Mobile victim )
{
if ( e.Mobile.AccessLevel <= victim.AccessLevel )
e.Mobile.SendMessage( "You can not perform negative acts on your target." );
else if ( victim.Name.Length == 0 )
e.Mobile.SendMessage( "You must include who you wish to kill." );
else
{
World.Broadcast( 0x35, true, "A bolt of lightning leaves the hand of {0} and strikes {1} .", e.Mobile.Name, victim.Name );
e.Mobile.BoltEffect( 0 );
victim.BoltEffect( 0 );
victim.Kill();
}
}
}
}
if any one would like to use this or help me out with the one error probly something stupid would be a nice script for everyone
cs0123: <line 19, column 88> Method 'Server.Scripts.Commands.Rkill.Onrkill<server.CommandEventArgs, Server.Mobile>' does not match delegate 'void server. Commandeventhandler<server.CommandEventArgs>'