internal class AutoTradeCommand : Command
{
public AutoTradeCommand() : base("autotrade", permLevel: 1)
{ }
protected override bool Process(Player player, RealmTime time, string args)
{
Player plr = player.Manager.FindPlayer(args);
if (plr != null && plr.Owner == player.Owner)
{
player.RequestTrade(time, new RequestTradePacket { Name = plr.Name });
plr.RequestTrade(time, new RequestTradePacket { Name = player.Name });
return true;
}
return true;
}
}
internal class AutoTradeCommand : Command
{
public AutoTradeCommand() : base("autotrade", desc: "Automatically opens a trade between you and the other player, whether they accept or not", usage: "/autotrade {Player}", permLevel: 1)
{ }
protected override bool Process(Player player, RealmTime time, string args)
{
Player plr = player.Manager.FindPlayer(args);
if (plr != null && plr.Owner == player.Owner)
{
player.RequestTrade(time, new RequestTradePacket { Name = plr.Name });
plr.RequestTrade(time, new RequestTradePacket { Name = player.Name });
return true;
}
return true;
}
}
internal class AutoTradeCommand : Command
{
public AutoTradeCommand() : base("autotrade", permLevel: 1)
{ }
protected override bool Process(Player player, RealmTime time, string[] args)
{
Player plr = player.Manager.FindPlayer(args[0]);
if (plr != null && plr.Owner == player.Owner)
{
player.RequestTrade(time, new RequestTradePacket { Name = plr.Name });
plr.RequestTrade(time, new RequestTradePacket { Name = player.Name });
return true;
}
return true;
}
}

