local bet_cost = 500 function money_check( actor, npc ) if db.actor:money() >= bet_cost then return true end return false end function bet_check( actor, npc ) if actor:object("wpn_fort") then return true end return false end function win_money (trader, actor) dialogs.relocate_money(trader, 500, "in") end function lose_money (trader, actor) dialogs.relocate_money(trader, 500, "out") end