Probably be easier to just make the old man fix the items for a set price. It wouldn't take very long to make that work.
Something like:
I typed that on my iPhone so it isn't the exact code.Code:If(player.hasitem(brokenidhere, 1) && player.hasitem(995,pricetofix)) { Deleteitem(brokenid, 1); Additem(fixedid,1); Deleteitem(995,pricetofix); }