Posted by
| Nick Gammon
Australia (22,989 posts) bio
Forum Administrator |
Message
| Nowadays you can use "dummy" MUSHclient worlds to be holders for extra information, like your inventory, chat windows, and so on. You make them a "dummy" world by putting the IP address of 0.0.0.0 in the world TCP/IP address field, thus stopping it from trying to connect.
However one problem is, that if the dummy world has the focus, and you type something, then it just disappears, because the world is not connected.
To work around this, install the plugin below on your dummy worlds, and if it detects a command, it redirects it to your "main" world (by name).
In my example the main world name is Aardwolf, but you simply change that on line 3 of the plugin to redirect to any name of your choosing.
To use, copy from between the lines below, save as Send_Input_To_Main_World.xml in your MUSHclient -> Worlds -> Plugins folder, and then use the File menu -> Plugins to install it.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient [
<!ENTITY world_name "Aardwolf" >
]>
<!-- Saved on Sunday, June 22, 2008, 11:53 AM -->
<!-- MuClient version 4.29 -->
<!-- Plugin "Send_Input_To_Main_World" generated by Plugin Wizard -->
<muclient>
<plugin
name="Send_Input_To_Main_World"
author="Nick Gammon"
id="703dbfca1548310658c386a2"
language="Lua"
purpose="Redirects typing to the main world"
date_written="2008-06-22 11:02:24"
requires="4.29"
version="1.0"
>
</plugin>
<!-- Aliases -->
<aliases>
<alias
match="*"
enabled="y"
send_to="12"
sequence="100"
>
<send>
require "getworld"
w = get_a_world ("&world_name;")
if w:GetWorldID () == GetWorldID () then
ColourNote ("white", "red",
"Cannot use Send_Input_To_Main_World plugin on main world")
EnablePlugin (GetPluginID (), false)
return
end -- if
if w then
w:Execute [====[%1]====]
w:Activate ()
end -- if world exists
</send>
</alias>
</aliases>
</muclient>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|