Begin A1_DAT_SRT_WaterBreath_IDS

Short DAT_SRTIC
Short DAT_SRTFIN

If ( OnActivate == 1 )
	Set DAT_SRTFIN to 2
EndIf

If ( DAT_SRTFIN < 2 )
	Return
EndIf

If ( Player->GetAlchemy >= 5 )
	Set DAT_SRTIC to (  "A1_DAT_SRT_SortBag"->GetItemCount, "Ingred_russula_01" )
Else
	Set DAT_SRTIC to 0
EndIf

If ( DAT_SRTIC > 0 )
	While ( DAT_SRTIC > 0 )
		Set DAT_SRTIC to ( DAT_SRTIC - 1 )
		Player->AddItem, "Ingred_russula_01", 1
		 "A1_DAT_SRT_SortBag"->RemoveItem, "Ingred_russula_01", 1
	EndWhile
EndIf

If ( Player->GetAlchemy >= 5 )
	Set DAT_SRTIC to (  "A1_DAT_SRT_SortBag"->GetItemCount, "ingred_hackle-lo_leaf_01" )
Else
	Set DAT_SRTIC to 0
EndIf

If ( DAT_SRTIC > 0 )
	While ( DAT_SRTIC > 0 )
		Set DAT_SRTIC to ( DAT_SRTIC - 1 )
		Player->AddItem, "ingred_hackle-lo_leaf_01", 1
		"A1_DAT_SRT_SortBag"->RemoveItem, "ingred_hackle-lo_leaf_01", 1
	EndWhile
EndIf

If ( Player->GetAlchemy >= 45 )
	Set DAT_SRTIC to ("A1_DAT_SRT_SortBag"->GetItemCount, "ingred_pearl_01" )
Else
	Set DAT_SRTIC to 0
EndIf

If ( DAT_SRTIC > 0 )
	While ( DAT_SRTIC > 0 )
		Set DAT_SRTIC to ( DAT_SRTIC - 1 )
		Player->AddItem, "ingred_pearl_01", 1
		"A1_DAT_SRT_SortBag"->RemoveItem, "ingred_pearl_01", 1
	EndWhile
EndIf

If ( Player->GetAlchemy >= 5 )
	Set DAT_SRTIC to ("A1_DAT_SRT_SortBag"->GetItemCount, "ingred_kwama_cuttle_01" )
Else
	Set DAT_SRTIC to 0
EndIf

If ( DAT_SRTIC > 0 )
	While ( DAT_SRTIC > 0 )
		Set DAT_SRTIC to ( DAT_SRTIC - 1 )
		Player->AddItem, "ingred_kwama_cuttle_01", 1
		"A1_DAT_SRT_SortBag"->RemoveItem, "ingred_kwama_cuttle_01", 1
	EndWhile
EndIf

PlaySound "Item Misc Up"

MessageBox "You take what ingredients you determine can be used to create a potion of Water Breathing from the bag.",

Set DAT_SRTFIN to 1

End