-- Награды за стволы

local nagrad = {
  level_1 = {
  "af_cristall_flower",
  "af_gravi",
  "af_blood",
  "af_mincer_meat",
  "af_soul",
  "af_electra_sparkler",
  "af_electra_flash",
  "af_rusty_thorn",
  "af_ameba_slug",
  "af_drops",
  "af_fireball"
 },
  level_2 = {
  "af_cristall",
  "af_electra_moonlight",
  "af_rusty_thorn",
  "af_rusty_kristall",
  "af_rusty_sea-urchin",
  "af_ameba_mica",
  "af_night_star",
  "af_gold_fish"
 },
  level_3 = {
  "af_dummy_glassbeads",
  "af_dummy_pellicle",
  "af_dummy_battery",
  "af_dummy_dummy",
  "af_dummy_spring",
  "af_fuzz_kolobok"
 },
  level_4 = {
  "af_spirit_1",
  "af_cry_1",
  "af_babka_1",
  "af_pudd_1",
  "af_dik_1",
  "af_kol_1",
  "af_armor_1"
 },
  level_5 = {
  "af_caterpillar",
  "af_cry_2",
  "af_babka_2",
  "af_dik_2",
  "af_spirit_2",
  "af_armor_2",
  "af_pudd_2",
  "af_kol_2"
 }
}

local v_wpn_cond = 0.5 -- состояние, ниже которого Ворон ствол не берет

-- ствол, nagrad.level
local voron_wpn = {
	{"wpn_toz", 4},
	{"wpn_20w_vintorez", 5},
	{"wpn_aa12_m1", 2},
	{"wpn_abakan_kalibr", 3},
	{"wpn_abakan_kalibr_ves", 5},
	{"wpn_abakan_m1", 2},
        {"wpn_abakan_m1_otdaca", 3},
        {"wpn_abakan_m1_otdaca_ves", 4},
        {"wpn_abakan_m1_ves", 3},
	{"wpn_abakan_m2", 2},
	{"wpn_abakan_otdaca", 4},
	{"wpn_abakan_otdaca_ves", 5},
	{"wpn_abakan_ves", 4},
        {"wpn_aek971_otdaca", 4},
        {"wpn_aek971_otdaca_ves", 5},
        {"wpn_aek971_ves", 4},
        {"wpn_aek972_otdaca", 4},
        {"wpn_aek972_otdaca_ves", 5},
        {"wpn_aek972_ves", 4},
        {"wpn_aek973_otdaca", 4},
        {"wpn_aek973_otdaca_ves", 5},
        {"wpn_aek973_ves", 4},
        {"wpn_ak12_545", 5},
	{"wpn_ak104t", 3},
	{"wpn_ak47_otdaca", 4},
	{"wpn_ak47_otdaca_ves", 5},	
	{"wpn_ak47_ves", 4},
        {"wpn_ak74m_otdaca", 3},
        {"wpn_ak74m_otdaca_ves", 4},
        {"wpn_ak74m_ves", 3},
	{"wpn_ak74u_kalibr", 4},
	{"wpn_ak74u_kalibr_ves", 5},
	{"wpn_ak74u_m1", 2},
	{"wpn_ak74u_otdaca", 3},
	{"wpn_ak74u_otdaca_ves", 5},
	{"wpn_ak74u_svd", 2},
	{"wpn_ak74u_ves", 3},
	{"wpn_ak74_kalibr", 4},
	{"wpn_ak74_kalibr_ves", 5},
	{"wpn_ak74_m1", 3},
	{"wpn_ak74_m3", 3},
	{"wpn_ak74_otdaca", 4},
	{"wpn_ak74_otdaca_ves", 5},
	{"wpn_ak74_ves", 4},
	{"wpn_akm203_pso", 4},
	{"wpn_akms_m1", 3},
	{"wpn_akms_m2", 4},
        {"wpn_akm_otdaca", 3},
	{"wpn_akm_otdaca_ves", 4},
        {"wpn_akm_ves", 3},
	{"wpn_aks74m_kalibr", 3},
	{"wpn_aks74m_kalibr_ves", 4},
	{"wpn_aks74m_otdaca", 3},
	{"wpn_aks74m_otdaca_ves", 4},
	{"wpn_aks74m_ves", 3},
	{"wpn_aks74_kalibr_ves_otdaca", 5},
	{"wpn_aks74_m1", 5},
	{"wpn_apb762", 3},
	{"wpn_aps_sk1", 2},
	{"wpn_aug_a1", 5},
	{"wpn_aug_a2", 5},
	{"wpn_awm_ves", 3},
	{"wpn_awp_m1", 4},
	{"wpn_b94_sil", 5},
	{"wpn_b94_ves", 4},
	{"wpn_benelli_m3_tactik", 4},
	{"wpn_bizon_kalibr", 3},
	{"wpn_bizon_kalibr_ves", 5},
	{"wpn_bizon_otdaca", 3},
	{"wpn_bizon_otdaca_ves", 5},
	{"wpn_bizon_ves", 3},
	{"wpn_bm16_m1", 5},
	{"wpn_bm16_ves", 2},
	{"wpn_colt_m1", 2},
	{"wpn_crossbow", 2},
	{"wpn_crossbow_m1", 4},
	{"wpn_dark_gauss", 4},
	{"wpn_deagle_long", 4},
	{"wpn_eagle_m1", 4},
	{"wpn_famas_p3_sk1_kalibr", 4},
	{"wpn_famas_p3_sk1_kalibr_ves", 5},
	{"wpn_famas_p3_sk1_otdaca", 4},
	{"wpn_famas_p3_sk1_otdaca_ves", 5},
	{"wpn_famas_p3_sk1_ves", 3},
	{"wpn_flame", 4},
	{"wpn_fn2000_kalibr", 4},
	{"wpn_fn2000_kalibr_ves", 5},
	{"wpn_fn2000_old", 2},
	{"wpn_fn2000_otdaca", 4},
	{"wpn_fn2000_otdaca_ves", 5},
	{"wpn_fn2000_paratrooper", 5},
	{"wpn_fn2000_sniper", 4},
	{"wpn_fn2000_ves", 4},
	{"wpn_fort_m1", 1},
	{"wpn_g3_otdaca_ves", 4},
	{"wpn_g36_kalibr", 4},
	{"wpn_g36_kalibr_ves", 5},
	{"wpn_g36_otdaca", 4},
	{"wpn_g36_otdaca_ves", 5},
	{"wpn_g36_ves", 4},
	{"wpn_g43", 1},
	{"wpn_gauss2b", 5},
	{"wpn_groza_m1", 3},
	{"wpn_groza_m2", 1},
	{"wpn_groza_sn", 4},
	{"wpn_groza_ves", 4},
	{"wpn_hk417_sk1", 4},
	{"wpn_hk417_sk1_otdaca", 4},
	{"wpn_hk417_sk1_otdaca_ves", 5},
	{"wpn_hk417_sk1_ves", 4},
	{"wpn_hostel", 5},
	{"wpn_k98", 3},
	{"wpn_kord", 5},
	{"wpn_kord_m1", 5},
	{"wpn_kriss_super_v_ves", 3},
	{"wpn_l85_kalibr", 4},
	{"wpn_l85_kalibr_ves", 5},
	{"wpn_l85_m1", 2},
	{"wpn_l85_m2", 2},
	{"wpn_l85_otdaca", 3},
	{"wpn_l85_otdaca_ves", 5},
	{"wpn_l85_ves", 3},
	{"wpn_lr300_kalibr", 4},
	{"wpn_lr300_kalibr_ves", 5},
	{"wpn_lr300_m1", 3},
	{"wpn_lr300_otdaca", 4},
	{"wpn_lr300_otdaca_ves", 5},
	{"wpn_lr300_ves", 4},
	{"wpn_luger", 3},
	{"wpn_luger_kurtz", 4},
	{"wpn_m16a2_sk1_kalibr", 4},
	{"wpn_m16a2_sk1_kalibr_ves", 5},
	{"wpn_m16a2_sk1_otdaca", 3},
	{"wpn_m16a2_sk1_otdaca_ves", 5},
	{"wpn_m16a2_sk1_ves", 3},
	{"wpn_m1891_30_scope", 3},
	{"wpn_m1891_30_scope_ves", 4},
	{"wpn_m4super90_ves", 3},
	{"wpn_m4_kalibr", 3},
	{"wpn_m4_kalibr_ves", 5},
	{"wpn_m4_m1", 3},
	{"wpn_m4_otdaca", 3},
	{"wpn_m4_otdaca_ves", 5},
	{"wpn_m4_ves", 3},
	{"wpn_m500_custom", 4},
	{"wpn_m60_ves", 4},
	{"wpn_m79_ves", 3},
	{"wpn_m93r", 2},
	{"wpn_mauser", 2},
	{"wpn_mauser10", 3},
	{"wpn_mg42", 5},
	{"wpn_mkb_42", 3},
	{"wpn_mp5k_kalibr", 3},
	{"wpn_mp5k_kalibr_ves", 5},
	{"wpn_mp5k_otdaca", 3},
	{"wpn_mp5k_otdaca_ves", 5},
	{"wpn_mp5k_ves", 3},
	{"wpn_mp5_kalibr", 3},
	{"wpn_mp5_kalibr_ves", 5},
	{"wpn_mp5_m1", 1},
	{"wpn_mp5_m2", 2},
	{"wpn_mp5_m3", 3},
	{"wpn_mp5_m4", 3},
	{"wpn_mp5_m5", 3},
	{"wpn_mp5_otdaca", 3},
	{"wpn_mp5_otdaca_ves", 5},
	{"wpn_mp5_ves", 3},
	{"wpn_mp7a3_kalibr", 3},
	{"wpn_mp7a3_kalibr_ves", 5},
	{"wpn_mp7a3_otdaca", 3},
	{"wpn_mp7a3_otdaca_ves", 5},
	{"wpn_mp7a3_ves", 3},
	{"wpn_oc27_m1", 3},
	{"wpn_ognemet", 5},
	{"wpn_p90_ves", 3},
	{"wpn_pkm_ves", 4},
	{"wpn_ppsh41_sk2", 3},
	{"wpn_ppsh41_sk2_ves", 4},
	{"wpn_protecta_col", 5},
	{"wpn_protecta_ves", 4},
	{"wpn_rg6_m1", 5},
	{"wpn_rpg7", 4},
	{"wpn_rpk47_sk1", 3},
	{"wpn_rpkm40", 3},
	{"wpn_saiga12c_ves", 4},
	{"wpn_sayga12k", 4},
	{"wpn_sayga12_sk1", 1},
	{"wpn_scorpion_kalibr", 2},
	{"wpn_scorpion_kalibr_ves", 5},
	{"wpn_scorpion_otdaca", 2},
	{"wpn_scorpion_otdaca_ves", 5},
	{"wpn_scorpion_ves", 2},
	{"wpn_sg550_sr", 3},
	{"wpn_sg552_sk1_kalibr", 4},
	{"wpn_sg552_sk1_kalibr_ves", 5},
	{"wpn_sg552_sk1_otdaca", 3},
	{"wpn_sg552_sk1_otdaca_ves", 5},
	{"wpn_sg552_sk1_ves", 4},
	{"wpn_shmel", 3},
	{"wpn_sig550_kalibr", 4},
	{"wpn_sig550_kalibr_ves", 5},
	{"wpn_sig550_otdaca", 3},
	{"wpn_sig550_otdaca_ves", 5},
	{"wpn_sig550_ves", 4},
	{"wpn_sig_m1", 3},
	{"wpn_sks_cust", 3},
	{"wpn_spas12_m1", 4},
	{"wpn_spas12_ves", 3},
	{"wpn_sr25_mk11_mod0_sk1_otdaca", 3},
	{"wpn_sr25_mk11_mod0_sk1_otdaca_ves", 5},
	{"wpn_sr25_mk11_mod0_sk1_ves", 4},
	{"wpn_svd_m1", 4},
	{"wpn_svd_m2", 4},
	{"wpn_svd_m3", 4},
	{"wpn_svd_ves", 3},
	{"wpn_svt40", 4},
	{"wpn_svu_m1", 3},
	{"wpn_svu_ves", 3},
	{"wpn_tavor_kalibr", 4},
	{"wpn_tavor_kalibr_ves", 5},
	{"wpn_tavor_otdaca", 4},
	{"wpn_tavor_otdaca_ves", 5},
	{"wpn_tavor_ves", 4},
	{"wpn_toz34_ves", 3},
	{"wpn_tt33_m1", 1},
	{"wpn_tt33_m2", 1},
	{"wpn_uzi_kalibr", 3},
	{"wpn_uzi_kalibr_ves", 5},
	{"wpn_uzi_otdaca", 3},
	{"wpn_uzi_otdaca_ves", 5},
	{"wpn_uzi_ves", 3},
	{"wpn_val_m1", 3},
	{"wpn_val_m2", 3},
	{"wpn_val_ves", 3},
	{"wpn_val_voron", 3},
	{"wpn_vepr12_col", 5},
	{"wpn_vepr12_m1", 5},
	{"wpn_vihlop_m1", 4},
	{"wpn_vintorez_m1", 1},
	{"wpn_vintorez_ves", 4},
	{"wpn_walther_m1", 1},
	{"wpn_walther_wa2000", 3},
	{"wpn_winch1887", 3},
	{"wpn_wincheaster1300_ves", 4},
	{"wpn_winchester_m1", 2},
	{"wpn_zastava_m77", 4},
}

local voron_text_give = {
	{"", translate("vtg_0_0")},
	{translate("vtg_1_0"), translate("vtg_1_1")},
	{translate("vtg_2_0"), translate("vtg_2_1")},
	{translate("vtg_3_0"), translate("vtg_3_1")},
	{"", translate("vtg_4_0")},
	{translate("vtg_5_0"), translate("vtg_5_1")},
	{translate("vtg_6_0"), translate("vtg_6_1")},
	{translate("vtg_7_0"), translate("vtg_7_1")},
	{translate("vtg_8_0"), translate("vtg_8_1")},
	{translate("vtg_9_0"), translate("vtg_9_1")},
	{translate("vtg_10_0"), translate("vtg_10_1")},
	{"", translate("vtg_11_0")},
	{translate("vtg_12_0"), translate("vtg_12_1")},
	{translate("vtg_13_0"), translate("vtg_13_1")},
	{translate("vtg_14_0"), translate("vtg_14_1")},
	{translate("vtg_15_0"), translate("vtg_15_1")},
	{"", translate("vtg_16_0")},
	{translate("vtg_17_0"), translate("vtg_17_1")},
	{translate("vtg_18_0"), translate("vtg_18_1")},
	{translate("vtg_19_0"), translate("vtg_19_1")},
	{"", translate("vtg_20_0")},
	{translate("vtg_21_0"), translate("vtg_21_1")},
	{translate("vtg_22_0"), translate("vtg_22_1")},
	{translate("vtg_23_0"), translate("vtg_23_1")},
	{translate("vtg_24_0"), translate("vtg_24_1")},
	{"", translate("vtg_25_0")},
	{"", translate("vtg_26_0")},
	{translate("vtg_27_0"), translate("vtg_27_1")},
	{translate("vtg_28_0"), translate("vtg_28_1")},
	{translate("vtg_29_0"), translate("vtg_29_1")},
	{translate("vtg_30_0"), translate("vtg_30_1")},
	{translate("vtg_31_0"), translate("vtg_31_1")},
	{translate("vtg_32_0"), translate("vtg_32_1")},
	{translate("vtg_33_0"), translate("vtg_33_1")},
	{translate("vtg_34_0"), translate("vtg_34_1")},
	{translate("vtg_35_0"), translate("vtg_35_1")},
}

local voron_text_take = {
	translate("vtt_0_0"),
	translate("vtt_0_1"),
	translate("vtt_0_2"),
	translate("vtt_0_3"),
	translate("vtt_0_4"),
	translate("vtt_0_5"),
	translate("vtt_0_6"),
	translate("vtt_0_7"),
	translate("vtt_0_8"),
	translate("vtt_0_9"),
	translate("vtt_0_10"),
	translate("vtt_0_11"),
	translate("vtt_0_12"),
	translate("vtt_0_13"),
	translate("vtt_0_14"),
	translate("vtt_0_15"),
	translate("vtt_0_16"),
	translate("vtt_0_17"),
	translate("vtt_0_18"),
	translate("vtt_0_19"),
	translate("vtt_0_20"),
	translate("vtt_0_21"),
	translate("vtt_0_22"),
	translate("vtt_0_23"),
	translate("vtt_0_24"),
	translate("vtt_0_25"),
	translate("vtt_0_26"),
	translate("vtt_0_27"),
	translate("vtt_0_28"),
	translate("vtt_0_29"),
	translate("vtt_0_30"),
}

-- Создание диалога Ворона
function init_mosinka_dialog(dlg)
	local ini = config
	local phr = dlg:AddPhrase("mosinka_0","0","",-10000)
	local phrase_script = phr:GetPhraseScript()
	phrase_script:AddGiveInfo("price_voron_mosin")

	phr = dlg:AddPhrase("mosinka_1","1","0",-10000)
		
	for i = 1, #voron_wpn do
		phr = dlg:AddPhrase(table.random(voron_text_give)[1]..translate(ini:r_string(voron_wpn[i][1], "inv_name"))..table.random(voron_text_give)[2], tostring(1000+i), "1", -10000)		
		phrase_script = phr:GetPhraseScript()
		phrase_script:AddPrecondition("wawka_dialog.v_have_good_wpn")

		phr = dlg:AddPhrase(table.random(voron_text_take), tostring(2000+i), tostring(1000+i), -10000)		
		phrase_script = phr:GetPhraseScript()
		phrase_script:AddAction("wawka_dialog.v_take_wpn")
	end

	phr = dlg:AddPhrase("mosinka_9999","9999","1",-10000)
