upload activator

This commit is contained in:
Zontreck 2020-08-22 17:28:43 -07:00
parent 9364c2e52e
commit 2808736e4d
3 changed files with 35 additions and 2 deletions

View file

@ -6,7 +6,7 @@ using System.Reflection;
[assembly: AssemblyCompany("ZNI")] [assembly: AssemblyCompany("ZNI")]
[assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)] [assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)]
[assembly: AssemblyCopyright("(C) 2020 Tara Piccari")] [assembly: AssemblyCopyright("(C) 2020 Tara Piccari")]
[assembly: AssemblyFileVersion("5.0.5.1002")] [assembly: AssemblyFileVersion("5.0.5.1003")]
[assembly: AssemblyDescription("Second Life Bot - BotCore5")] [assembly: AssemblyDescription("Second Life Bot - BotCore5")]
@ -15,7 +15,7 @@ namespace Bot.Assemble
public class ASMInfo public class ASMInfo
{ {
public static string BotName = "ZBotCore"; public static string BotName = "ZBotCore";
public static string BotVer = "5.0.5.1002"; public static string BotVer = "5.0.5.1003";
public static string GitPassword public static string GitPassword
{ {
get get

View file

@ -11,9 +11,11 @@ namespace Bot.NonCommands
/// Defaults to all except action /// Defaults to all except action
/// </summary> /// </summary>
public Destinations SourceType = Destinations.DEST_AGENT | Destinations.DEST_DISCORD | Destinations.DEST_GROUP | Destinations.DEST_LOCAL; public Destinations SourceType = Destinations.DEST_AGENT | Destinations.DEST_DISCORD | Destinations.DEST_GROUP | Destinations.DEST_LOCAL;
public NotCommand() public NotCommand()
{ {
// Not Command, this just marks a class // Not Command, this just marks a class
} }
} }
} }

31
RLV.cs Normal file
View file

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text;
using Bot.CommandSystem;
using Bot.NonCommands;
using OpenMetaverse;
namespace Bot
{
/// <summary>
/// A extremely basic implementation of RLV just to pass checks on whether it is active or not in the viewer
/// </summary>
class RLV : BaseCommands, nCMD
{
[NotCommand(SourceType = Destinations.DEST_LOCAL)]
public void handle(string text, UUID User, string agentName, Destinations src, UUID originator)
{
if (text.Substring(0, 1) == "@")
{
string[] arguments = text.Substring(1).Split(new[] { ':', '=' });
if(arguments[0] == "version")
{
BotSession.Instance.grid.Self.Chat("RLV 0", Convert.ToInt32(arguments[1]), ChatType.RegionSay);
} else if(arguments[0] == "versionnew")
{
BotSession.Instance.grid.Self.Chat("RLV 0", Convert.ToInt32(arguments[1]), ChatType.RegionSay);
}
}
}
}
}