scn LiteOverhaulUpdateAmberBowA
short cost
begin onequip player
if LiteOverhaulSIUpdateVar.Update == 1
set cost to 100 * LiteOverhaulSIini.Gold
if player.getitemcount SEAmber >= LiteOverhaulSIini.Material && player getitemcount Gold001 >= cost && player.getlevel >= LiteOverhaulSIini.A
player.removeitem SEAmberBowA 1
player.additem SEAmberBowB 1
player.removeitem Gold001 cost
player.removeitem SEAmber LiteOverhaulSIini.Material
message "Erfolgreich ausgebessert"
set LiteOverhaulSIUpdateVar.Update to 0
else
message "Ihr benötigt %.0f Stück(e) Bernstein, %.0f Gold und ein Level von mindestens %.0f, um diesen Gegenstand auszubessern" LiteOverhaulSIini.Material, cost, LiteOverhaulSIini.A
set LiteOverhaulSIUpdateVar.Update to 0
endif
else
return
endif
end