Updates after 2.17.

This commit is contained in:
Bartek Stalewski 2017-02-14 12:30:34 +01:00
parent 3f61b8293b
commit 46160b592c
4 changed files with 257 additions and 50 deletions

View file

@ -13,7 +13,7 @@
</script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>disable</name>
<name>ftpd-disable</name>
<packageName></packageName>
<script>-------------------------------------------------
-- Put your Lua functions here. --
@ -28,13 +28,15 @@ tempTimer(1, function () disableTrigger(&quot;blokowanie_proba_ciebie&quot;) end
tempTimer(1, function () disableTrigger(&quot;blokuje_cie&quot;) end)
tempTimer(1, function () disableTrigger(&quot;walczysz_bez_broni&quot;) end)
tempTimer(1, function () disableTrigger(&quot;wytracenie_tobie&quot;) end)
tempTimer(1, function () disableTrigger(&quot;mozesz_dobywac&quot;) end)
tempTimer(1, function () disableTrigger(&quot;ogluch&quot;) end)
tempTimer(1, function () disableTrigger(&quot;powrot-z-oglucha&quot;) end)
tempTimer(1, function () disableTrigger(&quot;masz_poczte&quot;) end)
</script>
<eventHandlerList/>
</Script>
<Script isActive="yes" isFolder="no">
<name>collect</name>
<name>ftpd-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;,
@ -111,6 +113,36 @@ function scripts.inv.collect:print_help()
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>
<Script isActive="yes" isFolder="no">
<name>ftpd-binds</name>
<packageName></packageName>
<script>function scripts.utils.bind_functional(command, silent)
scripts.utils.functional_key = command
if not silent then
cecho(&quot;\n\n&quot; .. scripts.ui.bind_color .. &quot;bind &lt;yellow&gt;]&quot; .. scripts.ui.bind_color .. &quot;: &quot; .. command .. &quot;\n\n&quot;)
raiseEvent(&quot;playBeep&quot;)
end
end
function scripts.utils.bind_functional_team_follow(line, command, delay, silent)
-- check whether the line contains the team leader name
if not line then
scripts.utils.bind_functional(command, delay, silent)
raiseEvent(&quot;ateamTeamFollowBind&quot;)
end
for k, v in pairs(ateam.team) do
if type(k) == &quot;number&quot; then
if ateam and ateam.objs and ateam.objs[k][&quot;team_leader&quot;] and string.find(line, ateam.objs[k][&quot;desc&quot;]) then
scripts.utils.bind_functional(command, silent)
raiseEvent(&quot;ateamTeamFollowBind&quot;)
end
end
end
end</script>
<eventHandlerList/>
</Script>