SRD:Luck Blade

Luck Blade: This +2 short sword gives its possessor a +1 luck bonus on all saving throws. Its possessor also gains the power of good fortune, usable once per day. This extraordinary ability allows its possessor to reroll one roll that she just made. She must take the result of the reroll, even if it’s worse than the original roll. In addition, a luck blade may contain up to three wishes (when randomly rolled, a luck blade holds 1d4–1 wishes, minimum 0). When the last wish is used, the sword remains a +2 short sword, still grants the +1 luck bonus, and still grants its reroll power.

Strong evocation; CL 17th; Craft Magical Arms and Armor, wish or miracle; Price 22,060 gp (0 wishes), 62,360 gp (1 wish), 102,660 gp (2 wishes), 142,960 gp (3 wishes); Cost 11,030 gp + 882 XP (0 wishes), 31,180 gp + 2,494 XP (1 wish); 51,330 gp + 4,106 XP (2 wishes), 71,480 gp + 5,718 XP (3 wishes).