mirror of
https://github.com/TechplexEngineer/plexview.git
synced 2026-07-28 06:22:14 +00:00
I wish I could figure out how to have PlexVie be out of the LibOMV tree but its just not working die to a DLL not found exception about libopenjpeg. (Yes the dll is in the bin folder) This will do for now
29 lines
762 B
C#
29 lines
762 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using OpenMetaverse;
|
|
using OpenMetaverse.Packets;
|
|
|
|
namespace OpenMetaverse.TestClient
|
|
{
|
|
public class GiveAllCommand: Command
|
|
{
|
|
public GiveAllCommand(TestClient testClient)
|
|
{
|
|
Name = "giveAll";
|
|
Description = "Gives you all it's money.";
|
|
Category = CommandCategory.Other;
|
|
}
|
|
|
|
public override string Execute(string[] args, UUID fromAgentID)
|
|
{
|
|
if (fromAgentID == UUID.Zero)
|
|
return "Unable to send money to console. This command only works when IMed.";
|
|
|
|
int amount = Client.Self.Balance;
|
|
Client.Self.GiveAvatarMoney(fromAgentID, Client.Self.Balance, "TestClient.GiveAll");
|
|
return "Gave $" + amount + " to " + fromAgentID;
|
|
}
|
|
}
|
|
}
|