moskvin
Проверь это:
Цитата:
function repair_precond(npc, actor)
local item_in_slot_1 = db.actor:item_in_slot(1)
local item_in_slot_2 = db.actor:item_in_slot(2)
local item_in_slot_6 = db.actor:item_in_slot(6)
if item_in_slot_1 ~= nil and 1 > item_in_slot_1:condition() + 0.01 then return true
elseif item_in_slot_2 ~= nil and 1 > item_in_slot_2:condition() + 0.01 then return true
elseif item_in_slot_6 ~= nil and 1 > item_in_slot_6:condition() + 0.01 then return true
else return false
end
end
|
__________________
"Чем больше нас, тем меньше их..."
|