// class GlandCommand : ICommand
// {
// public string Command { get { return "godlands"; } }
// public int RequiredRank { get { return 0; } }
//
// public void Execute(Player player, string[] args)
// {
// if (args.Length == 0)
// {
// player.SendHelp ("Usage: /godlands");
// }
// else
// {
class GodlandCommand : ICommand
{
public string Command { get { return "godland"; } }
public int RequiredRank { get { return 0; } }
public void Execute(Player player, string[] args)
{
if (args.Length > 0)
{
player.SendHelp("Usage: /godland");
}
else
{
int x, y;
try
{
x = 1000;
y = 1000;
}
catch
{
player.SendError("Invalid coordinates!");
return;
}
player.Move(x + 0.5f, y + 0.5f);
player.SetNewbiePeriod();
player.UpdateCount++;
player.Owner.BroadcastPacket(new GotoPacket()
{
ObjectId = player.Id,
Position = new Position()
{
X = player.X,
Y = player.Y
}
}, null);
}
}
}
class GodlandCommand : ICommand
{
public string Command { get { return "godland"; } }
public int RequiredRank { get { return 0; } }
public void Execute(Player player, string[] args)
{
if (args.Length == 0)
{
player.Move(1000, 1000);
player.SetNewbiePeriod();
player.UpdateCount++;
player.Owner.BroadcastPacket(new GotoPacket()
{
ObjectId = player.Id,
Position = new Position()
{
X = player.X,
Y = player.Y
}
}, null);
}
else
{
player.SendHelp("Usage: /godland");
}
}
}