-- ********************************************************
-- Сезон охоты стадия 1
-- ********************************************************
function bar_1_trader_give_quest()
task_manager.get_task_manager():give_task("sezon_ohoty_stadij_1")
end
function bar_1_trader_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_tushkano_head") ~= nil) and (db.actor
bject("mutant_part_dog_tail") ~= nil))
end
function bar_1_trader_not_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_tushkano_head") == nil) and (db.actor
bject("mutant_part_dog_tail") == nil))
end
function bar_1_trader_relocates_item(first_speaker, second_speaker)
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_tushkano_head")
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_dog_tail")
end
-- ********************************************************
-- Сезон охоты стадия 2
-- ********************************************************
function bar_2_trader_give_quest()
task_manager.get_task_manager():give_task("sezon_ohoty_stadij_2")
end
function bar_2_trader_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_flesh_eye") ~= nil) and (db.actor
bject("mutant_part_boar_leg") ~= nil))
end
function bar_2_trader_not_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_flesh_eye") == nil) and (db.actor
bject("mutant_part_boar_leg") == nil))
end
function bar_2_trader_relocates_item(first_speaker, second_speaker)
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_flesh_eye")
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_boar_leg")
end
-- ********************************************************
-- Сезон охоты стадия 3
-- ********************************************************
function bar_3_trader_give_quest()
task_manager.get_task_manager():give_task("sezon_ohoty_stadij_3")
end
function bar_3_trader_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_psevdodog_tail") ~= nil) and (db.actor
bject("mutant_part_snork_leg") ~= nil))
end
function bar_3_trader_not_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_psevdodog_tail") == nil) and (db.actor
bject("mutant_part_snork_leg") == nil))
end
function bar_3_trader_relocates_item(first_speaker, second_speaker)
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_psevdodog_tail")
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_snork_leg")
end
-- ********************************************************
-- Сезон охоты стадия 4
-- ********************************************************
function bar_4_trader_give_quest()
task_manager.get_task_manager():give_task("sezon_ohoty_stadij_4")
end
function bar_4_trader_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_burer_hand") ~= nil) and (db.actor
bject("mutant_part_krovosos_jaw") ~= nil))
end
function bar_4_trader_not_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_burer_hand") == nil) and (db.actor
bject("mutant_part_krovosos_jaw") == nil))
end
function bar_4_trader_relocates_item(first_speaker, second_speaker)
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_burer_hand")
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_krovosos_jaw")
end
-- ********************************************************
-- Сезон охоты стадия 5
-- ********************************************************
function bar_5_trader_give_quest()
task_manager.get_task_manager():give_task("sezon_ohoty_stadij_5")
end
function bar_5_trader_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_chimera_kogot") ~= nil) and (db.actor
bject("mutant_part_pseudogigant_eye") ~= nil))
end
function bar_5_trader_not_have_item(first_speaker, second_speaker)
return ((db.actor
bject("mutant_part_chimera_kogot") == nil) and (db.actor
bject("mutant_part_pseudogigant_eye") == nil))
end
function bar_5_trader_relocates_item(first_speaker, second_speaker)
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_chimera_kogot")
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "mutant_part_pseudogigant_eye")
end
function bar_5_trader_to_actor_give_outfit_1(first_speaker, second_speaker)
dialogs.relocate_item_section_to_actor(first_speaker, second_speaker, "dolg_exo_outfit")
end
function bar_5_trader_to_actor_give_outfit_2(first_speaker, second_speaker)
dialogs.relocate_item_section_to_actor(first_speaker, second_speaker, "dolg_scientific_outfit")
end