This commit is contained in:
Zontreck 2020-08-22 17:47:31 -07:00
parent 2808736e4d
commit 0c9f5ab5be
2 changed files with 9 additions and 8 deletions

View file

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

13
RLV.cs
View file

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using Bot.Assemble;
using Bot.CommandSystem;
using Bot.NonCommands;
using OpenMetaverse;
@ -12,18 +13,18 @@ namespace Bot
/// </summary>
class RLV : BaseCommands, nCMD
{
[NotCommand(SourceType = Destinations.DEST_LOCAL)]
[NotCommand(SourceType = Destinations.DEST_LOCAL | Destinations.DEST_AGENT)]
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")
if(arguments[0] == "version" || arguments[0] == "versionnew")
{
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);
if (arguments.Length == 2)
BotSession.Instance.grid.Self.Chat("BotCore Bot v" + ASMInfo.BotVer + " (RLVb 0.0.1)", Convert.ToInt32(arguments[1]), ChatType.Normal);
else
MHE(src, originator, "BotCore Bot v" + ASMInfo.BotVer + " (RLVb 0.0.1)");
}
}
}