|
|
|
@ -405,7 +405,7 @@ function doControl() |
|
|
|
|
for i = 1, 12 do |
|
|
|
|
local string_render = (menu[i].run and menu[i][1] or menu[i][2]) |
|
|
|
|
if i == 5 then |
|
|
|
|
local text = { "{d10000}OFF", "{06940f}Íåôòü", "{06940f}Óãîëü", "{06940f}Äåðåâî" } |
|
|
|
|
local text = { "{d10000}OFF", "{06940f}Íåôòü", "{06940f}Óãîëü", "{06940f}Äåðåâî", "{06940f}Âñå" } |
|
|
|
|
if text[inifiles.Settings.luCheckerCargo+1] ~= nil then |
|
|
|
|
string_render = string.format("%s%s", string_render, text[inifiles.Settings.luCheckerCargo+1]) |
|
|
|
|
end |
|
|
|
@ -437,7 +437,7 @@ function doControl() |
|
|
|
|
end |
|
|
|
|
if i == 5 then |
|
|
|
|
inifiles.Settings.luCheckerCargo = inifiles.Settings.luCheckerCargo + 1 |
|
|
|
|
if inifiles.Settings.luCheckerCargo >= 4 then |
|
|
|
|
if inifiles.Settings.luCheckerCargo >= 5 then |
|
|
|
|
inifiles.Settings.luCheckerCargo = 0 |
|
|
|
|
end |
|
|
|
|
luChecker.load_position.x, luChecker.load_position.y, luChecker.load_position.z = 7777.0, 7777.0, 7777.0 |
|
|
|
@ -653,7 +653,7 @@ function doDialog() |
|
|
|
|
end |
|
|
|
|
if str:find("Ñîëî") then |
|
|
|
|
inifiles.Settings.luCheckerCargo = inifiles.Settings.luCheckerCargo + 1 |
|
|
|
|
if inifiles.Settings.luCheckerCargo >= 4 then |
|
|
|
|
if inifiles.Settings.luCheckerCargo >= 5 then |
|
|
|
|
inifiles.Settings.luCheckerCargo = 0 |
|
|
|
|
end |
|
|
|
|
luChecker.load_position.x, luChecker.load_position.y, luChecker.load_position.z = 7777.0, 7777.0, 7777.0 |
|
|
|
@ -1849,7 +1849,7 @@ function ShowDialog1(int, dtext, dinput, string_or_number, ini1, ini2) |
|
|
|
|
(pair_mode and "Ðåæèì ïàðû\t{59fc30}" .. pair_mode_name .. "[" .. pair_mode_id .. "]" or |
|
|
|
|
"Ðåæèì ïàðû\t{ff0000}OFF") |
|
|
|
|
|
|
|
|
|
local text = { "{ff0000}OFF", "{59fc30}Íåôòü", "{59fc30}Óãîëü", "{59fc30}Äåðåâî" } |
|
|
|
|
local text = { "{ff0000}OFF", "{59fc30}Íåôòü", "{59fc30}Óãîëü", "{59fc30}Äåðåâî", "{59fc30}Âñå" } |
|
|
|
|
if text[inifiles.Settings.luCheckerCargo+1] ~= nil then |
|
|
|
|
dialogLine[#dialogLine + 1] = |
|
|
|
|
"Ñîëî-÷åêåð\t" .. (text[inifiles.Settings.luCheckerCargo+1]) |
|
|
|
@ -3528,8 +3528,8 @@ function transponder_solo_message(info) |
|
|
|
|
local check_label = { "id", "name", "action", "cargo" } |
|
|
|
|
|
|
|
|
|
local cargo_symbol = (inifiles.Settings.luCheckerCargo == 1 and "n" or (inifiles.Settings.luCheckerCargo == 2 and "y" or (inifiles.Settings.luCheckerCargo == 3 and "l" or ""))) |
|
|
|
|
if cargo_symbol ~= "" then |
|
|
|
|
if solo_data["cargo"]:find(cargo_symbol) then |
|
|
|
|
if cargo_symbol ~= "" or inifiles.Settings.luCheckerCargo == 4 then |
|
|
|
|
if solo_data["cargo"]:find(cargo_symbol) or inifiles.Settings.luCheckerCargo == 4 then |
|
|
|
|
for i = 1, #solo_data_antiflood[sender] do -- Ïîèñê äóáëèêàòà |
|
|
|
|
local counter = 0 |
|
|
|
|
for s = 1, #check_label do |
|
|
|
|