Update RlvService.cs
This commit is contained in:
parent
25ebadc39b
commit
e77ab1fb17
1 changed files with 94 additions and 3 deletions
|
|
@ -1,11 +1,8 @@
|
||||||
namespace SecondBotEvents.Services
|
namespace SecondBotEvents.Services
|
||||||
{
|
{
|
||||||
using Discord;
|
|
||||||
using global::SecondBotEvents.Commands;
|
using global::SecondBotEvents.Commands;
|
||||||
using global::SecondBotEvents.Config;
|
using global::SecondBotEvents.Config;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using OpenMetaverse.ImportExport.Collada14;
|
|
||||||
using SecondBotEvents.Commands;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
|
|
@ -177,6 +174,89 @@
|
||||||
NotifyRules = RemoveRule(bits[0], bits[1],"*", NotifyRules);
|
NotifyRules = RemoveRule(bits[0], bits[1],"*", NotifyRules);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "sitground":
|
||||||
|
{
|
||||||
|
if (args != "force")
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Self A = new Self(master);
|
||||||
|
A.Sit("ground");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "sit":
|
||||||
|
{
|
||||||
|
if ((args == "add") || (args == "y") || (args == "rem") || (args == "n"))
|
||||||
|
{
|
||||||
|
RlvRules = RemoveRule(command, "*", "*", RlvRules);
|
||||||
|
if ((args == "add") || (args == "y"))
|
||||||
|
{
|
||||||
|
RlvRules = AddRule(Source, command, "*", "*", RlvRules);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (args != "force")
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Self A = new Self(master);
|
||||||
|
A.Sit(subcommand);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "unsit":
|
||||||
|
{
|
||||||
|
if ((args == "add") || (args == "y") || (args == "rem") || (args == "n"))
|
||||||
|
{
|
||||||
|
RlvRules = RemoveRule(command, "*", "*", RlvRules);
|
||||||
|
if ((args == "add") || (args == "y"))
|
||||||
|
{
|
||||||
|
RlvRules = AddRule(Source, command, "*", "*", RlvRules);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (args != "force")
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
Self A = new Self(master);
|
||||||
|
A.Stand();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "detach":
|
||||||
|
{
|
||||||
|
if ((args == "add") || (args == "y") || (args == "rem") || (args == "n"))
|
||||||
|
{
|
||||||
|
RlvRules = RemoveRule(command, subcommand, "*", RlvRules);
|
||||||
|
if ((args == "add") || (args == "y"))
|
||||||
|
{
|
||||||
|
RlvRules = AddRule(Source, command, subcommand, "*", RlvRules);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (args != "force")
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
InventoryCommands A = new InventoryCommands(master);
|
||||||
|
A.Detach(subcommand);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case "getsitid":
|
||||||
|
{
|
||||||
|
uint index = GetClient().Self.SittingOn;
|
||||||
|
if (index > 0)
|
||||||
|
{
|
||||||
|
if (!GetClient().Network.CurrentSim.ObjectsPrimitives.ContainsKey(index))
|
||||||
|
{
|
||||||
|
ChatOutput("!", argAsInt);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
ChatOutput(GetClient().Network.CurrentSim.ObjectsPrimitives[index].ID.ToString(), argAsInt);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
ChatOutput(UUID.Zero.ToString(), argAsInt);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case "chatwhisper":
|
case "chatwhisper":
|
||||||
case "chatnormal":
|
case "chatnormal":
|
||||||
case "chatshout":
|
case "chatshout":
|
||||||
|
|
@ -194,6 +274,14 @@
|
||||||
case "tplm":
|
case "tplm":
|
||||||
case "tploc":
|
case "tploc":
|
||||||
case "tplure_sec":
|
case "tplure_sec":
|
||||||
|
case "showinv":
|
||||||
|
case "viewnote":
|
||||||
|
case "viewscript":
|
||||||
|
case "viewtexture":
|
||||||
|
case "rez":
|
||||||
|
case "editworld":
|
||||||
|
case "editattach":
|
||||||
|
case "share_sec":
|
||||||
case "permissive":
|
case "permissive":
|
||||||
{
|
{
|
||||||
RlvRules = RemoveRule(command, "*", "*", RlvRules);
|
RlvRules = RemoveRule(command, "*", "*", RlvRules);
|
||||||
|
|
@ -249,6 +337,7 @@
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "edit":
|
||||||
case "getcam_fov":
|
case "getcam_fov":
|
||||||
case "camtextures":
|
case "camtextures":
|
||||||
case "camavdist":
|
case "camavdist":
|
||||||
|
|
@ -289,6 +378,8 @@
|
||||||
case "accepttp":
|
case "accepttp":
|
||||||
case "accepttprequest":
|
case "accepttprequest":
|
||||||
case "tprequest":
|
case "tprequest":
|
||||||
|
case "editobj":
|
||||||
|
case "share":
|
||||||
case "tplure":
|
case "tplure":
|
||||||
{
|
{
|
||||||
RlvRules = RemoveRule(command, subcommand, "*", RlvRules);
|
RlvRules = RemoveRule(command, subcommand, "*", RlvRules);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue