232 lines
10 KiB
XML
232 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE MudletPackage>
|
|
<MudletPackage version="1.001">
|
|
<ScriptPackage>
|
|
<ScriptGroup isActive="yes" isFolder="yes">
|
|
<name>ftpd-scripts</name>
|
|
<packageName></packageName>
|
|
<script></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 () disableTrigger("zaslaniasz_ty") 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>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"] == 3
|
|
or scripts.inv.collect["current_mode"] == 4 or scripts.inv.collect["current_mode"] == 6 then
|
|
if scripts.inv.collect.money_type == 1 then
|
|
sendAll("wez monety z ciala", true)
|
|
elseif scripts.inv.collect.money_type == 2 then
|
|
sendAll("wez srebrne monety z ciala", "wez zlote monety z ciala", true)
|
|
elseif scripts.inv.collect.money_type == 3 then
|
|
sendAll("wez zlote monety z ciala", true)
|
|
end
|
|
end
|
|
if scripts.inv.collect["current_mode"] == 2 or scripts.inv.collect["current_mode"] == 3
|
|
or scripts.inv.collect["current_mode"] == 5 or scripts.inv.collect["current_mode"] == 6 then
|
|
sendAll("wez kamienie z ciala",
|
|
"ocen kamienie", false)
|
|
end
|
|
scripts.inv.collect.check_body = false
|
|
end
|
|
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
|
|
|
|
function scripts.utils.bind_ship(command, if_locate, silent)
|
|
scripts.utils.ship_key = command
|
|
cecho("\n\n" .. scripts.ui.bind_color .. "bind <yellow>[" .. scripts.ui.bind_color .. ": " .. command .. "\n\n")
|
|
raiseEvent("playBeep")
|
|
end</script>
|
|
<eventHandlerList/>
|
|
</Script>
|
|
<Script isActive="yes" isFolder="no">
|
|
<name>ftpd-sneaky-click</name>
|
|
<packageName></packageName>
|
|
<script>function scripts_ui_info_sneaky_click(id)
|
|
if id then
|
|
if id < 1 or id > 3 then
|
|
error("Wrong input")
|
|
end
|
|
|
|
amap.walk_mode = id
|
|
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>")
|
|
else
|
|
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
|
|
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>
|
|
<Script isActive="yes" isFolder="no">
|
|
<name>ftpd-trigger-people</name>
|
|
<packageName></packageName>
|
|
<script>function scripts.people:process_person_trigger(text)
|
|
local to_select_string = text
|
|
local r, g, b
|
|
|
|
if scripts.people.trigger_suffix[string.lower(text)] then
|
|
to_select_string = to_select_string .. " (" .. scripts.people.trigger_suffix[string.lower(text)] .. ")"
|
|
selectString(text, 1)
|
|
r, g, b = getFgColor()
|
|
fg("slate_gray")
|
|
replace(to_select_string)
|
|
end
|
|
|
|
selectString(text, 1)
|
|
setFgColor(r, g, b)
|
|
resetFormat()
|
|
end
|
|
|
|
function scripts.people:process_trigger_name(short)
|
|
selectString(short, 1)
|
|
local add_text = ""
|
|
|
|
local obj = scripts.people.people_triggers_objects[scripts.people.people_triggers[string.lower(short)]]
|
|
local guild_name = scripts.people:get_guild_name(obj["guild"])
|
|
|
|
if obj["name"] ~= "" and guild_name then
|
|
add_text = obj["name"] .. ", " .. guild_name
|
|
elseif obj["name"] ~= "" then
|
|
add_text = obj["name"]
|
|
elseif guild_name then
|
|
add_text = guild_name
|
|
end
|
|
|
|
local r, g, b = getFgColor()
|
|
|
|
replace(short .. " (" .. add_text .. ")")
|
|
|
|
selectString(short, 1)
|
|
setFgColor(r, g, b)
|
|
|
|
if obj["name"] ~= "" then
|
|
selectString(obj["name"], 1)
|
|
fg("slate_grey")
|
|
end
|
|
|
|
if guild_name then
|
|
selectString(guild_name, 1)
|
|
fg("slate_grey")
|
|
end
|
|
resetFormat()
|
|
end</script>
|
|
<eventHandlerList/>
|
|
</Script>
|
|
<Script isActive="yes" isFolder="no">
|
|
<name>ftpd-amap-notes</name>
|
|
<packageName></packageName>
|
|
<script>function amap_db_check_note()
|
|
if amap.curr.id then
|
|
if getRoomUserData(amap.curr.id, "note") ~= "" and amap.db.show_notes then
|
|
--amap:print_log("<light_slate_blue>" .. getRoomUserData(amap.curr.id, "note"))
|
|
cecho(scripts.ui.bind_color .. "\ninfo: " .. scripts.ui.bind_color .. getRoomUserData(amap.curr.id, "note") .. "\n")
|
|
end
|
|
end
|
|
end
|
|
|
|
</script>
|
|
<eventHandlerList/>
|
|
</Script>
|
|
<Script isActive="yes" isFolder="no">
|
|
<name>ftpd-attack-mode</name>
|
|
<packageName></packageName>
|
|
<script>function scripts_ui_info_attack_mode_click()
|
|
ateam.attack_mode = ateam.attack_mode%3 + 1
|
|
scripts.ui.footer_info_attack_mode:echo("<font color='"..scripts.ui["footer_info_normal"].."'>Atak:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font> <font color='"..scripts.ui["footer_info_neutral"].."'>" .. ateam["footer_info_attack_mode_to_text"][ateam.attack_mode] .. "</font>")
|
|
scripts:print_log("Zmieniam tryb ataku.")
|
|
end</script>
|
|
<eventHandlerList/>
|
|
</Script>
|
|
</ScriptGroup>
|
|
</ScriptPackage>
|
|
</MudletPackage>
|