Add Alchemy's /sethome command
This commit is contained in:
@@ -157,6 +157,17 @@
|
|||||||
<key>Value</key>
|
<key>Value</key>
|
||||||
<string>/setchannel</string>
|
<string>/setchannel</string>
|
||||||
</map>
|
</map>
|
||||||
|
<key>AlchemyChatCommandSetHome</key>
|
||||||
|
<map>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string>Command to set the avatar home</string>
|
||||||
|
<key>Persist</key>
|
||||||
|
<integer>1</integer>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>String</string>
|
||||||
|
<key>Value</key>
|
||||||
|
<string>/sethome</string>
|
||||||
|
</map>
|
||||||
<key>AlchemyConnectToNeighbors</key>
|
<key>AlchemyConnectToNeighbors</key>
|
||||||
<map>
|
<map>
|
||||||
<key>Comment</key>
|
<key>Comment</key>
|
||||||
|
|||||||
@@ -255,6 +255,7 @@ bool cmd_line_chat(std::string data, EChatType type)
|
|||||||
static LLCachedControl<std::string> sPosCommand(gSavedSettings, "AscentCmdLinePos");
|
static LLCachedControl<std::string> sPosCommand(gSavedSettings, "AscentCmdLinePos");
|
||||||
static LLCachedControl<std::string> sRezPlatCommand(gSavedSettings, "AscentCmdLineRezPlatform");
|
static LLCachedControl<std::string> sRezPlatCommand(gSavedSettings, "AscentCmdLineRezPlatform");
|
||||||
static LLCachedControl<std::string> sHomeCommand(gSavedSettings, "AscentCmdLineTeleportHome");
|
static LLCachedControl<std::string> sHomeCommand(gSavedSettings, "AscentCmdLineTeleportHome");
|
||||||
|
static LLCachedControl<std::string> sSetHomeCommand(gSavedSettings, "AlchemyChatCommandSetHome", "/sethome");
|
||||||
static LLCachedControl<std::string> sCalcCommand(gSavedSettings, "AscentCmdLineCalc");
|
static LLCachedControl<std::string> sCalcCommand(gSavedSettings, "AscentCmdLineCalc");
|
||||||
static LLCachedControl<std::string> sMapToCommand(gSavedSettings, "AscentCmdLineMapTo");
|
static LLCachedControl<std::string> sMapToCommand(gSavedSettings, "AscentCmdLineMapTo");
|
||||||
static LLCachedControl<std::string> sClearCommand(gSavedSettings, "AscentCmdLineClearChat");
|
static LLCachedControl<std::string> sClearCommand(gSavedSettings, "AscentCmdLineClearChat");
|
||||||
@@ -365,6 +366,11 @@ bool cmd_line_chat(std::string data, EChatType type)
|
|||||||
gAgent.teleportHome();
|
gAgent.teleportHome();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
else if (cmd == utf8str_tolower(sSetHomeCommand)) // sethome
|
||||||
|
{
|
||||||
|
gAgent.setStartPosition(START_LOCATION_ID_HOME);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
else if (cmd == utf8str_tolower(sCalcCommand))//Cryogenic Blitz
|
else if (cmd == utf8str_tolower(sCalcCommand))//Cryogenic Blitz
|
||||||
{
|
{
|
||||||
if (data.length() > cmd.length() + 1)
|
if (data.length() > cmd.length() + 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user