Initial commit.

This commit is contained in:
Bartek Stalewski 2017-01-25 00:27:14 +01:00
commit 4f3db9e27f
5 changed files with 1505 additions and 0 deletions

1
README.MD Normal file
View File

@ -0,0 +1 @@
Skrypty do [Mudleta](http://www.mudlet.org) - uzupełnienie skryptów [Adremena](http://arkadia.kamerdyner.net).

230
aliases.xml Normal file
View File

@ -0,0 +1,230 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
<AliasPackage>
<AliasGroup isActive="yes" isFolder="yes">
<name>ftpd-aliases</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<AliasGroup isActive="yes" isFolder="yes">
<name>doors</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>od</name>
<script></script>
<command>otworz drzwi sygnetem; otworz drzwi</command>
<packageName></packageName>
<regex>^od$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>zd</name>
<script></script>
<command>zamknij drzwi; zamknij drzwi sygnetem</command>
<packageName></packageName>
<regex>^zd$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>o2d</name>
<script></script>
<command>otworz drugie drzwi sygnetem; otworz drugie drzwi</command>
<packageName></packageName>
<regex>^o2d$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>z2d</name>
<script></script>
<command>zamknij drugie drzwi; zamknij drugie drzwi sygnetem</command>
<packageName></packageName>
<regex>^z2d$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>inventory</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<AliasGroup isActive="yes" isFolder="yes">
<name>bags</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>zs</name>
<script>send(&quot;otworz &quot; .. scripts.inv:get_bag_string_biernik(&quot;money&quot;), false)
send(&quot;wez &quot; .. matches[2] .. &quot; z &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;money&quot;), false)
send(&quot;zamknij &quot; .. scripts.inv:get_bag_string_biernik(&quot;money&quot;), false)</script>
<command></command>
<packageName></packageName>
<regex>^/zs (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>ds</name>
<script>send(&quot;otworz &quot; .. scripts.inv:get_bag_string_biernik(&quot;money&quot;), false)
send(&quot;wloz &quot; .. matches[2] .. &quot; do &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;money&quot;), false)
send(&quot;zamknij &quot; .. scripts.inv:get_bag_string_biernik(&quot;money&quot;), false)</script>
<command></command>
<packageName></packageName>
<regex>^/ds (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>os</name>
<script>send(&quot;zajrzyj do &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;money&quot;), false)</script>
<command></command>
<packageName></packageName>
<regex>^/os$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>zp</name>
<script>if matches[2] == &quot;monety&quot; then
expandAlias(&quot;wem&quot;, false)
else
send(&quot;wez &quot; .. matches[2] .. &quot; z &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;other&quot;), false)
end</script>
<command></command>
<packageName></packageName>
<regex>^/zp (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>dp</name>
<script>if matches[2] == &quot;monety&quot; then
expandAlias(&quot;wlm&quot;, false)
else
send(&quot;wloz &quot; .. matches[2] .. &quot; do &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;other&quot;), false)
end</script>
<command></command>
<packageName></packageName>
<regex>^/dp (.*)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>op</name>
<script>send(&quot;zajrzyj do &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;other&quot;), false)</script>
<command></command>
<packageName></packageName>
<regex>^/op$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>np</name>
<script>send(&quot;napelnij &quot; .. scripts.inv:get_bag_string_biernik(&quot;other&quot;), false)</script>
<command></command>
<packageName></packageName>
<regex>^/np$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>ow</name>
<script>send(&quot;zajrzyj do woreczka&quot;, false)</script>
<command></command>
<packageName></packageName>
<regex>^/ow$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>wem-ftpd</name>
<script>send(&quot;otworz &quot; .. scripts.inv:get_bag_string_biernik(&quot;money&quot;), false)
send(&quot;wez monety z &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;money&quot;), false)
send(&quot;zamknij &quot; .. scripts.inv:get_bag_string_biernik(&quot;money&quot;), false)</script>
<command></command>
<packageName></packageName>
<regex>^wem$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>wlm-ftpd</name>
<script>send(&quot;otworz &quot; .. scripts.inv:get_bag_string_biernik(&quot;money&quot;), false)
send(&quot;wloz monety do &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;money&quot;), false)
send(&quot;zamknij &quot; .. scripts.inv:get_bag_string_biernik(&quot;money&quot;), false)</script>
<command></command>
<packageName></packageName>
<regex>^wlm$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>equipment</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>bz</name>
<script>expandAlias(&quot;/db1&quot;, false)
expandAlias(&quot;/db2&quot;, false)</script>
<command></command>
<packageName></packageName>
<regex>^/bz$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>bd</name>
<script>expandAlias(&quot;/ob1&quot;, false)
expandAlias(&quot;/ob2&quot;, false)</script>
<command></command>
<packageName></packageName>
<regex>^/bd$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>sz</name>
<script>send(&quot;wez wszystkie zbroje z &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;other&quot;), false)
send(&quot;zaloz wszystkie zbroje&quot;, false)</script>
<command></command>
<packageName></packageName>
<regex>^/sz$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>sd</name>
<script>send(&quot;wloz wszystkie zbroje do &quot; .. scripts.inv:get_bag_string_dopelniacz(&quot;other&quot;), false)
</script>
<command></command>
<packageName></packageName>
<regex>^/sd$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>sztylet</name>
<script>if matches[2] == &quot;on&quot; then
expandAlias(&quot;/db3&quot;, false)
elseif matches[2] == &quot;off&quot; then
expandAlias(&quot;/ob3&quot;, false)
end</script>
<command></command>
<packageName></packageName>
<regex>^/sztylet (.*)$</regex>
</Alias>
</AliasGroup>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>magiki</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>mister</name>
<script></script>
<command></command>
<packageName></packageName>
<regex>^/mister$</regex>
</Alias>
</AliasGroup>
<AliasGroup isActive="yes" isFolder="yes">
<name>oper</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>fk</name>
<script>local s = matches[2]
s = string.gsub(s, &quot;%$&quot;, &quot;\n&quot;)
feedTriggers(&quot;\n&quot; .. s .. &quot;\n&quot;)
echo(&quot;\n&quot;)</script>
<command></command>
<packageName></packageName>
<regex>^/fk (.+)</regex>
</Alias>
</AliasGroup>
</AliasGroup>
</AliasPackage>
</MudletPackage>

