initial release
This commit is contained in:
247
cosmic rage/worlds/plugins/direction_plugin.xml
Normal file
247
cosmic rage/worlds/plugins/direction_plugin.xml
Normal file
@@ -0,0 +1,247 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE muclient>
|
||||
<!-- Saved on Thursday, May 06, 2010, 9:44 AM -->
|
||||
<!-- MuClient version 4.51 -->
|
||||
|
||||
<!-- Plugin "direction_plugin" generated by Plugin Wizard -->
|
||||
|
||||
<muclient>
|
||||
<plugin
|
||||
name="direction_plugin"
|
||||
author="Oriol Gomez"
|
||||
id="2f99725c36e543654b5e15fc"
|
||||
language="Lua"
|
||||
purpose="alt+letters keypad and mapper"
|
||||
save_state="y"
|
||||
date_written="2010-05-06 09:42:28"
|
||||
requires="3.51"
|
||||
version="1.0"
|
||||
>
|
||||
|
||||
</plugin>
|
||||
|
||||
|
||||
<!-- Get our standard constants -->
|
||||
|
||||
<include name="constants.lua"/>
|
||||
<aliases>
|
||||
<alias
|
||||
match="u"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", "u;")
|
||||
end
|
||||
lastdir="up"
|
||||
if (stealth==1) then
|
||||
Send("sneak u")
|
||||
return
|
||||
end
|
||||
|
||||
Send("u")</send>
|
||||
</alias>
|
||||
<alias
|
||||
match="s"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", "s;")
|
||||
end
|
||||
lastdir="south"
|
||||
if (stealth==1) then
|
||||
Send("sneak s")
|
||||
return
|
||||
end
|
||||
|
||||
Send("s")</send>
|
||||
</alias>
|
||||
<alias
|
||||
match="d"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", "d;")
|
||||
end
|
||||
lastdir="down"
|
||||
if (stealth==1) then
|
||||
Send("sneak d")
|
||||
return
|
||||
end
|
||||
Send("d")</send>
|
||||
</alias>
|
||||
<alias
|
||||
match="e"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", 'e;')
|
||||
end
|
||||
lastdir="east"
|
||||
if (stealth==1) then
|
||||
Send("sneak e")
|
||||
return
|
||||
end
|
||||
Send("e")</send>
|
||||
</alias>
|
||||
<alias
|
||||
match="nw"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", "nw;")
|
||||
end
|
||||
lastdir="northwest"
|
||||
if (stealth==1) then
|
||||
Send("sneak nw")
|
||||
return
|
||||
end
|
||||
|
||||
Send("nw")</send>
|
||||
</alias>
|
||||
|
||||
<alias
|
||||
match="n"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", "n;")
|
||||
end
|
||||
lastdir="north"
|
||||
if (stealth==1) then
|
||||
Send("sneak n")
|
||||
return
|
||||
end
|
||||
Send("n")</send>
|
||||
</alias>
|
||||
<alias
|
||||
match="w"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", "w;")
|
||||
end
|
||||
lastdir="west"
|
||||
|
||||
if (stealth==1) then
|
||||
Send("sneak w")
|
||||
return
|
||||
end
|
||||
Send("w")</send>
|
||||
</alias>
|
||||
<alias
|
||||
match="se"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", "se;")
|
||||
end
|
||||
lastdir="southeast"
|
||||
if (stealth==1) then
|
||||
Send("sneak se")
|
||||
return
|
||||
end
|
||||
|
||||
Send("se")</send>
|
||||
</alias>
|
||||
<alias
|
||||
match="sw"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", "sw;")
|
||||
end
|
||||
lastdir="southwest"
|
||||
|
||||
if (stealth==1) then
|
||||
Send("sneak sw")
|
||||
return
|
||||
end
|
||||
|
||||
Send("sw")</send>
|
||||
</alias>
|
||||
<alias
|
||||
match="mapping"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>
|
||||
if (map==0) then
|
||||
map=1
|
||||
Note("map on.")
|
||||
Sound(GetInfo(67).."/sounds/luaaudio/on.ogg")
|
||||
else
|
||||
map=0
|
||||
Note("map mode off.")
|
||||
Sound(GetInfo(67).."/sounds/luaaudio/off.ogg")
|
||||
end
|
||||
</send>
|
||||
</alias>
|
||||
|
||||
<alias
|
||||
match="ne"
|
||||
enabled="y"
|
||||
send_to="14"
|
||||
sequence="100"
|
||||
>
|
||||
<send>Execute("tts_stop")
|
||||
if (map==1) then
|
||||
AppendToNotepad("map", "ne;")
|
||||
end
|
||||
lastdir="northeast"
|
||||
if (stealth==1) then
|
||||
Send("sneak ne")
|
||||
return
|
||||
end
|
||||
Send("ne")</send>
|
||||
</alias>
|
||||
</aliases>
|
||||
<!-- Script -->
|
||||
|
||||
|
||||
<script>
|
||||
<![CDATA[
|
||||
Accelerator("alt+i", "n")
|
||||
Accelerator("alt+k", "s")
|
||||
Accelerator("alt+l", "e")
|
||||
Accelerator("alt+j", "w")
|
||||
Accelerator("alt+o", "ne")
|
||||
Accelerator("alt+u", "nw")
|
||||
Accelerator("alt+,", "se")
|
||||
Accelerator("alt+n", "sw")
|
||||
Accelerator("alt+r", "u")
|
||||
Accelerator("alt+f", "d")
|
||||
|
||||
Accelerator("alt+shift+m", "mapping")
|
||||
]]>
|
||||
</script>
|
||||
|
||||
|
||||
</muclient>
|
||||
Reference in New Issue
Block a user