If Step == 0
Return
ElseIf Step == -10 && ( Player.GetStage SmithApprentice >= 25 )
Set Step to 10
MessageBox "Welches Rohmaterial möchtet Ihr verarbeiten?","Eisen","Feineisen",[COLOR=Blue]"Stahl"[/COLOR],[COLOR=Red]"Feinstahl"[/COLOR],"zurück"
Set Button to -1
ElseIf Step == 10
Set Button to GetButtonPressed
If Button == 0 && ( Player.GetItemCount OreNugget <= 3 )
MessageBox "Ihr besitzt nicht genug Rohmaterial!"
Set Step to 0
EndIf
If Button == 0 && ( Player.GetItemCount OreNugget >= 4 )
Player.RemoveItem OreNugget 4
Player.AddItem WeapIronDaggerSA 1
Set Step to 0
ElseIf Button == 1 && ( Player.GetItemCount OreNugget <= 1 ) && ( Player.GetItemCount Gem0GoldNugget <= 1 )
MessageBox "Ihr besitzt nicht genug Rohmaterial!"
Set Step to 0
EndIf
If Button == 1 && ( Player.GetItemCount OreNugget >= 2 ) && ( Player.GetItemCount Gem0GoldNugget >= 2 )
Player.RemoveItem OreNugget 2
Player.RemoveItem Gem0GoldNugget 2
Player.AddItem WeapIronDaggerFineSA 1
Set Step to 0
[COLOR=Blue]
ElseIf Button == 2 && ( Player.GetItemCount OreNugget <= 1 ) && ( Player.GetItemCount Gem0SilverNugget <= 1 )
MessageBox "Ihr besitzt nicht genug Rohmaterial!"
Set Step to 0
EndIf
If Button == 2 && ( Player.GetItemCount OreNugget >= 2 ) && ( Player.GetItemCount Gem0SilverNugget >= 2 )
Player.RemoveItem OreNugget 2
Player.RemoveItem Gem0SilverNugget 2
Player.AddItem WeapSteelDaggerSA 1
Set Step to 0[/COLOR]
[COLOR=Red]ElseIf Button == 3 && ( Player.GetItemCount OreNugget <= 1 ) && ( Player.GetItemCount Gem0SilverNugget == 0 ) && ( Player.GetItemCount Gem0GoldNugget == 0 )
MessageBox "Ihr besitzt nicht genug Rohmaterial!"
Set Step to 0
EndIf
If Button == 3 && ( Player.GetItemCount OreNugget >=2 ) && ( Player.GetItemCount Gem0SilverNugget >= 1 ) && ( Player.GetItemCount Gem0GoldNugget >= 1 )
Player.RemoveItem OreNugget 2
Player.RemoveItem Gem0SilverNugget 1
Player.RemoveItem Gem0GoldNugget 1
Player.AddItem WeapSteelDaggerFineSA 1
Set Step to 0[/COLOR]
ElseIf Button == 4
Return
EndIf
EndIf
ElseIf Step == -1
Set Button to GetButtonPressed
If Button == 0
Set Step to -10
ElseIf Button == 1
Set Step to 0
EndIf
EndIf
End