Scriptname DTOMSorterScript extends ObjectReference {A script to sort Alchemicals into REF jars}Int TOTALObjectReference property objSelf auto hiddenSound property QSTAstrolabeButtonPressX autoIngredient Property AntlersLarge AutoObjectReference Property AntlersLargeCHESTREF2 AutoIngredient Property AntlersSmall AutoObjectReference Property AntlersSmallCHESTREF AutoIngredient Property BearClaws AutoObjectReference Property BearClawsCHESTREF AutoIngredient Property BeeHiveHusk AutoObjectReference Property BeeHiveHuskCHESTREF AutoIngredient Property BeeHoneyComb AutoObjectReference Property BeeHoneyCombCHESTREF AutoIngredient Property BirdEgg01 AutoObjectReference Property BirdEgg01CHESTREF AutoIngredient Property BirdEgg02 AutoObjectReference Property BirdEgg02CHESTREF AutoIngredient Property BirdEgg03 AutoObjectReference Property BirdEgg03CHESTREF AutoIngredient Property BoneMeal AutoObjectReference Property BoneMealCHESTREF AutoIngredient Property BriarHeart AutoObjectReference Property BriarHeartCHESTREF AutoIngredient Property CanisRoot01 AutoObjectReference Property CanisRoot01CHESTREF AutoIngredient Property CharredSkeeverHide AutoObjectReference Property CharredSkeeverHideCHESTREF AutoIngredient Property ChaurusEggs AutoObjectReference Property ChaurusEggsCHESTREF AutoIngredient Property CreepClusterRoot AutoObjectReference Property CreepClusterRootCHESTREF AutoIngredient Property CritterBeelngredient AutoObjectReference Property CritterBeelngredientCHESTREF AutoIngredient Property CritterPondFish01Ingredient AutoObjectReference Property CritterPondFish01IngredientCHESTREF AutoIngredient Property CritterPondFish03Ingredient AutoObjectReference Property CritterPondFish03IngredientCHESTREF AutoIngredient Property CritterPondFish041ngredient AutoObjectReference Property CritterPondFish041ngredientCHESTREF AutoIngredient Property CritterPondFish05Ingredient AutoObjectReference Property CritterPondFish05IngredientCHESTREF AutoIngredient Property CritterPondFish02Ingredient AutoObjectReference Property CritterPondFish02IngredientCHESTREF AutoIngredient Property DaedraHeart AutoObjectReference Property DaedraHeartCHESTREF AutoIngredient Property DBJarrinRoot AutoObjectReference Property DBJarrinRootCHESTREF AutoIngredient Property deathbell AutoObjectReference Property deathbellCHESTREF AutoIngredient Property DragonflyBlue AutoObjectReference Property DragonflyBlueCHESTREF AutoIngredient Property DragonflyOrange AutoObjectReference Property DragonflyOrangeCHESTREF AutoIngredient Property DragonsTongue AutoObjectReference Property DragonsTongueCHESTREF AutoIngredient Property DwarvenOil AutoObjectReference Property DwarvenOilCHESTREF AutoIngredient Property Ectoplasm AutoObjectReference Property EctoplasmCHESTREF AutoIngredient Property ElvesEar AutoObjectReference Property ElvesEarCHESTREF AutoIngredient Property FalmerEar AutoObjectReference Property FalmerEarCHESTREF AutoIngredient Property FavorThadgeirAshes AutoObjectReference Property FavorThadgeirAshesCHESTREF AutoIngredient Property FirefryThorax AutoObjectReference Property FirefryThoraxCHESTREF AutoIngredient Property FireSalts AutoObjectReference Property FireSaltsCHESTREF AutoIngredient Property FrostMirriam AutoObjectReference Property FrostMirriamCHESTREF AutoIngredient Property FrostSalts AutoObjectReference Property FrostSaltsCHESTREF AutoIngredient Property Garlic AutoObjectReference Property GarlicCHESTREF AutoIngredient Property GiantLichen AutoObjectReference Property GiantLichenCHESTREF AutoIngredient Property GiantToes AutoObjectReference Property GiantToesCHESTREF AutoIngredient Property glowDust AutoObjectReference Property glowDustCHESTREF AutoIngredient Property GlowingMushroom AutoObjectReference Property GlowingMushroomCHESTREF AutoIngredient Property HagravenClaw AutoObjectReference Property HagravenClawCHESTREF AutoIngredient Property HagravenFeathers AutoObjectReference Property HagravenFeathersCHESTREF AutoIngredient Property HangingMoss AutoObjectReference Property HangingMossCHESTREF AutoIngredient Property HawkBeak AutoObjectReference Property HawkBeakCHESTREF AutoIngredient Property HawkFeathers AutoObjectReference Property HawkFeathersCHESTREF AutoIngredient Property HumanFlesh AutoObjectReference Property HumanFleshCHESTREF AutoIngredient Property HumanHeart AutoObjectReference Property HumanHeartCHESTREF AutoIngredient Property IceWraithTeeth AutoObjectReference Property IceWraithTeethCHESTREF AutoIngredient Property JazBay AutoObjectReference Property JazBayCHESTREF AutoIngredient Property JuniperBerries AutoObjectReference Property JuniperBerriesCHESTREF AutoIngredient Property Lavender AutoObjectReference Property LavenderCHESTREF AutoIngredient Property MoonSugar AutoObjectReference Property MoonSugarCHESTREF AutoIngredient Property MoraTapinellaBits AutoObjectReference Property MoraTapinellaBitsCHESTREF AutoIngredient Property MothWingBlue AutoObjectReference Property MothWingBlueCHESTREF AutoIngredient Property MothWingLuna AutoObjectReference Property MothWingLunaCHESTREF AutoIngredient Property MothWingMonarch AutoObjectReference Property MothWingMonarchCHESTREF AutoIngredient Property MountainFlower01Purple AutoObjectReference Property MountainFlower01PurpleCHESTREF AutoIngredient Property MountainFlower01Red AutoObjectReference Property MountainFlower01RedCHESTREF AutoIngredient Property MountainFlower01Blue AutoObjectReference Property MountainFlower01BlueCHESTREF Auto;Ingredient Property MS03BlackBriarSecretIngredient Auto;ObjectReference Property MS03BlackBriarSecretIngredientCHESTREF AutoIngredient Property MudcrabChitin AutoObjectReference Property MudcrabChitinCHESTREF AutoIngredient Property Mushroom01 AutoObjectReference Property Mushroom01CHESTREF AutoIngredient Property Mushroom02 AutoObjectReference Property Mushroom02CHESTREF AutoIngredient Property Mushroom03 AutoObjectReference Property Mushroom03CHESTREF AutoIngredient Property Mushroom04 AutoObjectReference Property Mushroom04CHESTREF AutoIngredient Property Mushroom05 AutoObjectReference Property Mushroom05CHESTREF AutoIngredient Property Mushroom06 AutoObjectReference Property Mushroom06CHESTREF AutoIngredient Property Nightshade AutoObjectReference Property NightshadeCHESTREF AutoIngredient Property NimrootRed AutoObjectReference Property NimrootRedCHESTREF AutoIngredient Property Nirnroot AutoObjectReference Property NirnrootCHESTREF AutoIngredient Property NordicBarnacles AutoObjectReference Property NordicBarnaclesCHESTREF AutoIngredient Property Pearl AutoObjectReference Property PearlCHESTREF AutoIngredient Property PearlSmall AutoObjectReference Property PearlSmallCHESTREF AutoIngredient Property PowderedMammothTusk AutoObjectReference Property PowderedMammothTuskCHESTREF AutoIngredient Property SabrecatEyeball AutoObjectReference Property SabrecatEyeballCHESTREF AutoIngredient Property SabrecatTooth AutoObjectReference Property SabrecatToothCHESTREF AutoIngredient Property SaltPile AutoObjectReference Property SaltPileCHESTREF AutoIngredient Property ScalyPholiotaBits AutoObjectReference Property ScalyPholiotaBitsCHESTREF AutoIngredient Property SkeeverTail AutoObjectReference Property SkeeverTailCHESTREF AutoIngredient Property SlaughterfishEgg01 AutoObjectReference Property SlaughterfishEgg01CHESTREF AutoIngredient Property SlaughterfishScales AutoObjectReference Property SlaughterfishScalesCHESTREF AutoIngredient Property Snowberry AutoObjectReference Property SnowberryCHESTREF AutoIngredient Property SpiderEgg AutoObjectReference Property SpiderEggCHESTREF AutoIngredient Property SpikyGrass01 AutoObjectReference Property SpikyGrass01CHESTREF AutoIngredient Property SprigganSap AutoObjectReference Property SprigganSapCHESTREF AutoIngredient Property SwampFungalPod01 AutoObjectReference Property SwampFungalPod01CHESTREF AutoIngredient Property Taproot AutoObjectReference Property TaprootCHESTREF AutoIngredient Property Thistle01 AutoObjectReference Property Thistle01CHESTREF AutoIngredient Property TrollFat AutoObjectReference Property TrollFatCHESTREF AutoIngredient Property TundraCotton AutoObjectReference Property TundraCottonCHESTREF AutoIngredient Property vampireDust AutoObjectReference Property vampireDustCHESTREF AutoIngredient Property VoidSalts AutoObjectReference Property VoidSaltsCHESTREF AutoIngredient Property Wheat AutoObjectReference Property WheatCHESTREF AutoIngredient Property WispWrappings AutoObjectReference Property WispWrappingsCHESTREF AutoEvent OnCellAttach()PlayAnimation("Open")EndEventEvent OnActivate(ObjectReference akActionRef)if (akActionRef == Game.GetPlayer()) PlayAnimationAndWait("Trigger01", "done") if (QSTAstrolabeButtonPressX) QSTAstrolabeButtonPressX.Play(Self) endifIf (Game.GetPlayer().GetItemCount(AntlersLarge ))>= 1Total= Game.GetPlayer().GetItemCount(AntlersLarge)(Game.GetPlayer().removeitem (AntlersLarge,TOTAL,0));try using just removeitem;(Game.GetPlayer().removeitem (AntlersLarge,TOTAL,0,AntlersLargeCHESTREF2))Debug.Notification("Moving " + TOTAL + " Large Antlers to " + AntlersLargeCHESTREF2)AntlersLargeCHESTREF2.additem(AntlersLarge,TOTAL,0)EndifIf (Game.GetPlayer().GetItemCount(AntlersSmall ))>= 1Total= Game.GetPlayer().GetItemCount(AntlersSmall)(Game.GetPlayer().removeitem(AntlersSmall,TOTAL,1))AntlersSmallCHESTREF.additem(AntlersSmall,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(BearClaws ))>= 1Total= Game.GetPlayer().GetItemCount(BearClaws)(Game.getPlayer().removeitem(BearClaws,TOTAL,1))BearClawsCHESTREF.additem(BearClaws,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(BeeHiveHusk ))>= 1Total= Game.GetPlayer().GetItemCount(BeeHiveHusk)(Game.GetPlayer().removeitem(BeeHiveHusk,TOTAL,1))BeeHiveHuskCHESTREF.additem(BeeHiveHusk,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(BeeHoneyComb ))>= 1Total= Game.GetPlayer().GetItemCount(BeeHoneyComb)(Game.GetPlayer().removeitem(BeeHoneyComb,TOTAL,1))BeeHoneyCombCHESTREF.additem(BeeHoneyComb,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(BirdEgg01 ))>= 1Total= Game.GetPlayer().GetItemCount(BirdEgg01)(Game.GetPlayer().removeitem(BirdEgg01,TOTAL,1))BirdEgg01CHESTREF.additem(BirdEgg01,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(BirdEgg02 ))>= 1Total= Game.GetPlayer().GetItemCount(BirdEgg02)(Game.GetPlayer().removeitem(BirdEgg02,TOTAL,1))BirdEgg02CHESTREF.additem(BirdEgg02,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(BirdEgg03 ))>= 1Total= Game.GetPlayer().GetItemCount(BirdEgg03)(Game.GetPlayer().removeitem(BirdEgg03,TOTAL,1))BirdEgg03CHESTREF.additem(BirdEgg03,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(BoneMeal ))>= 1Total= Game.GetPlayer().GetItemCount(BoneMeal)(Game.GetPlayer().removeitem(BoneMeal,TOTAL,1))BoneMealCHESTREF.additem(BoneMeal,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(BriarHeart ))>= 1Total= Game.GetPlayer().GetItemCount(BriarHeart)(Game.GetPlayer().removeitem(BriarHeart,TOTAL,1))BriarHeartCHESTREF.additem(BriarHeart,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(CanisRoot01 ))>= 1Total= Game.GetPlayer().GetItemCount(CanisRoot01)(Game.GetPlayer().removeitem(CanisRoot01,TOTAL,1))CanisRoot01CHESTREF.additem(CanisRoot01,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(CharredSkeeverHide ))>= 1Total= Game.GetPlayer().GetItemCount(CharredSkeeverHide)(Game.GetPlayer().removeitem(CharredSkeeverHide,TOTAL,1))CharredSkeeverHideCHESTREF.additem(CharredSkeeverHide,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(ChaurusEggs ))>= 1Total= Game.GetPlayer().GetItemCount(ChaurusEggs)(Game.GetPlayer().removeitem(ChaurusEggs,TOTAL,1))ChaurusEggsCHESTREF.additem(ChaurusEggs,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(CreepClusterRoot ))>= 1Total= Game.GetPlayer().GetItemCount(CreepClusterRoot)(Game.GetPlayer().removeitem(CreepClusterRoot,TOTAL,1))CreepClusterRootCHESTREF.additem(CreepClusterRoot,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(CritterBeelngredient ))>= 1Total= Game.GetPlayer().GetItemCount(CritterBeelngredient)(Game.GetPlayer().removeitem(CritterBeelngredient,TOTAL,1))CritterBeelngredientCHESTREF.additem(CritterBeelngredient,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(CritterPondFish01Ingredient ))>= 1Total= Game.GetPlayer().GetItemCount(CritterPondFish01Ingredient)(Game.GetPlayer().removeitem(CritterPondFish01Ingredient,TOTAL,1))CritterPondFish01IngredientCHESTREF.additem(CritterPondFish01Ingredient,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(CritterPondFish03Ingredient ))>= 1Total= Game.GetPlayer().GetItemCount(CritterPondFish03Ingredient)(Game.GetPlayer().removeitem(CritterPondFish03Ingredient,TOTAL,1))CritterPondFish03IngredientCHESTREF.additem(CritterPondFish03Ingredient,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(CritterPondFish041ngredient ))>= 1Total= Game.GetPlayer().GetItemCount(CritterPondFish041ngredient)(Game.GetPlayer().removeitem(CritterPondFish041ngredient,TOTAL,1))CritterPondFish041ngredientCHESTREF.additem(CritterPondFish041ngredient,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(CritterPondFish05Ingredient ))>= 1Total= Game.GetPlayer().GetItemCount(CritterPondFish05Ingredient)(Game.GetPlayer().removeitem(CritterPondFish05Ingredient,TOTAL,1))CritterPondFish05IngredientCHESTREF.additem(CritterPondFish05Ingredient,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(CritterPondFish02Ingredient ))>= 1Total= Game.GetPlayer().GetItemCount(CritterPondFish02Ingredient)(Game.GetPlayer().removeitem(CritterPondFish02Ingredient,TOTAL,1))CritterPondFish02IngredientCHESTREF.additem(CritterPondFish02Ingredient,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(DaedraHeart ))>= 1Total= Game.GetPlayer().GetItemCount(DaedraHeart)(Game.GetPlayer().removeitem(DaedraHeart,TOTAL,1))DaedraHeartCHESTREF.additem(DaedraHeart,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(DBJarrinRoot ))>= 1Total= Game.GetPlayer().GetItemCount(DBJarrinRoot)(Game.GetPlayer().removeitem(DBJarrinRoot,TOTAL,1))DBJarrinRootCHESTREF.additem(DBJarrinRoot,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(deathBell ))>= 1Total= Game.GetPlayer().GetItemCount(deathBell)(Game.GetPlayer().removeitem(deathBell,TOTAL,1))deathBellCHESTREF.additem(deathBell,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(DragonflyBlue ))>= 1Total= Game.GetPlayer().GetItemCount(DragonflyBlue)(Game.GetPlayer().removeitem(DragonflyBlue,TOTAL,1))DragonflyBlueCHESTREF.additem(DragonflyBlue,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(DragonflyOrange ))>= 1Total= Game.GetPlayer().GetItemCount(DragonflyOrange)(Game.GetPlayer().removeitem(DragonflyOrange,TOTAL,1))DragonflyOrangeCHESTREF.additem(DragonflyOrange,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(DragonsTongue ))>= 1Total= Game.GetPlayer().GetItemCount(DragonsTongue)(Game.GetPlayer().removeitem(DragonsTongue,TOTAL,1))DragonsTongueCHESTREF.additem(DragonsTongue,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(DwarvenOil ))>= 1Total= Game.GetPlayer().GetItemCount(DwarvenOil)(Game.GetPlayer().removeitem(DwarvenOil,TOTAL,1))DwarvenOilCHESTREF.additem(DwarvenOil,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Ectoplasm ))>= 1TOTAL = Game.GetPlayer().GetItemCount(Ectoplasm)(Game.GetPlayer().removeitem(Ectoplasm ,TOTAL,1))EctoplasmCHESTREF.additem(Ectoplasm,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(ElvesEar ))>= 1Total= Game.GetPlayer().GetItemCount(ElvesEar)(Game.GetPlayer().removeitem(ElvesEar,TOTAL,1))ElvesEarCHESTREF.additem(ElvesEar,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(FalmerEar ))>= 1Total= Game.GetPlayer().GetItemCount(FalmerEar)(Game.GetPlayer().removeitem(FalmerEar,TOTAL,1))FalmerEarCHESTREF.additem(FalmerEar,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(FavorThadgeirAshes ))>= 1Total= Game.GetPlayer().GetItemCount(FavorThadgeirAshes)(Game.GetPlayer().removeitem(FavorThadgeirAshes,TOTAL,1))FavorThadgeirAshesCHESTREF.additem(FavorThadgeirAshes,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(FirefryThorax ))>= 1Total= Game.GetPlayer().GetItemCount(FirefryThorax)(Game.GetPlayer().removeitem(FirefryThorax,TOTAL,1))FirefryThoraxCHESTREF.additem(FirefryThorax,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(FireSalts ))>= 1Total= Game.GetPlayer().GetItemCount(FireSalts)(Game.GetPlayer().removeitem(FireSalts,TOTAL,1))FireSaltsCHESTREF.additem(FireSalts,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(FrostMirriam ))>= 1Total= Game.GetPlayer().GetItemCount(FrostMirriam)(Game.GetPlayer().removeitem(FrostMirriam,TOTAL,1))FrostMirriamCHESTREF.additem(FrostMirriam,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(FrostSalts ))>= 1Total= Game.GetPlayer().GetItemCount(FrostSalts)(Game.GetPlayer().removeitem(FrostSalts,TOTAL,1))FrostSaltsCHESTREF.additem(FrostSalts,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Garlic ))>= 1Total= Game.GetPlayer().GetItemCount(Garlic)(Game.GetPlayer().removeitem(Garlic,TOTAL,1))GarlicCHESTREF.additem(Garlic,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(GiantLichen ))>= 1Total= Game.GetPlayer().GetItemCount(GiantLichen)(Game.GetPlayer().removeitem(GiantLichen,TOTAL,1))GiantLichenCHESTREF.additem(GiantLichen,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(GiantToes ))>= 1Total= Game.GetPlayer().GetItemCount(GiantToes)(Game.GetPlayer().removeitem(GiantToes,TOTAL,1))GiantToesCHESTREF.additem(GiantToes,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(glowDust ))>= 1Total= Game.GetPlayer().GetItemCount(glowDust)(Game.GetPlayer().removeitem(glowDust,TOTAL,1))glowDustCHESTREF.additem(glowDust,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(GlowingMushroom ))>= 1Total= Game.GetPlayer().GetItemCount(GlowingMushroom)(Game.GetPlayer().removeitem(GlowingMushroom,TOTAL,1))GlowingMushroomCHESTREF.additem(GlowingMushroom,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(HagravenClaw ))>= 1Total= Game.GetPlayer().GetItemCount(HagravenClaw)(Game.GetPlayer().removeitem(HagravenClaw,TOTAL,1))HagravenClawCHESTREF.additem(HagravenClaw,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(HagravenFeathers ))>= 1Total= Game.GetPlayer().GetItemCount(HagravenFeathers)(Game.GetPlayer().removeitem(HagravenFeathers,TOTAL,1))HagravenFeathersCHESTREF.additem(HagravenFeathers,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(HangingMoss ))>= 1Total= Game.GetPlayer().GetItemCount(HangingMoss)(Game.GetPlayer().removeitem(HangingMoss,TOTAL,1))HangingMossCHESTREF.additem(HangingMoss,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(HawkBeak ))>= 1Total= Game.GetPlayer().GetItemCount(HawkBeak)(Game.GetPlayer().removeitem(HawkBeak,TOTAL,1))HawkBeakCHESTREF.additem(HawkBeak,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(HawkFeathers ))>= 1Total= Game.GetPlayer().GetItemCount(HawkFeathers)(Game.GetPlayer().removeitem(HawkFeathers,TOTAL,1))HawkFeathersCHESTREF.additem(HawkFeathers,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(HumanFlesh ))>= 1Total= Game.GetPlayer().GetItemCount(HumanFlesh)(Game.GetPlayer().removeitem(HumanFlesh,TOTAL,1))HumanFleshCHESTREF.additem(HumanFlesh,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(HumanHeart ))>= 1Total= Game.GetPlayer().GetItemCount(HumanHeart)(Game.GetPlayer().removeitem(HumanHeart,TOTAL,1))HumanHeartCHESTREF.additem(HumanHeart,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(IceWraithTeeth ))>= 1Total= Game.GetPlayer().GetItemCount(IceWraithTeeth)(Game.GetPlayer().removeitem(IceWraithTeeth,TOTAL,1))IceWraithTeethCHESTREF.additem(IceWraithTeeth,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(JazBay ))>= 1Total= Game.GetPlayer().GetItemCount(JazBay)(Game.GetPlayer().removeitem(JazBay,TOTAL,1))JazBayCHESTREF.additem(JazBay,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(JuniperBerries ))>= 1Total= Game.GetPlayer().GetItemCount(JuniperBerries)(Game.GetPlayer().removeitem(JuniperBerries,TOTAL,1))JuniperBerriesCHESTREF.additem(JuniperBerries,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Lavender ))>= 1Total= Game.GetPlayer().GetItemCount(Lavender)(Game.GetPlayer().removeitem(Lavender,TOTAL,1))LavenderCHESTREF.additem(Lavender,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(MoonSugar ))>= 1Total= Game.GetPlayer().GetItemCount(MoonSugar)(Game.GetPlayer().removeitem(MoonSugar,TOTAL,1))MoonSugarCHESTREF.additem(MoonSugar,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(MoraTapinellaBits ))>= 1Total= Game.GetPlayer().GetItemCount(MoraTapinellaBits)(Game.GetPlayer().removeitem(MoraTapinellaBits,TOTAL,1))MoraTapinellaBitsCHESTREF.additem(MoraTapinellaBits,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(MothWingBlue ))>= 1Total= Game.GetPlayer().GetItemCount(MothWingBlue)(Game.GetPlayer().removeitem(MothWingBlue,TOTAL,1))MothWingBlueCHESTREF.additem(MothWingBlue,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(MothWingLuna ))>= 1Total= Game.GetPlayer().GetItemCount(MothWingLuna)(Game.GetPlayer().removeitem(MothWingLuna,TOTAL,1))MothWingLunaCHESTREF.additem(MothWingLuna,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(MothWingMonarch ))>= 1Total= Game.GetPlayer().GetItemCount(MothWingMonarch)(Game.GetPlayer().removeitem(MothWingMonarch,TOTAL,1))MothWingMonarchCHESTREF.additem(MothWingMonarch,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(MountainFlower01Purple ))>= 1Total= Game.GetPlayer().GetItemCount(MountainFlower01Purple)(Game.GetPlayer().removeitem(MountainFlower01Purple,TOTAL,1))MountainFlower01PurpleCHESTREF.additem(MountainFlower01Purple,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(MountainFlower01Red ))>= 1Total= Game.GetPlayer().GetItemCount(MountainFlower01Red)(Game.GetPlayer().removeitem(MountainFlower01Red,TOTAL,1))MountainFlower01RedCHESTREF.additem(MountainFlower01Red,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(MountainFlower01Blue ))>= 1Total= Game.GetPlayer().GetItemCount(MountainFlower01Blue)(Game.GetPlayer().removeitem(MountainFlower01Blue,TOTAL,1))MountainFlower01BlueCHESTREF.additem(MountainFlower01Blue,TOTAL,1)Endif;If (Game.GetPlayer().GetItemCount(MS03BlackBriarSecretIngredient ))>= 1; Total= Game.GetPlayer().GetItemCount(MS03BlackBriarSecretIngredient); (Game.GetPlayer().removeitem(MS03BlackBriarSecretIngredient,TOTAL,1)); MS03BlackBriarSecretIngredientCHESTREF.additem(MS03BlackBriarSecretIngredient,TOTAL,1);EndifIf (Game.GetPlayer().GetItemCount(MudcrabChitin ))>= 1Total= Game.GetPlayer().GetItemCount(MudcrabChitin)(Game.GetPlayer().removeitem(MudcrabChitin,TOTAL,1))MudcrabChitinCHESTREF.additem(MudcrabChitin,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Mushroom01 ))>= 1Total= Game.GetPlayer().GetItemCount(Mushroom01)(Game.GetPlayer().removeitem(Mushroom01,TOTAL,1))Mushroom01CHESTREF.additem(Mushroom01,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Mushroom02 ))>= 1Total= Game.GetPlayer().GetItemCount(Mushroom02)(Game.GetPlayer().removeitem(Mushroom02,TOTAL,1))Mushroom02CHESTREF.additem(Mushroom02,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Mushroom03 ))>= 1Total= Game.GetPlayer().GetItemCount(Mushroom03)(Game.GetPlayer().removeitem(Mushroom03,TOTAL,1))Mushroom03CHESTREF.additem(Mushroom03,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Mushroom04 ))>= 1Total= Game.GetPlayer().GetItemCount(Mushroom04)(Game.GetPlayer().removeitem(Mushroom04,TOTAL,1))Mushroom04CHESTREF.additem(Mushroom04,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Mushroom05 ))>= 1Total= Game.GetPlayer().GetItemCount(Mushroom05)(Game.GetPlayer().removeitem(Mushroom05,TOTAL,1))Mushroom05CHESTREF.additem(Mushroom05,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Mushroom06 ))>= 1Total= Game.GetPlayer().GetItemCount(Mushroom06)(Game.GetPlayer().removeitem(Mushroom06,TOTAL,1))Mushroom06CHESTREF.additem(Mushroom06,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Nightshade ))>= 1Total= Game.GetPlayer().GetItemCount(Nightshade)(Game.GetPlayer().removeitem(Nightshade,TOTAL,1))NightshadeCHESTREF.additem(Nightshade,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(NimrootRed ))>= 1Total= Game.GetPlayer().GetItemCount(NimrootRed)(Game.GetPlayer().removeitem(NimrootRed,TOTAL,1))NimrootRedCHESTREF.additem(NimrootRed,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Nirnroot ))>= 1Total= Game.GetPlayer().GetItemCount(Nirnroot)(Game.GetPlayer().removeitem(Nirnroot,TOTAL,1))NirnrootCHESTREF.additem(Nirnroot,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(NordicBarnacles ))>= 1Total= Game.GetPlayer().GetItemCount(NordicBarnacles)(Game.GetPlayer().removeitem(NordicBarnacles,TOTAL,1))NordicBarnaclesCHESTREF.additem(NordicBarnacles,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Pearl ))>= 1Total= Game.GetPlayer().GetItemCount(Pearl)(Game.GetPlayer().removeitem(Pearl,TOTAL,1))PearlCHESTREF.additem(Pearl,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(PearlSmall ))>= 1Total= Game.GetPlayer().GetItemCount(PearlSmall)(Game.GetPlayer().removeitem(PearlSmall,TOTAL,1))PearlSmallCHESTREF.additem(PearlSmall,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(PowderedMammothTusk ))>= 1Total= Game.GetPlayer().GetItemCount(PowderedMammothTusk)(Game.GetPlayer().removeitem(PowderedMammothTusk,TOTAL,1))PowderedMammothTuskCHESTREF.additem(PowderedMammothTusk,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SabrecatEyeball ))>= 1Total= Game.GetPlayer().GetItemCount(SabrecatEyeball)(Game.GetPlayer().removeitem(SabrecatEyeball,TOTAL,1))SabrecatEyeballCHESTREF.additem(SabrecatEyeball,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SabrecatTooth ))>= 1Total= Game.GetPlayer().GetItemCount(SabrecatTooth)(Game.GetPlayer().removeitem(SabrecatTooth,TOTAL,1))SabrecatToothCHESTREF.additem(SabrecatTooth,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SaltPile ))>= 1Total= Game.GetPlayer().GetItemCount(SaltPile)(Game.GetPlayer().removeitem(SaltPile,TOTAL,1))SaltPileCHESTREF.additem(SaltPile,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(ScalyPholiotaBits ))>= 1Total= Game.GetPlayer().GetItemCount(ScalyPholiotaBits)(Game.GetPlayer().removeitem(ScalyPholiotaBits,TOTAL,1))ScalyPholiotaBitsCHESTREF.additem(ScalyPholiotaBits,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SkeeverTail ))>= 1Total= Game.GetPlayer().GetItemCount(SkeeverTail)(Game.GetPlayer().removeitem(SkeeverTail,TOTAL,1))SkeeverTailCHESTREF.additem(SkeeverTail,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SlaughterfishEgg01 ))>= 1Total= Game.GetPlayer().GetItemCount(SlaughterfishEgg01)(Game.GetPlayer().removeitem(SlaughterfishEgg01,TOTAL,1))SlaughterfishEgg01CHESTREF.additem(SlaughterfishEgg01,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SlaughterfishScales ))>= 1Total= Game.GetPlayer().GetItemCount(SlaughterfishScales)(Game.GetPlayer().removeitem(SlaughterfishScales,TOTAL,1))SlaughterfishScalesCHESTREF.additem(SlaughterfishScales,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Snowberry ))>= 1Total= Game.GetPlayer().GetItemCount(Snowberry)(Game.GetPlayer().removeitem(Snowberry,TOTAL,1))SnowberryCHESTREF.additem(Snowberry,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SpiderEgg ))>= 1Total= Game.GetPlayer().GetItemCount(SpiderEgg)(Game.GetPlayer().removeitem(SpiderEgg,TOTAL,1))SpiderEggCHESTREF.additem(SpiderEgg,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SpikyGrass01 ))>= 1Total= Game.GetPlayer().GetItemCount(SpikyGrass01)(Game.GetPlayer().removeitem(SpikyGrass01,TOTAL,1))SpikyGrass01CHESTREF.additem(SpikyGrass01,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SprigganSap ))>= 1Total= Game.GetPlayer().GetItemCount(SprigganSap)(Game.GetPlayer().removeitem(SprigganSap,TOTAL,1))SprigganSapCHESTREF.additem(SprigganSap,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(SwampFungalPod01 ))>= 1Total= Game.GetPlayer().GetItemCount(SwampFungalPod01)(Game.GetPlayer().removeitem(SwampFungalPod01,TOTAL,1))SwampFungalPod01CHESTREF.additem(SwampFungalPod01,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Taproot ))>= 1Total= Game.GetPlayer().GetItemCount(Taproot)(Game.GetPlayer().removeitem(Taproot,TOTAL,1))TaprootCHESTREF.additem(Taproot,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Thistle01 ))>= 1Total= Game.GetPlayer().GetItemCount(Thistle01)(Game.GetPlayer().removeitem(Thistle01,TOTAL,1))Thistle01CHESTREF.additem(Thistle01,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(TrollFat ))>= 1Total= Game.GetPlayer().GetItemCount(TrollFat)(Game.GetPlayer().removeitem(TrollFat,TOTAL,1))TrollFatCHESTREF.additem(TrollFat,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(TundraCotton ))>= 1Total= Game.GetPlayer().GetItemCount(TundraCotton)(Game.GetPlayer().removeitem(TundraCotton,TOTAL,1))TundraCottonCHESTREF.additem(TundraCotton,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(vampireDust ))>= 1Total= Game.GetPlayer().GetItemCount(vampireDust)(Game.GetPlayer().removeitem(vampireDust,TOTAL,1))vampireDustCHESTREF.additem(vampireDust,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(VoidSalts ))>= 1Total= Game.GetPlayer().GetItemCount(VoidSalts)(Game.GetPlayer().removeitem(VoidSalts,TOTAL,1))VoidSaltsCHESTREF.additem(VoidSalts,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(Wheat ))>= 1Total= Game.GetPlayer().GetItemCount(Wheat)(Game.GetPlayer().removeitem(Wheat,TOTAL,1))WheatCHESTREF.additem(Wheat,TOTAL,1)EndifIf (Game.GetPlayer().GetItemCount(WispWrappings ))>= 1Total= Game.GetPlayer().GetItemCount(WispWrappings)(Game.GetPlayer().removeitem(WispWrappings,TOTAL,1))WispWrappingsCHESTREF.additem(WispWrappings,TOTAL,1)EndifDebug.MessageBox("Got End!")EndifEndEvent