end

function v_have_good_wpn(first_speaker, second_speaker, dialog_id, prev_phrase_id, phrase_id)
	local obj = db.actor:object(voron_wpn[tonumber(phrase_id)-1000][1])
	return obj and obj.condition and obj:condition() > v_wpn_cond
end

function v_take_wpn(first_speaker, second_speaker, dialog_id, phrase_id)
	local wpn = voron_wpn[tonumber(phrase_id)-2000][1]
	local rew = voron_wpn[tonumber(phrase_id)-2000][2]
	lost(wpn,1)
	got(nagrad["level_"..rew][math.random(#nagrad["level_"..rew])],1)
end

-- Проверка
function give_psevdo_tails(first_speaker, second_speaker)
	lost("part_psevdodog_tail", 3)
end
function psevdo_tails_have()
	return has("part_psevdodog_tail",3)
end
function give_dog_tails(first_speaker, second_speaker)
	lost("part_dog_tail", 5)
end
function dog_tails_have()
	return has("part_dog_tail",5)
end
function give_burer_hand(first_speaker, second_speaker)
	lost("part_burer_hand", 2)
end
function burer_hand_have()
	return has("part_burer_hand",2)
end
function give_hand_kontroler(first_speaker, second_speaker)
	lost("part_hand_kontroler", 2)
end
function hand_kontroler_have()
	return has("part_hand_kontroler",2)
end
function give_vodka5(first_speaker, second_speaker)
	lost("vodka", 5)
end
function vodka5_have()
	return has("vodka",5)
end
function give_vodka10(first_speaker, second_speaker)
	lost("vodka", 10)
end
function vodka10_have()
	return has("vodka",10)
end
function give_vodka20(first_speaker, second_speaker)
	lost("vodka", 20)
end
function vodka20_have()
	return has("vodka",20)
end
function give_krysyk_pomer_goods()
	lost("oceanic815",40)
end
function have_krysyk_pomer_goods()
  	return has("oceanic815",40)
end
function give_hunters_toz()
	lost("wpn_toz",1)
end
function have_hunters_toz()
  	return has("wpn_toz",1)
end
function give_plan()
	lost("travka",1)
end
function plan_have()
  	return has("travka",1)
end
function give_pivo10()
	lost("oceanic815",20)
	got("ammo_12x70_buck",4)
end
function have_pivo10()
  	return has("oceanic815",20)
end
function give_wpn_bm16()
	got("grenade_napalm",3)
end
function have_wpn_bm16()
  	return has_good("wpn_winch1887",1)
end
function obrez_den_spawn()
	create("wpn_winch1887",xyz(65.201583862305,14.545553207397,132.85278320313),235898,370)
	create("burer_strong",xyz(140.89245605469,-5.0289220809937,119.37189483643),298601,372)
	got("grenade_impulse",10)
end

-- Обмен
function add_ammo_12x76_dart()
	got("ammo_12x76_dart",2)
end
function add_ammo_12x76_zhekan()
	got("ammo_12x70_kart",1)
end
function add_ammo_12x70_buck()
	got("ammo_12x70_buck",2)
end
function add_ammo_9x39_ap()
	got("ammo_9x39_ap",2)
end
function add_ammo_9x39_sp5()
	got("ammo_9x39_sp5",3)
end
function add_ammo_9x39_pab9()
	got("ammo_9x39_pab9",4)
end

function add_wpn_bizon()
	got("wpn_bizon")
end
function add_wpn_kriss()
	got("wpn_kriss_super_v")
end
function add_wpn_mp7()
	got("wpn_mp7a3")
end
function add_wpn_toz()
	got("wpn_toz34")
end
function add_wpn_ak47()
	got("wpn_ak47")
end
function add_wpn_saiga()
	got("wpn_win101")
end
function add_wpn_desert_eagle()
	got("wpn_desert_eagle")
end
function add_wpn_bm16()
	got("wpn_bm16_m1")
end
function add_ammo_flame()
	got("ammo_flame")
end
function add_amk_ballon()
	got("amk_ballon")
end
function add_amk_kanistra()
	got("amk_kanistra")
end
function add_svoboda_heavy_outfit()
	got("svoboda_heavy_outfit")
end
function add_dolg_scientific_outfit()
	got("dolg_scientific_outfit")
end
function add_hunters_toz()
	got("wpn_toz")
end
function add_plan()
	got("travka")
end

-- Лимит диалогов. Ворон 30 раз
function trade_voron_not_enough()
	local value = get_value("trade_voron_enough", 0)
	return value < 30000
end
function trade_voron_enough()
	local value = get_value("trade_voron_enough", 0)
	return value == 30000
end
function trade_voron_count()
	local value = get_value("trade_voron_enough", 0)+1
	set_value("trade_voron_enough", value)
	local text_sms = string.extformat(translate("sms_trade_voron_enough"), value, 30000)
	sms(text_sms, 1, "voron", 3000)
end

-- Лимит диалогов. Макс 10 раз
function trade_maks_not_enough()
	local value = get_value("trade_maks_enough", 0)
	return value < 10000
end
function trade_maks_enough()
	local value = get_value("trade_maks_enough", 0)
	return value == 10000
end
function trade_maks_count()
	local value = get_value("trade_maks_enough", 0)+1
	set_value("trade_maks_enough", value)
	local text_sms = string.extformat(translate("sms_trade_maks_enough"), value, 10000)
	sms(text_sms, 1, "gymnasts", 3000)
end

--Проверка состояния
function good_gravi_have(task, objective) 
	return has_good("soldier_outfit")
end
function good_mp5_m1_have(task, objective) 
	return has_good("wpn_mp5_m1")
end
function good_eagle_m1_have(task, objective) 
	return has_good("wpn_eagle_m1")
end
function good_rg6_have(task, objective) 
	return has_good("wpn_rg-6")
end
function good_hunters_toz_have(task, objective) 
	return has_good("wpn_toz")
end

-- Деньги
function have_money_5000(actor,npc)
	return actor:money() > 5000
end
function give_money_5000(actor, npc)	
	lost_money(5000)
end
function have_money_10000(actor,npc)
	return actor:money() > 10000
end
function give_money_10000(actor, npc)	
	lost_money(10000)
end
function have_money_15000(actor,npc)
	return actor:money() > 15000
end
function give_money_15000(actor, npc)	
	lost_money(15000)
end
function have_money_20000(actor,npc)
	return actor:money() > 20000
end
function give_money_20000(actor, npc)	
	lost_money(20000)
end
function have_money_25000(actor,npc)
	return actor:money() > 25000
end
function give_money_25000(actor, npc)	
	lost_money(25000)
end
function have_money_30000(actor,npc)
	return actor:money() > 30000
end
function give_money_30000(actor, npc)	
	lost_money(30000)
end
function have_money_35000(actor,npc)
	return actor:money() > 35000
end
function give_money_35000(actor, npc)	
	lost_money(35000)
end
function have_money_40000(actor,npc)
	return actor:money() > 40000
end
function give_money_40000(actor, npc)	
	lost_money(40000)
end
function have_money_45000(actor,npc)
	return actor:money() > 45000
end
function give_money_45000(actor, npc)	
	lost_money(45000)
end
function have_money_50000(actor,npc)
	return actor:money() > 50000
end
function give_money_50000(actor, npc)	
	lost_money(50000)
end
function have_money_55000(actor,npc)
	return actor:money() > 55000
end
function give_money_55000(actor, npc)	
	lost_money(55000)
end
function have_money_60000(actor,npc)
	return actor:money() > 60000
end
function give_money_60000(actor, npc)	
	lost_money(60000)
end
function have_money_65000(actor,npc)
	return actor:money() > 65000
end
function give_money_65000(actor, npc)	
	lost_money(65000)
end
function have_money_70000(actor,npc)
	return actor:money() > 70000
end
function give_money_70000(actor, npc)	
	lost_money(70000)
end
function have_money_75000(actor,npc)
	return actor:money() > 75000
end
function give_money_75000(actor, npc)	
	lost_money(75000)
end
function have_money_80000(actor,npc)
	return actor:money() > 80000
end
function give_money_80000(actor, npc)	
	lost_money(80000)
end
function have_money_85000(actor,npc)
	return actor:money() > 85000
end
function give_money_85000(actor, npc)	
	lost_money(85000)
end
function have_money_90000(actor,npc)
	return actor:money() > 90000
end
function give_money_90000(actor, npc)	
	lost_money(90000)
end
function have_money_95000(actor,npc)
	return actor:money() > 95000
end
function give_money_95000(actor, npc)	
	lost_money(95000)
end
function have_money_100000(actor,npc)
	return actor:money() > 100000
end
function give_money_100000(actor, npc)	
	lost_money(100000)
end
function have_money_150000(actor,npc)
	return actor:money() > 150000
end
function give_money_150000(actor, npc)	
	lost_money(150000)
end
function have_money_200000(actor,npc)
	return actor:money() > 200000
end
function give_money_200000(actor, npc)	
	lost_money(200000)
end
function have_money_250000(actor,npc)
	return actor:money() > 250000
end
function give_money_250000(actor, npc)	
	lost_money(250000)
end
function have_money_300000(actor,npc)
	return actor:money() > 300000
end
function give_money_300000(actor, npc)	
	lost_money(300000)
end

-- Арты
function give_af_armor_1()
	lost("af_armor_1", 1)
end
function have_af_armor_1()
	return has("af_armor_1",1)
end
function give_af_armor_2()
	lost("af_armor_2", 1)
end
function have_af_armor_2()
	return has("af_armor_2",1)
end
function give_af_armor_3()
	lost("af_armor_3", 1)
end
function have_af_armor_3()
	return has("af_armor_3",1)
end
function give_af_armor_4()
	lost("af_armor_4", 1)
end
function have_af_armor_4()
	return has("af_armor_4",1)
end
