197 lines
8.8 KiB
XML
197 lines
8.8 KiB
XML
<?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>ftpd-disable</name>
|
|
<packageName></packageName>
|
|
<script>-------------------------------------------------
|
|
-- Put your Lua functions here. --
|
|
-- --
|
|
-- Note that you can also use external Scripts --
|
|
-------------------------------------------------
|
|
tempTimer(1, function () disableAlias("wez_monety_z") end)
|
|
tempTimer(1, function () disableAlias("wloz_monety_do") end)
|
|
tempTimer(1, function () disableTrigger("przelamanie") end)
|
|
tempTimer(1, function () disableTrigger("blokowanie_proba_kogos") end)
|
|
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)
|
|
tempTimer(1, function () disableScript("ui_new_location_event") end)</script>
|
|
<eventHandlerList/>
|
|
</Script>
|
|
<Script isActive="yes" isFolder="no">
|
|
<name>ftpd-collect</name>
|
|
<packageName></packageName>
|
|
<script>scripts.inv["collect"] = scripts.inv["collect"] or {}
|
|
scripts.inv.collect["modes"] = {"monety",
|
|
"kamienie",
|
|
"monety i kamienie",
|
|
"druzynowe monety",
|
|
"druzynowe kamienie",
|
|
"druzynowe monety i kamienie",
|
|
"nic"}
|
|
scripts.inv.collect["current_mode"] = 3
|
|
scripts.inv.collect["footer_info_collect_to_text"] = {"M", "K", "MK", "M+", "K+", "M+K+", ""}
|
|
scripts.ui.bind_color = "<LawnGreen>"
|
|
|
|
function scripts.inv.collect:set_mode(mode)
|
|
if not scripts.inv.collect:check_option(mode) then
|
|
return
|
|
end
|
|
scripts.inv.collect["current_mode"] = mode
|
|
end
|
|
|
|
function scripts.inv.collect:check_option(mode)
|
|
if not scripts.inv.collect["modes"][mode] then
|
|
scripts:print_log("Nie ma takiej opcji, sprawdz /zbieranie")
|
|
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["current_mode"] == 1 or scripts.inv.collect["current_mode"] == 4 then
|
|
sendAll("wez monety z ciala",
|
|
"odloz miedziane monety",
|
|
false)
|
|
elseif scripts.inv.collect["current_mode"] == 2 or scripts.inv.collect["current_mode"] == 5 then
|
|
sendAll("wez kamienie z ciala",
|
|
"ocen kamienie",
|
|
false)
|
|
elseif scripts.inv.collect["current_mode"] == 3 or scripts.inv.collect["current_mode"] == 6 then
|
|
sendAll("wez monety z ciala",
|
|
"odloz miedziane monety",
|
|
"wez kamienie z ciala",
|
|
"ocen kamienie",
|
|
false)
|
|
end
|
|
scripts.inv.collect.check_body = false
|
|
end
|
|
end
|
|
|
|
function scripts.inv.collect:killed_action()
|
|
if scripts.inv.collect["current_mode"] ~= 7 then
|
|
cecho("\n" .. scripts.ui.bind_color .. "[bind <yellow>ctrl+3]" .. scripts.ui.bind_color .. " wez z ciala\n")
|
|
scripts.inv.collect.check_body = true
|
|
end
|
|
end
|
|
|
|
function scripts.inv.collect:team_killed_action(name)
|
|
if scripts.inv.collect["current_mode"] ~= 4 and scripts.inv.collect["current_mode"] ~= 5
|
|
and scripts.inv.collect["current_mode"] ~= 6 then
|
|
return
|
|
end
|
|
|
|
if ateam.team_names[name] then
|
|
cecho("\n" .. scripts.ui.bind_color .. "[bind <yellow>ctrl+3]" .. scripts.ui.bind_color .." wez z ciala\n")
|
|
scripts.inv.collect.check_body = true
|
|
end
|
|
end
|
|
|
|
function scripts.inv.collect:print_help()
|
|
scripts:print_log("Wspierane opcje:")
|
|
for k, v in pairs(scripts.inv.collect["modes"]) do
|
|
echo (k .. " - " .. v .. "\n")
|
|
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-beep-bind</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
|
|
</script>
|
|
<eventHandlerList/>
|
|
</Script>
|
|
<Script isActive="yes" isFolder="no">
|
|
<name>ftpd-sneaky-click</name>
|
|
<packageName></packageName>
|
|
<script>function scripts.ui:info_sneaky_click()
|
|
amap.walk_mode = amap.walk_mode%3 + 1
|
|
scripts:print_log("Zmieniam tryb chodzenia.")
|
|
scripts.ui.footer_info_sneaky:echo("<font color='"..scripts.ui["footer_info_normal"].."'>Przemykam:</font> " .. scripts.ui["footer_info_walk_mode_to_text"][amap.walk_mode] .. "</font>")
|
|
end</script>
|
|
<eventHandlerList/>
|
|
</Script>
|
|
<Script isActive="yes" isFolder="no">
|
|
<name>ftpd-new-location</name>
|
|
<packageName></packageName>
|
|
<script>function ui_new_location_event(...)
|
|
if not amap["went_sneaky"] then
|
|
scripts.ui:info_hidden_update("")
|
|
scripts.ui.info_hidden_value = 0
|
|
scripts.ui.footer_map:setColor(scripts.ui.footer_r, scripts.ui.footer_g, scripts.ui.footer_b)
|
|
scripts.ui.footer_main:setColor(scripts.ui.footer_r, scripts.ui.footer_g, scripts.ui.footer_b)
|
|
disableTimer("hidden_timer")
|
|
else
|
|
scripts.ui.info_hidden_value = 0
|
|
scripts.ui:info_hidden_update("0")
|
|
scripts.ui.footer_map:setColor(128,128,128)
|
|
scripts.ui.footer_main:setColor(128,128,128)
|
|
enableTimer("hidden_timer")
|
|
end
|
|
|
|
amap["went_sneaky"] = false
|
|
end</script>
|
|
<eventHandlerList/>
|
|
</Script>
|
|
<Script isActive="yes" isFolder="no">
|
|
<name>ftpd-temp_bind</name>
|
|
<packageName></packageName>
|
|
<script>scripts.temp_binds = scripts.temp_binds or {}
|
|
scripts.temp_binds.binds = {["-"] = nil, ["="] = nil, ["f5"] = nil, ["f6"] = nil, ["f7"] = nil, ["f8"] = nil}
|
|
disableKey("temp_bind-")
|
|
disableKey("temp_bind=")
|
|
disableKey("temp_bindf5")
|
|
disableKey("temp_bindf6")
|
|
disableKey("temp_bindf7")
|
|
disableKey("temp_bindf8")
|
|
|
|
function scripts.temp_binds.unbind_temp(silent)
|
|
scripts.temp_binds.binds = {["-"] = nil, ["="] = nil, ["f5"] = nil, ["f6"] = nil, ["f7"] = nil, ["f8"] = nil}
|
|
disableKey("temp_bind-")
|
|
disableKey("temp_bind=")
|
|
disableKey("ftpd-temp_bindf5")
|
|
disableKey("ftpd-temp_bindf6")
|
|
disableKey("ftpd-temp_bindf7")
|
|
disableKey("ftpd-temp_bindf8")
|
|
|
|
if not silent then
|
|
scripts:print_log("Wyczyszczone")
|
|
end
|
|
end
|
|
|
|
scripts.utils:enable_keybinds(true)</script>
|
|
<eventHandlerList/>
|
|
</Script>
|
|
</ScriptGroup>
|
|
</ScriptPackage>
|
|
</MudletPackage>
|