22
keys.xml Normal file
View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
<KeyPackage>
<KeyGroup isActive="yes" isFolder="yes">
<name>ftpd-keys</name>
<packageName></packageName>
<script></script>
<command></command>
<keyCode>-1</keyCode>
<keyModifier>-1</keyModifier>
<Key isActive="yes" isFolder="no">
<name>idz</name>
<packageName></packageName>
<script>send(&quot;idz&quot;, false)</script>
<command></command>
<keyCode>16777275</keyCode>
<keyModifier>0</keyModifier>
</Key>
</KeyGroup>
</KeyPackage>
</MudletPackage>

112
scripts.xml Normal file
View File

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>ftpd-scripts</name>
<packageName></packageName>
<script>-------------------------------------------------
-- Put your Lua functions here. --
-- --
-- Note that you can also use external Scripts --
-------------------------------------------------
</script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>disable</name>
<packageName></packageName>
<script>-------------------------------------------------
-- Put your Lua functions here. --
-- --
-- Note that you can also use external Scripts --
-------------------------------------------------
tempTimer(1, function () disableAlias(&quot;wez_monety_z&quot;) end)
tempTimer(1, function () disableAlias(&quot;wloz_monety_do&quot;) end)
tempTimer(1, function () disableTrigger(&quot;przelamanie&quot;) end)
tempTimer(1, function () disableTrigger(&quot;blokuje_cie&quot;) end)</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">
<name>collect</name>
<packageName></packageName>
<script>scripts.inv[&quot;collect&quot;] = scripts.inv[&quot;collect&quot;] or {}
scripts.inv.collect[&quot;modes&quot;] = {&quot;monety&quot;,
&quot;kamienie&quot;,
&quot;monety i kamienie&quot;,
&quot;druzynowe monety&quot;,
&quot;druzynowe kamienie&quot;,
&quot;druzynowe monety i kamienie&quot;,
&quot;nic&quot;}
scripts.inv.collect[&quot;current_mode&quot;] = 3
scripts.inv.collect[&quot;footer_info_collect_to_text&quot;] = {&quot;M&quot;, &quot;K&quot;, &quot;MK&quot;, &quot;M+&quot;, &quot;K+&quot;, &quot;M+K+&quot;, &quot;&quot;}
scripts.ui.bind_color = &quot;&lt;LawnGreen&gt;&quot;
function scripts.inv.collect:set_mode(mode)
if not scripts.inv.collect:check_option(mode) then
return
end
scripts.inv.collect[&quot;current_mode&quot;] = mode
end
function scripts.inv.collect:check_option(mode)
if not scripts.inv.collect[&quot;modes&quot;][mode] then
scripts:print_log(&quot;Nie ma takiej opcji, sprawdz /zbieranie&quot;)
return false
else
return true
end
end
function scripts.inv.collect:key_pressed(force)
if scripts.inv.collect.check_body or force == true then
if scripts.inv.collect[&quot;current_mode&quot;] == 1 or scripts.inv.collect[&quot;current_mode&quot;] == 4 then
sendAll(&quot;wez monety z ciala&quot;,
&quot;odloz miedziane monety&quot;,
false)
elseif scripts.inv.collect[&quot;current_mode&quot;] == 2 or scripts.inv.collect[&quot;current_mode&quot;] == 5 then
sendAll(&quot;wez kamienie z ciala&quot;,
&quot;ocen kamienie&quot;,
false)
elseif scripts.inv.collect[&quot;current_mode&quot;] == 3 or scripts.inv.collect[&quot;current_mode&quot;] == 6 then
sendAll(&quot;wez monety z ciala&quot;,
&quot;odloz miedziane monety&quot;,
&quot;wez kamienie z ciala&quot;,
&quot;ocen kamienie&quot;,
false)
end
scripts.inv.collect.check_body = false
end
end
function scripts.inv.collect:killed_action()
if scripts.inv.collect[&quot;current_mode&quot;] ~= 7 then
cecho(&quot;\n&quot; .. scripts.ui.bind_color .. &quot;[bind &lt;yellow&gt;ctrl+3]&quot; .. scripts.ui.bind_color .. &quot; wez z ciala\n&quot;)
scripts.inv.collect.check_body = true
end
end
function scripts.inv.collect:team_killed_action(name)
if scripts.inv.collect[&quot;current_mode&quot;] ~= 4 and scripts.inv.collect[&quot;current_mode&quot;] ~= 5
and scripts.inv.collect[&quot;current_mode&quot;] ~= 6 then
return
end
if ateam.team_names[name] then
cecho(&quot;\n&quot; .. scripts.ui.bind_color .. &quot;[bind &lt;yellow&gt;ctrl+3]&quot; .. scripts.ui.bind_color ..&quot; wez z ciala\n&quot;)
scripts.inv.collect.check_body = true
end
end
function scripts.inv.collect:print_help()
scripts:print_log(&quot;Wspierane opcje:&quot;)
for k, v in pairs(scripts.inv.collect[&quot;modes&quot;]) do
echo (k .. &quot; - &quot; .. v .. &quot;\n&quot;)
end
scripts:print_log(&quot;Aktualne ustawienie: &quot; .. scripts.inv.collect.modes[scripts.inv.collect[&quot;current_mode&quot;]])
scripts:print_log(&quot;Ustaw poprzez zawolanie '/zbieranie [numer opcji]&quot;)
end</script>
<eventHandlerList/>
</Script>
</ScriptGroup>
</ScriptPackage>
</MudletPackage>

1140
triggers.xml Normal file

File diff suppressed because it is too large Load Diff