-------------------------------------------------------------------------
--	created:	2005/02/28
--	created:	28:2:2005   16:08
--	filename: 	x:\gamedata\scripts\dialogs_darkvalley.script
--	file path:	x:\gamedata\scripts
--	file base:	dialogs_darkvalley
--	file ext:	script
--	author:		Andrey Fidrya aka Zmey
--  updated by: Oleg Kreptul (Haron)
--	
--	purpose:	dialog support for Dark Valley
-------------------------------------------------------------------------

-- function printf() end

function val_rob_actor_has_money(actor, npc)
	return actor:money() >= 800
end

function val_rob_actor_reloc_money(actor, npc)
	dialogs.relocate_money(npc, 800, "out")
end

function val_escort_reward(npc, actor)
    dialogs.relocate_money(npc, 1300, "in")
    dialogs.relocate_item_section(npc, "wpn_addon_scope", "in")
end


function poltergeist_quest()
	if db.actor:object("wpn_eagle_ioga") then
		return true
	end
	return false
end

function actor_relocate_magnum(gg,npc)	
	dialogs.relocate_item_section(npc,"wpn_eagle_ioga","out")
end

function val_actor_has_money(actor, npc)
	return actor:money() >= 5000
end

function val_actor_has_money_no(actor, npc)
	return actor:money() < 5000
end

function val_actor_relocate_money(actor, npc)
	dialogs.relocate_money(npc, 5000, "out")
end


function val_actor_has_money_2(actor, npc)
	return actor:money() >= 2000
end

function val_actor_has_money_no_2(actor, npc)
	return actor:money() < 2000
end

function val_actor_relocate_money_2(actor, npc)
	dialogs.relocate_money(npc, 2000, "out")
end



