function medic()
 local money = math.floor(500)
 return db.actor:money()>=money
end

function medic_den(actor, npc) 
local actor = db.actor 
all_money_actor = actor:money() 
if actor and npc then 
dialogs.relocate_money(npc, 500, "out") 
end 
end 

function quest_yan_per_give() 
task_manager.get_task_manager():give_task("quest_yan_per_give") 
end 
function is_has_yan_per() 
if db.actor:object("yan_doc_1") then 
return true 
end 
return false 
end 
function transfer_yan_per(first_speaker, second_speaker) 
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "yan_doc_1") 
end 

function yan_per()
 local money = math.floor(30000)
 return db.actor:money()>=money
end

function yan_perex(actor, npc) 
local actor = db.actor 
all_money_actor = actor:money() 
if actor and npc then 
dialogs.relocate_money(npc, 30000, "out") 
end 
end 

function spawn_yan_per_1()
alife():create("yan_doc_1",vector():set(97.633583068848,-16.126882553101,60.836441040039),2324,1213)
end

local ObjId=0
function yan_per_1()
    local obj= alife():create("pda_yan_1",vector():set(169.79116821289,1.5551152944565,86.588500976563),141364,1665)
    local text = "A Kórházhoz"
    level.map_add_object_spot_ser(obj.id, "level_changer_up", text)
    ObjId=obj.id 
end

function quest_yan_af_give() 
task_manager.get_task_manager():give_task("quest_yan_af_give") 
end 
function is_has_yan_af() 
if db.actor:object("af_oasis_heart") then 
return true 
end 
return false 
end 
function transfer_yan_af(first_speaker, second_speaker) 
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "af_oasis_heart") 
end 

function quest_yan_af_1_give() 
task_manager.get_task_manager():give_task("quest_yan_af_1_give") 
end 
function is_has_yan_af_1() 
if db.actor:object("af_vyvert") then 
return true 
end 
return false 
end 
function transfer_yan_af_1(first_speaker, second_speaker) 
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "af_vyvert") 
end 

function yan_det_1(first_speaker, second_speaker) 
dialogs.relocate_item_section(second_speaker, "detector_advanced", "in") 
end

function spawn_yan_ins_1()
alife():create("toolkit_2",vector():set(50.840564727783,6.9737987518311,-46.708679199219),83652,1683)
end

function spawn_yan_art_1()
alife():create("af_vyvert",vector():set(-173.01875305176,2.0670948028564,-147.68002319336),5332,1636)
end

function quest_yan_texnik_give() 
task_manager.get_task_manager():give_task("quest_yan_texnik_give") 
end 
function is_has_yan_texnik() 
if db.actor:object("toolkit_2") then 
return true 
end 
return false 
end 
function transfer_yan_texnik(first_speaker, second_speaker) 
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "toolkit_2") 
end 

function swm_mar_boar_1_old_hunt_quest_start()
task_manager.get_task_manager():give_task("mar_boar_1_old_hunt_quest_give")
end
function is_has_mar_boar_1_old_dead(first_speaker, second_speaker)
if has_alife_info("mar_boar_1_old_dead")
and not has_alife_info("mar_boar_1_old_hunt_quest_done") then
return false
end
return true
end

function quest_yan_texnik_1_give() 
task_manager.get_task_manager():give_task("quest_yan_texnik_1_give") 
end 
function is_has_yan_texnik_1() 
if db.actor:object("pda_yan_2") then 
return true 
end 
return false 
end 
function transfer_yan_texnik_1(first_speaker, second_speaker) 
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "pda_yan_2") 
end 

function quest_yan_texnik_2_give() 
task_manager.get_task_manager():give_task("quest_yan_texnik_2_give") 
end 
function is_has_yan_texnik_2() 
if db.actor:object("wpn_m200") then 
return true 
end 
return false 
end 
function transfer_yan_texnik_2(first_speaker, second_speaker) 
dialogs.relocate_item_section_from_actor(first_speaker, second_speaker, "wpn_m200") 
end 

function spawn_yan_cel() 
local x= -0.15084840357304
local y= 20.662446975708
local z= -11.188264846802
local level_vertex= 61333
local game_vertex_id= 1679
alife():create("yan_cel",vector():set(x,y,z),level_vertex,game_vertex_id) 
end 
 
function save_variable(variable_name, value) 
xr_logic.pstor_store(db.actor, variable_name, value) 
end 
function load_variable(variable_name, value_if_not_found) 
return xr_logic.pstor_retrieve(db.actor, variable_name, value_if_not_found) 
end

function spawn_yan_per_pm()
alife():create("wpn_m200",vector():set(138.37687683105,-7.7588744163513,-26.089576721191),5305,1217)
end

function spawn_yanspec_2() 
local x= 123.49349212646
local y= 1.3664897680283
local z= -87.775970458984
local level_vertex= 121101
local game_vertex_id= 1713
alife():create("prip_1",vector():set(x,y,z),level_vertex,game_vertex_id) 
end 
 
function save_variable(variable_name, value) 
xr_logic.pstor_store(db.actor, variable_name, value) 
end 
function load_variable(variable_name, value_if_not_found) 
return xr_logic.pstor_retrieve(db.actor, variable_name, value_if_not_found) 
end

function spawn_yanspec_3() 
local x= 104.45554351807
local y= 1.3190748691559
local z= -86.164817810059
local level_vertex= 108668
local game_vertex_id= 1713
alife():create("prip_2",vector():set(x,y,z),level_vertex,game_vertex_id) 
end 
 
function save_variable(variable_name, value) 
xr_logic.pstor_store(db.actor, variable_name, value) 
end 
function load_variable(variable_name, value_if_not_found) 
return xr_logic.pstor_retrieve(db.actor, variable_name, value_if_not_found) 
end

function spawn_yanspec_4() 
local x= 127.82653808594
local y= 0.2145109474659
local z= -71.856246948242
local level_vertex= 124215
local game_vertex_id= 1724
alife():create("prip_1",vector():set(x,y,z),level_vertex,game_vertex_id) 
end 
 
function save_variable(variable_name, value) 
xr_logic.pstor_store(db.actor, variable_name, value) 
end 
function load_variable(variable_name, value_if_not_found) 
return xr_logic.pstor_retrieve(db.actor, variable_name, value_if_not_found) 
end

function spawn_yanspec_5() 
local x= 111.18510437012
local y= 1.5607651472092
local z= -69.637199401855
local level_vertex= 113745
local game_vertex_id= 1714
alife():create("prip_2",vector():set(x,y,z),level_vertex,game_vertex_id) 
end 
 
function save_variable(variable_name, value) 
xr_logic.pstor_store(db.actor, variable_name, value) 
end 
function load_variable(variable_name, value_if_not_found) 
return xr_logic.pstor_retrieve(db.actor, variable_name, value_if_not_found) 
end
function spawn_af_snork_1()
alife():create("snork_indoor_normal",vector():set(-142.9391784668,7.0847911834717,-191.64788818359),15431,1647)
end
function spawn_af_snork_2()
alife():create("snork_indoor_normal",vector():set(-142.9391784668,7.0847911834717,-191.64788818359),15431,1647)
end
function spawn_af_snork_3()
alife():create("snork_indoor_normal",vector():set(-142.9391784668,7.0847911834717,-191.64788818359),15431,1647)
end
function spawn_af_snork_4()
alife():create("snork_indoor_normal",vector():set(-142.9391784668,7.0847911834717,-191.64788818359),15431,1647)
end
function spawn_af_snork_5()
alife():create("snork_indoor_normal",vector():set(-142.9391784668,7.0847911834717,-191.64788818359),15431,1647)
end
function spawn_af_snork_6()
alife():create("snork_indoor_normal",vector():set(-142.9391784668,7.0847911834717,-191.64788818359),15431,1647)
end
function spawn_af_snork_7()
alife():create("snork_indoor_normal",vector():set(-142.9391784668,7.0847911834717,-191.64788818359),15431,1647)
end
function spawn_af_snork_8()
alife():create("snork_indoor_normal",vector():set(-142.9391784668,7.0847911834717,-191.64788818359),15431,1647)
end
function spawn_yan_art_10()
alife():create("af_mincer_meat",vector():set(-175.34725952148,2.3997523784637,-143.69932556152),4753,1636)
end
function spawn_yan_art_11()
alife():create("af_dummy_battery",vector():set(116.90205383301,0.57888877391815,84.045402526855),117327,1723)
end
function spawn_pdaissl()
alife():create("pda_yan_2",vector():set(70.181823730469,1.4090075492859,125.81435394287),289266,832)
end
------------------------------------------------Copyright, razoromon------------------------------------------------------------------------