I belive it is decides by their attitude towards you. I recall a weapon costing me 920g but after a failed theft elsewhere in the camp, that weapon later costed 1050g.