- Code: Select all
using System;
using System.Collections.Generic;
using DOL.GS.Commands;
using DOL.GS;
using DOL.GS.PacketHandler;
namespace DOL.GS.Commands
{
[CmdAttribute(
"&gmstealth",
ePrivLevel.GM,
"Grants the ability to stealth to a gm/admin character")]
public class GMStealthCommandHandler : AbstractCommandHandler, ICommandHandler
{
public void OnCommand(GameClient client, string[] args)
{
if (client.Player.IsStealthed != true)
{
client.Player.DBCharacter.MaxSpeed = 400;
client.Player.Stealth(true);
}
else
client.Player.Stealth(false);
client.Player.DBCharacter.MaxSpeed = 191;
}
}
}
just a little near command for people; also took your advice graveen