Updates after 2.17.
This commit is contained in:
parent
3f61b8293b
commit
46160b592c
4 changed files with 257 additions and 50 deletions
36
scripts.xml
36
scripts.xml
|
@ -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("blokowanie_proba_ciebie") end
|
|||
tempTimer(1, function () disableTrigger("blokuje_cie") end)
|
||||
tempTimer(1, function () disableTrigger("walczysz_bez_broni") end)
|
||||
tempTimer(1, function () disableTrigger("wytracenie_tobie") end)
|
||||
tempTimer(1, function () disableTrigger("mozesz_dobywac") end)
|
||||
tempTimer(1, function () disableTrigger("ogluch") end)
|
||||
tempTimer(1, function () disableTrigger("powrot-z-oglucha") end)
|
||||
tempTimer(1, function () disableTrigger("masz_poczte") end)
|
||||
</script>
|
||||
<eventHandlerList/>
|
||||
</Script>
|
||||
<Script isActive="yes" isFolder="no">
|
||||
<name>collect</name>
|
||||
<name>ftpd-collect</name>
|
||||
<packageName></packageName>
|
||||
<script>scripts.inv["collect"] = scripts.inv["collect"] or {}
|
||||
scripts.inv.collect["modes"] = {"monety",
|
||||
|
@ -111,6 +113,36 @@ function scripts.inv.collect:print_help()
|
|||
end
|
||||
scripts:print_log("Aktualne ustawienie: " .. scripts.inv.collect.modes[scripts.inv.collect["current_mode"]])
|
||||
scripts:print_log("Ustaw poprzez zawolanie '/zbieranie [numer opcji]")
|
||||
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("\n\n" .. scripts.ui.bind_color .. "bind <yellow>]" .. scripts.ui.bind_color .. ": " .. command .. "\n\n")
|
||||
raiseEvent("playBeep")
|
||||
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("ateamTeamFollowBind")
|
||||
end
|
||||
|
||||
for k, v in pairs(ateam.team) do
|
||||
if type(k) == "number" then
|
||||
if ateam and ateam.objs and ateam.objs[k]["team_leader"] and string.find(line, ateam.objs[k]["desc"]) then
|
||||
scripts.utils.bind_functional(command, silent)
|
||||
raiseEvent("ateamTeamFollowBind")
|
||||
end
|
||||
end
|
||||
end
|
||||
end</script>
|
||||
<eventHandlerList/>
|
||||
</Script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue