Blimketi Posted November 27, 2016 Share Posted November 27, 2016 What I try to do: I. I'm trying to have a visual representation of ingots stored in a cupboard connected to a chest, so everytime I add an Ingot to the chest, one static ingot will appear in the cupboard.II. Later I'll try to connect the cupboard with the forge in my house, so everytime I use the forge, it takes the ingots from my cupboard andIII. stores the product in my armory chest. What do I know about scripting:Just a basic understanding of how it works, but eager to learn more. Where am I right now: I'm still working on I., as soon as I have finished that I'll try II and III. .So far I got a script doing what I want when I add or remove items from the chest but I struggle with the OnCellLoad or OnLoad or OnCellAttach to initiate the visuals when I enter the house. Why I write here:1. Questions about my script2. How do activate the script on entering the house3. happy about tips to help me with II and III. Might save me a lot of searching and trial and error. To1. Why did this work: Scriptname TBScriptEnableOnItemAdded extends ObjectReference{On Item Added enable/disable action};====================;Properties;====================MiscObject Property IngotCorundum AutoMiscObject Property IngotDwarven AutoMiscObject Property IngotEbony AutoMiscObject Property IngotGold AutoMiscObject Property IngotIMoonstone AutoMiscObject Property IngotIron AutoMiscObject Property IngotMalachite AutoMiscObject Property IngotOrichalcum AutoMiscObject Property IngotQuicksilver AutoMiscObject Property IngotSilver AutoMiscObject Property IngotSteel AutoObjectReference Property IngotCorundumStorage AutoObjectReference Property IngotDwarvenStorage AutoObjectReference Property IngotEbonyStorage AutoObjectReference Property IngotGoldStorage Auto;ObjectReference Property IngotIronStorage AutoObjectReference Property IngotMalachiteStorage AutoObjectReference Property IngotMoonstoneStorage AutoObjectReference Property IngotOrichalcumStorage AutoObjectReference Property IngotQuicksilverStorage AutoObjectReference Property IngotSilverStorage AutoObjectReference Property IngotSteelStorage Auto;====================;Events;====================Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)If akBaseItem == IngotCorundum && GetItemCount(IngotCorundum) >= 1 ;EnableIngotCorundumStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotDwarven && GetItemCount(IngotDwarven) >= 1 ;EnableIngotDwarvenStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotEbony && GetItemCount(IngotEbony) >= 1 ;EnableIngotEbonyStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotGold && GetItemCount(IngotGold) >= 1 ;EnableIngotGoldStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotIMoonstone && GetItemCount(IngotIMoonstone) >= 1 ;EnableIngotMoonstoneStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotIron && GetItemCount(IngotIron) >= 1 ;EnableIngotIronStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotMalachite && GetItemCount(IngotMalachite) >= 1 ;EnableIngotMalachiteStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotOrichalcum && GetItemCount(IngotOrichalcum) >= 1 ;EnableIngotOrichalcumStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotQuicksilver && GetItemCount(IngotQuicksilver) >= 1 ;EnableIngotQuicksilverStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotSilver && GetItemCount(IngotSilver) >= 1 ;EnableIngotSilverStorage.enable()debug.notification ("Item Stored")ElseIf akBaseItem == IngotSteel && GetItemCount(IngotSteel) >= 1 ;EnableIngotSteelStorage.enable()debug.notification ("Item Stored")EndIfEndEventEvent OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)If akBaseItem == IngotCorundum && GetItemCount(IngotCorundum) == 0 ;DisableIngotCorundumStorage.disable()ElseIf akBaseItem == IngotDwarven && GetItemCount(IngotDwarven) == 0 ;DisableIngotDwarvenStorage.disable()ElseIf akBaseItem == IngotEbony && GetItemCount(IngotEbony) == 0 ;DisableIngotEbonyStorage.disable()ElseIf akBaseItem == IngotGold && GetItemCount(IngotGold) == 0 ;DisableIngotGoldStorage.disable()ElseIf akBaseItem == IngotIMoonstone && GetItemCount(IngotIMoonstone) == 0 ;DisableIngotMoonstoneStorage.disable()ElseIf akBaseItem == IngotIron && GetItemCount(IngotIron) == 0 ;DisableIngotIronStorage.disable()ElseIf akBaseItem == IngotMalachite && GetItemCount(IngotMalachite) == 0 ;DisableIngotMalachiteStorage.disable()ElseIf akBaseItem == IngotOrichalcum && GetItemCount(IngotOrichalcum) == 0 ;DisableIngotOrichalcumStorage.disable()ElseIf akBaseItem == IngotQuicksilver && GetItemCount(IngotQuicksilver) == 0 ;DisableIngotQuicksilverStorage.disable()ElseIf akBaseItem == IngotSilver && GetItemCount(IngotSilver) == 0 ;DisableIngotSilverStorage.disable()ElseIf akBaseItem == IngotSteel && GetItemCount(IngotSteel) == 0 ;DisableIngotSteelStorage.disable()EndIfEndEvent and this didn't: Scriptname TBScriptTestVisualActivation extends ObjectReference;====================;Properties;====================MiscObject Property IngotCorundum AutoMiscObject Property IngotDwarven AutoMiscObject Property IngotEbony AutoMiscObject Property IngotGold AutoMiscObject Property IngotIMoonstone AutoMiscObject Property IngotIron AutoMiscObject Property IngotMalachite AutoMiscObject Property IngotOrichalcum AutoMiscObject Property IngotQuicksilver AutoMiscObject Property IngotSilver AutoMiscObject Property IngotSteel AutoObjectReference Property IngotCorundumStorage001 AutoObjectReference Property IngotCorundumStorage002 AutoObjectReference Property IngotCorundumStorage003 AutoObjectReference Property IngotCorundumStorage004 AutoObjectReference Property IngotCorundumStorage005 AutoObjectReference Property IngotCorundumStorage006 AutoObjectReference Property IngotCorundumStorage007 AutoObjectReference Property IngotCorundumStorage008 AutoObjectReference Property IngotCorundumStorage009 AutoObjectReference Property IngotCorundumStorage010 AutoObjectReference Property IngotCorundumStorage011 AutoObjectReference Property IngotCorundumStorage012 AutoObjectReference Property IngotDwarvenStorage001 AutoObjectReference Property IngotDwarvenStorage002 AutoObjectReference Property IngotDwarvenStorage003 AutoObjectReference Property IngotDwarvenStorage004 AutoObjectReference Property IngotDwarvenStorage005 AutoObjectReference Property IngotDwarvenStorage006 AutoObjectReference Property IngotDwarvenStorage007 AutoObjectReference Property IngotDwarvenStorage008 AutoObjectReference Property IngotDwarvenStorage009 AutoObjectReference Property IngotDwarvenStorage010 AutoObjectReference Property IngotEbonyStorage001 AutoObjectReference Property IngotEbonyStorage002 AutoObjectReference Property IngotEbonyStorage003 AutoObjectReference Property IngotEbonyStorage004 AutoObjectReference Property IngotEbonyStorage005 AutoObjectReference Property IngotEbonyStorage006 AutoObjectReference Property IngotEbonyStorage007 AutoObjectReference Property IngotEbonyStorage008 AutoObjectReference Property IngotEbonyStorage009 AutoObjectReference Property IngotEbonyStorage010 AutoObjectReference Property IngotEbonyStorage011 AutoObjectReference Property IngotGoldStorage001 AutoObjectReference Property IngotGoldStorage002 AutoObjectReference Property IngotGoldStorage003 AutoObjectReference Property IngotGoldStorage004 AutoObjectReference Property IngotGoldStorage005 AutoObjectReference Property IngotIronStorage001 AutoObjectReference Property IngotIronStorage002 AutoObjectReference Property IngotIronStorage003 AutoObjectReference Property IngotIronStorage004 AutoObjectReference Property IngotIronStorage005 AutoObjectReference Property IngotIronStorage006 AutoObjectReference Property IngotIronStorage007 AutoObjectReference Property IngotIronStorage008 AutoObjectReference Property IngotIronStorage009 AutoObjectReference Property IngotIronStorage010 AutoObjectReference Property IngotIronStorage011 AutoObjectReference Property IngotIronStorage012 AutoObjectReference Property IngotIronStorage013 AutoObjectReference Property IngotIronStorage014 AutoObjectReference Property IngotIronStorage015 AutoObjectReference Property IngotIronStorage016 AutoObjectReference Property IngotIronStorage017 AutoObjectReference Property IngotIronStorage018 AutoObjectReference Property IngotIronStorage019 AutoObjectReference Property IngotIronStorage020 AutoObjectReference Property IngotIronStorage021 AutoObjectReference Property IngotMalachiteStorage001 AutoObjectReference Property IngotMalachiteStorage002 AutoObjectReference Property IngotMalachiteStorage003 AutoObjectReference Property IngotMalachiteStorage004 AutoObjectReference Property IngotMalachiteStorage005 AutoObjectReference Property IngotMalachiteStorage006 AutoObjectReference Property IngotMalachiteStorage007 AutoObjectReference Property IngotMalachiteStorage008 AutoObjectReference Property IngotMalachiteStorage009 AutoObjectReference Property IngotMalachiteStorage010 AutoObjectReference Property IngotMoonstoneStorage001 AutoObjectReference Property IngotMoonstoneStorage002 AutoObjectReference Property IngotMoonstoneStorage003 AutoObjectReference Property IngotMoonstoneStorage004 AutoObjectReference Property IngotMoonstoneStorage005 AutoObjectReference Property IngotMoonstoneStorage006 AutoObjectReference Property IngotMoonstoneStorage007 AutoObjectReference Property IngotMoonstoneStorage008 AutoObjectReference Property IngotMoonstoneStorage009 AutoObjectReference Property IngotMoonstoneStorage010 AutoObjectReference Property IngotOrichalcumStorage001 AutoObjectReference Property IngotOrichalcumStorage002 AutoObjectReference Property IngotOrichalcumStorage003 AutoObjectReference Property IngotOrichalcumStorage004 AutoObjectReference Property IngotOrichalcumStorage005 AutoObjectReference Property IngotOrichalcumStorage006 AutoObjectReference Property IngotOrichalcumStorage007 AutoObjectReference Property IngotOrichalcumStorage008 AutoObjectReference Property IngotOrichalcumStorage009 AutoObjectReference Property IngotOrichalcumStorage010 AutoObjectReference Property IngotOrichalcumStorage011 AutoObjectReference Property IngotQuicksilverStorage001 AutoObjectReference Property IngotQuicksilverStorage002 AutoObjectReference Property IngotQuicksilverStorage003 AutoObjectReference Property IngotQuicksilverStorage004 AutoObjectReference Property IngotQuicksilverStorage005 AutoObjectReference Property IngotQuicksilverStorage006 AutoObjectReference Property IngotQuicksilverStorage007 AutoObjectReference Property IngotQuicksilverStorage008 AutoObjectReference Property IngotQuicksilverStorage009 AutoObjectReference Property IngotQuicksilverStorage010 AutoObjectReference Property IngotQuicksilverStorage011 AutoObjectReference Property IngotQuicksilverStorage012 AutoObjectReference Property IngotSilverStorage001 AutoObjectReference Property IngotSilverStorage002 AutoObjectReference Property IngotSilverStorage003 AutoObjectReference Property IngotSilverStorage004 AutoObjectReference Property IngotSilverStorage005 AutoObjectReference Property IngotSilverStorage006 AutoObjectReference Property IngotSteelStorage001 AutoObjectReference Property IngotSteelStorage002 AutoObjectReference Property IngotSteelStorage003 AutoObjectReference Property IngotSteelStorage004 AutoObjectReference Property IngotSteelStorage005 AutoObjectReference Property IngotSteelStorage006 AutoObjectReference Property IngotSteelStorage007 AutoObjectReference Property IngotSteelStorage008 AutoObjectReference Property IngotSteelStorage009 AutoObjectReference Property IngotSteelStorage010 AutoObjectReference Property IngotSteelStorage011 AutoObjectReference Property IngotSteelStorage012 AutoObjectReference Property IngotSteelStorage013 AutoObjectReference Property IngotSteelStorage014 AutoObjectReference Property IngotSteelStorage015 Auto;====================;Events;====================Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)If GetItemCount(IngotCorundum) == 1 ;EnableIngotCorundumStorage001.enable()ElseIf GetItemCount(IngotCorundum) == 2 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()ElseIf GetItemCount(IngotCorundum) == 3 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()ElseIf GetItemCount(IngotCorundum) == 4 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()IngotCorundumStorage004.enable()ElseIf GetItemCount(IngotCorundum) == 5 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()IngotCorundumStorage004.enable()IngotCorundumStorage005.enable()ElseIf GetItemCount(IngotCorundum) == 6 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()IngotCorundumStorage004.enable()IngotCorundumStorage005.enable()IngotCorundumStorage006.enable()ElseIf GetItemCount(IngotCorundum) == 7 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()IngotCorundumStorage004.enable()IngotCorundumStorage005.enable()IngotCorundumStorage006.enable()IngotCorundumStorage007.enable()ElseIf GetItemCount(IngotCorundum) == 8 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()IngotCorundumStorage004.enable()IngotCorundumStorage005.enable()IngotCorundumStorage006.enable()IngotCorundumStorage007.enable()IngotCorundumStorage008.enable()ElseIf GetItemCount(IngotCorundum) == 9 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()IngotCorundumStorage004.enable()IngotCorundumStorage005.enable()IngotCorundumStorage006.enable()IngotCorundumStorage007.enable()IngotCorundumStorage008.enable()IngotCorundumStorage009.enable()ElseIf GetItemCount(IngotCorundum) == 10 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()IngotCorundumStorage004.enable()IngotCorundumStorage005.enable()IngotCorundumStorage006.enable()IngotCorundumStorage007.enable()IngotCorundumStorage008.enable()IngotCorundumStorage009.enable()IngotCorundumStorage010.enable()ElseIf GetItemCount(IngotCorundum) == 11 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()IngotCorundumStorage004.enable()IngotCorundumStorage005.enable()IngotCorundumStorage006.enable()IngotCorundumStorage007.enable()IngotCorundumStorage008.enable()IngotCorundumStorage009.enable()IngotCorundumStorage010.enable()IngotCorundumStorage011.enable()ElseIf GetItemCount(IngotCorundum) >= 12 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable()IngotCorundumStorage004.enable()IngotCorundumStorage005.enable()IngotCorundumStorage006.enable()IngotCorundumStorage007.enable()IngotCorundumStorage008.enable()IngotCorundumStorage009.enable()IngotCorundumStorage010.enable()IngotCorundumStorage011.enable()IngotCorundumStorage012.enable()ElseIf GetItemCount(IngotDwarven) == 1 ;EnableIngotDwarvenStorage001.enable()ElseIf GetItemCount(IngotDwarven) == 2 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()ElseIf GetItemCount(IngotDwarven) == 3 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()IngotDwarvenStorage003.enable()ElseIf GetItemCount(IngotDwarven) == 4 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()IngotDwarvenStorage003.enable()IngotDwarvenStorage004.enable()ElseIf GetItemCount(IngotDwarven) == 5 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()IngotDwarvenStorage003.enable()IngotDwarvenStorage004.enable()IngotDwarvenStorage005.enable()ElseIf GetItemCount(IngotDwarven) == 6 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()IngotDwarvenStorage003.enable()IngotDwarvenStorage004.enable()IngotDwarvenStorage005.enable()IngotDwarvenStorage006.enable()ElseIf GetItemCount(IngotDwarven) == 7 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()IngotDwarvenStorage003.enable()IngotDwarvenStorage004.enable()IngotDwarvenStorage005.enable()IngotDwarvenStorage006.enable()IngotDwarvenStorage007.enable()ElseIf GetItemCount(IngotDwarven) == 8 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()IngotDwarvenStorage003.enable()IngotDwarvenStorage004.enable()IngotDwarvenStorage005.enable()IngotDwarvenStorage006.enable()IngotDwarvenStorage007.enable()IngotDwarvenStorage008.enable()ElseIf GetItemCount(IngotDwarven) == 9 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()IngotDwarvenStorage003.enable()IngotDwarvenStorage004.enable()IngotDwarvenStorage005.enable()IngotDwarvenStorage006.enable()IngotDwarvenStorage007.enable()IngotDwarvenStorage008.enable()IngotDwarvenStorage009.enable()ElseIf GetItemCount(IngotDwarven) >= 10 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()IngotDwarvenStorage003.enable()IngotDwarvenStorage004.enable()IngotDwarvenStorage005.enable()IngotDwarvenStorage006.enable()IngotDwarvenStorage007.enable()IngotDwarvenStorage008.enable()IngotDwarvenStorage009.enable()IngotDwarvenStorage010.enable()ElseIf GetItemCount(IngotEbony) == 1 ;EnableIngotEbonyStorage001.enable()ElseIf GetItemCount(IngotEbony) == 2 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()ElseIf GetItemCount(IngotEbony) == 3 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable()ElseIf GetItemCount(IngotEbony) == 4 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable()IngotEbonyStorage004.enable()ElseIf GetItemCount(IngotEbony) == 5 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable()IngotEbonyStorage004.enable()IngotEbonyStorage005.enable()ElseIf GetItemCount(IngotEbony) == 6 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable()IngotEbonyStorage004.enable()IngotEbonyStorage005.enable()IngotEbonyStorage006.enable()ElseIf GetItemCount(IngotEbony) == 7 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable()IngotEbonyStorage004.enable()IngotEbonyStorage005.enable()IngotEbonyStorage006.enable()IngotEbonyStorage007.enable()ElseIf GetItemCount(IngotEbony) == 8 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable()IngotEbonyStorage004.enable()IngotEbonyStorage005.enable()IngotEbonyStorage006.enable()IngotEbonyStorage007.enable()IngotEbonyStorage008.enable()ElseIf GetItemCount(IngotEbony) == 9 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable()IngotEbonyStorage004.enable()IngotEbonyStorage005.enable()IngotEbonyStorage006.enable()IngotEbonyStorage007.enable()IngotEbonyStorage008.enable()IngotEbonyStorage009.enable()ElseIf GetItemCount(IngotEbony) == 10 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable()IngotEbonyStorage004.enable()IngotEbonyStorage005.enable()IngotEbonyStorage006.enable()IngotEbonyStorage007.enable()IngotEbonyStorage008.enable()IngotEbonyStorage009.enable()IngotEbonyStorage010.enable()ElseIf GetItemCount(IngotEbony) >= 11 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable()IngotEbonyStorage004.enable()IngotEbonyStorage005.enable()IngotEbonyStorage006.enable()IngotEbonyStorage007.enable()IngotEbonyStorage008.enable()IngotEbonyStorage009.enable()IngotEbonyStorage010.enable()IngotEbonyStorage011.enable()ElseIf GetItemCount(IngotGold) == 1 ;EnableIngotGoldStorage001.enable()ElseIf GetItemCount(IngotGold) == 2 ;EnableIngotGoldStorage001.enable()IngotGoldStorage002.enable()ElseIf GetItemCount(IngotGold) == 3 ;EnableIngotGoldStorage001.enable()IngotGoldStorage002.enable()IngotGoldStorage003.enable()ElseIf GetItemCount(IngotGold) == 4 ;EnableIngotGoldStorage001.enable()IngotGoldStorage002.enable()IngotGoldStorage003.enable()IngotGoldStorage004.enable()ElseIf GetItemCount(IngotGold) >= 5 ;EnableIngotGoldStorage001.enable()IngotGoldStorage002.enable()IngotGoldStorage003.enable()IngotGoldStorage004.enable()IngotGoldStorage005.enable()ElseIf GetItemCount(IngotIron) == 1 ;EnableIngotIronStorage001.enable()ElseIf GetItemCount(IngotIron) == 2 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()ElseIf GetItemCount(IngotIron) == 3 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()ElseIf GetItemCount(IngotIron) == 4 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()ElseIf GetItemCount(IngotIron) == 5 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()ElseIf GetItemCount(IngotIron) == 6 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()ElseIf GetItemCount(IngotIron) == 7 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()ElseIf GetItemCount(IngotIron) == 8 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()ElseIf GetItemCount(IngotIron) == 9 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()ElseIf GetItemCount(IngotIron) == 10 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()ElseIf GetItemCount(IngotIron) == 11 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()ElseIf GetItemCount(IngotIron) == 12 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()ElseIf GetItemCount(IngotIron) == 13 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()IngotIronStorage013.enable()ElseIf GetItemCount(IngotIron) == 14 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()IngotIronStorage013.enable()IngotIronStorage014.enable()ElseIf GetItemCount(IngotIron) == 15 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()IngotIronStorage013.enable()IngotIronStorage014.enable()IngotIronStorage015.enable()ElseIf GetItemCount(IngotIron) == 16 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()IngotIronStorage013.enable()IngotIronStorage014.enable()IngotIronStorage015.enable()IngotIronStorage016.enable()ElseIf GetItemCount(IngotIron) == 17 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()IngotIronStorage013.enable()IngotIronStorage014.enable()IngotIronStorage015.enable()IngotIronStorage016.enable()IngotIronStorage017.enable()ElseIf GetItemCount(IngotIron) == 18 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()IngotIronStorage013.enable()IngotIronStorage014.enable()IngotIronStorage015.enable()IngotIronStorage016.enable()IngotIronStorage017.enable()IngotIronStorage018.enable()ElseIf GetItemCount(IngotIron) == 19 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()IngotIronStorage013.enable()IngotIronStorage014.enable()IngotIronStorage015.enable()IngotIronStorage016.enable()IngotIronStorage017.enable()IngotIronStorage018.enable()IngotIronStorage019.enable()ElseIf GetItemCount(IngotIron) == 20 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()IngotIronStorage013.enable()IngotIronStorage014.enable()IngotIronStorage015.enable()IngotIronStorage016.enable()IngotIronStorage017.enable()IngotIronStorage018.enable()IngotIronStorage019.enable()IngotIronStorage020.enable()ElseIf GetItemCount(IngotIron) >= 21 ;EnableIngotIronStorage001.enable()IngotIronStorage002.enable()IngotIronStorage003.enable()IngotIronStorage004.enable()IngotIronStorage005.enable()IngotIronStorage006.enable()IngotIronStorage007.enable()IngotIronStorage008.enable()IngotIronStorage009.enable()IngotIronStorage010.enable()IngotIronStorage011.enable()IngotIronStorage012.enable()IngotIronStorage013.enable()IngotIronStorage014.enable()IngotIronStorage015.enable()IngotIronStorage016.enable()IngotIronStorage017.enable()IngotIronStorage018.enable()IngotIronStorage019.enable()IngotIronStorage020.enable()IngotIronStorage021.enable()ElseIf GetItemCount(IngotMalachite) == 1 ;EnableIngotMalachiteStorage001.enable()ElseIf GetItemCount(IngotMalachite) == 2 ;EnableIngotMalachiteStorage001.enable()IngotMalachiteStorage002.enable()ElseIf GetItemCount(IngotMalachite) == 3 ;EnableIngotMalachiteStorage001.enable()IngotMalachiteStorage002.enable()IngotMalachiteStorage003.enable()ElseIf GetItemCount(IngotMalachite) == 4 ;EnableIngotMalachiteStorage001.enable()IngotMalachiteStorage002.enable()IngotMalachiteStorage003.enable()IngotMalachiteStorage004.enable()ElseIf GetItemCount(IngotMalachite) == 5 ;EnableIngotMalachiteStorage001.enable()IngotMalachiteStorage002.enable()IngotMalachiteStorage003.enable()IngotMalachiteStorage004.enable()IngotMalachiteStorage005.enable()ElseIf GetItemCount(IngotMalachite) == 6 ;EnableIngotMalachiteStorage001.enable()IngotMalachiteStorage002.enable()IngotMalachiteStorage003.enable()IngotMalachiteStorage004.enable()IngotMalachiteStorage005.enable()IngotMalachiteStorage006.enable()ElseIf GetItemCount(IngotMalachite) == 7 ;EnableIngotMalachiteStorage001.enable()IngotMalachiteStorage002.enable()IngotMalachiteStorage003.enable()IngotMalachiteStorage004.enable()IngotMalachiteStorage005.enable()IngotMalachiteStorage006.enable()IngotMalachiteStorage007.enable()ElseIf GetItemCount(IngotMalachite) == 8 ;EnableIngotMalachiteStorage001.enable()IngotMalachiteStorage002.enable()IngotMalachiteStorage003.enable()IngotMalachiteStorage004.enable()IngotMalachiteStorage005.enable()IngotMalachiteStorage006.enable()IngotMalachiteStorage007.enable()IngotMalachiteStorage008.enable()ElseIf GetItemCount(IngotMalachite) == 9 ;EnableIngotMalachiteStorage001.enable()IngotMalachiteStorage002.enable()IngotMalachiteStorage003.enable()IngotMalachiteStorage004.enable()IngotMalachiteStorage005.enable()IngotMalachiteStorage006.enable()IngotMalachiteStorage007.enable()IngotMalachiteStorage008.enable()IngotMalachiteStorage009.enable()ElseIf GetItemCount(IngotMalachite) >= 10 ;EnableIngotMalachiteStorage001.enable()IngotMalachiteStorage002.enable()IngotMalachiteStorage003.enable()IngotMalachiteStorage004.enable()IngotMalachiteStorage005.enable()IngotMalachiteStorage006.enable()IngotMalachiteStorage007.enable()IngotMalachiteStorage008.enable()IngotMalachiteStorage009.enable()IngotMalachiteStorage010.enable()ElseIf GetItemCount(IngotIMoonstone) == 1 ;EnableIngotMoonstoneStorage001.enable()ElseIf GetItemCount(IngotIMoonstone) == 2 ;EnableIngotMoonstoneStorage001.enable()IngotMoonstoneStorage002.enable()ElseIf GetItemCount(IngotIMoonstone) == 3 ;EnableIngotMoonstoneStorage001.enable()IngotMoonstoneStorage002.enable()IngotMoonstoneStorage003.enable()ElseIf GetItemCount(IngotIMoonstone) == 4 ;EnableIngotMoonstoneStorage001.enable()IngotMoonstoneStorage002.enable()IngotMoonstoneStorage003.enable()IngotMoonstoneStorage004.enable()ElseIf GetItemCount(IngotIMoonstone) == 5 ;EnableIngotMoonstoneStorage001.enable()IngotMoonstoneStorage002.enable()IngotMoonstoneStorage003.enable()IngotMoonstoneStorage004.enable()IngotMoonstoneStorage005.enable()ElseIf GetItemCount(IngotIMoonstone) == 6 ;EnableIngotMoonstoneStorage001.enable()IngotMoonstoneStorage002.enable()IngotMoonstoneStorage003.enable()IngotMoonstoneStorage004.enable()IngotMoonstoneStorage005.enable()IngotMoonstoneStorage006.enable()ElseIf GetItemCount(IngotIMoonstone) == 7 ;EnableIngotMoonstoneStorage001.enable()IngotMoonstoneStorage002.enable()IngotMoonstoneStorage003.enable()IngotMoonstoneStorage004.enable()IngotMoonstoneStorage005.enable()IngotMoonstoneStorage006.enable()IngotMoonstoneStorage007.enable()ElseIf GetItemCount(IngotIMoonstone) == 8 ;EnableIngotMoonstoneStorage001.enable()IngotMoonstoneStorage002.enable()IngotMoonstoneStorage003.enable()IngotMoonstoneStorage004.enable()IngotMoonstoneStorage005.enable()IngotMoonstoneStorage006.enable()IngotMoonstoneStorage007.enable()IngotMoonstoneStorage008.enable()ElseIf GetItemCount(IngotIMoonstone) == 9 ;EnableIngotMoonstoneStorage001.enable()IngotMoonstoneStorage002.enable()IngotMoonstoneStorage003.enable()IngotMoonstoneStorage004.enable()IngotMoonstoneStorage005.enable()IngotMoonstoneStorage006.enable()IngotMoonstoneStorage007.enable()IngotMoonstoneStorage008.enable()IngotMoonstoneStorage009.enable()ElseIf GetItemCount(IngotIMoonstone) >= 10 ;EnableIngotMoonstoneStorage001.enable()IngotMoonstoneStorage002.enable()IngotMoonstoneStorage003.enable()IngotMoonstoneStorage004.enable()IngotMoonstoneStorage005.enable()IngotMoonstoneStorage006.enable()IngotMoonstoneStorage007.enable()IngotMoonstoneStorage008.enable()IngotMoonstoneStorage009.enable()IngotMoonstoneStorage010.enable()ElseIf GetItemCount(IngotOrichalcum) == 1 ;EnableIngotOrichalcumStorage001.enable()ElseIf GetItemCount(IngotOrichalcum) == 2 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()ElseIf GetItemCount(IngotOrichalcum) == 3 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()IngotOrichalcumStorage003.enable()ElseIf GetItemCount(IngotOrichalcum) == 4 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()IngotOrichalcumStorage003.enable()IngotOrichalcumStorage004.enable()ElseIf GetItemCount(IngotOrichalcum) == 5 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()IngotOrichalcumStorage003.enable()IngotOrichalcumStorage004.enable()IngotOrichalcumStorage005.enable()ElseIf GetItemCount(IngotOrichalcum) == 6 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()IngotOrichalcumStorage003.enable()IngotOrichalcumStorage004.enable()IngotOrichalcumStorage005.enable()IngotOrichalcumStorage006.enable()ElseIf GetItemCount(IngotOrichalcum) == 7 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()IngotOrichalcumStorage003.enable()IngotOrichalcumStorage004.enable()IngotOrichalcumStorage005.enable()IngotOrichalcumStorage006.enable()IngotOrichalcumStorage007.enable()ElseIf GetItemCount(IngotOrichalcum) == 8 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()IngotOrichalcumStorage003.enable()IngotOrichalcumStorage004.enable()IngotOrichalcumStorage005.enable()IngotOrichalcumStorage006.enable()IngotOrichalcumStorage007.enable()IngotOrichalcumStorage008.enable()ElseIf GetItemCount(IngotOrichalcum) == 9 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()IngotOrichalcumStorage003.enable()IngotOrichalcumStorage004.enable()IngotOrichalcumStorage005.enable()IngotOrichalcumStorage006.enable()IngotOrichalcumStorage007.enable()IngotOrichalcumStorage008.enable()IngotOrichalcumStorage009.enable()ElseIf GetItemCount(IngotOrichalcum) == 10 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()IngotOrichalcumStorage003.enable()IngotOrichalcumStorage004.enable()IngotOrichalcumStorage005.enable()IngotOrichalcumStorage006.enable()IngotOrichalcumStorage007.enable()IngotOrichalcumStorage008.enable()IngotOrichalcumStorage009.enable()IngotOrichalcumStorage010.enable()ElseIf GetItemCount(IngotOrichalcum) >= 11 ;EnableIngotOrichalcumStorage001.enable()IngotOrichalcumStorage002.enable()IngotOrichalcumStorage003.enable()IngotOrichalcumStorage004.enable()IngotOrichalcumStorage005.enable()IngotOrichalcumStorage006.enable()IngotOrichalcumStorage007.enable()IngotOrichalcumStorage008.enable()IngotOrichalcumStorage009.enable()IngotOrichalcumStorage010.enable()IngotOrichalcumStorage011.enable()ElseIf GetItemCount(IngotQuicksilver) == 1 ;EnableIngotQuicksilverStorage001.enable()ElseIf GetItemCount(IngotQuicksilver) == 2 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()ElseIf GetItemCount(IngotQuicksilver) == 3 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()ElseIf GetItemCount(IngotQuicksilver) == 4 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()IngotQuicksilverStorage004.enable()ElseIf GetItemCount(IngotQuicksilver) == 5 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()IngotQuicksilverStorage004.enable()IngotQuicksilverStorage005.enable()ElseIf GetItemCount(IngotQuicksilver) == 6 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()IngotQuicksilverStorage004.enable()IngotQuicksilverStorage005.enable()IngotQuicksilverStorage006.enable()ElseIf GetItemCount(IngotQuicksilver) == 7 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()IngotQuicksilverStorage004.enable()IngotQuicksilverStorage005.enable()IngotQuicksilverStorage006.enable()IngotQuicksilverStorage007.enable()ElseIf GetItemCount(IngotQuicksilver) == 8 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()IngotQuicksilverStorage004.enable()IngotQuicksilverStorage005.enable()IngotQuicksilverStorage006.enable()IngotQuicksilverStorage007.enable()IngotQuicksilverStorage008.enable()ElseIf GetItemCount(IngotQuicksilver) == 9 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()IngotQuicksilverStorage004.enable()IngotQuicksilverStorage005.enable()IngotQuicksilverStorage006.enable()IngotQuicksilverStorage007.enable()IngotQuicksilverStorage008.enable()IngotQuicksilverStorage009.enable()ElseIf GetItemCount(IngotQuicksilver) == 10 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()IngotQuicksilverStorage004.enable()IngotQuicksilverStorage005.enable()IngotQuicksilverStorage006.enable()IngotQuicksilverStorage007.enable()IngotQuicksilverStorage008.enable()IngotQuicksilverStorage009.enable()IngotQuicksilverStorage010.enable()ElseIf GetItemCount(IngotQuicksilver) == 11 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()IngotQuicksilverStorage004.enable()IngotQuicksilverStorage005.enable()IngotQuicksilverStorage006.enable()IngotQuicksilverStorage007.enable()IngotQuicksilverStorage008.enable()IngotQuicksilverStorage009.enable()IngotQuicksilverStorage010.enable()IngotQuicksilverStorage011.enable()ElseIf GetItemCount(IngotQuicksilver) >= 12 ;EnableIngotQuicksilverStorage001.enable()IngotQuicksilverStorage002.enable()IngotQuicksilverStorage003.enable()IngotQuicksilverStorage004.enable()IngotQuicksilverStorage005.enable()IngotQuicksilverStorage006.enable()IngotQuicksilverStorage007.enable()IngotQuicksilverStorage008.enable()IngotQuicksilverStorage009.enable()IngotQuicksilverStorage010.enable()IngotQuicksilverStorage011.enable()IngotQuicksilverStorage012.enable()ElseIf GetItemCount(IngotSilver) == 1 ;EnableIngotSilverStorage001.enable()ElseIf GetItemCount(IngotSilver) == 2 ;EnableIngotSilverStorage001.enable()IngotSilverStorage002.enable()ElseIf GetItemCount(IngotSilver) == 3 ;EnableIngotSilverStorage001.enable()IngotSilverStorage002.enable()IngotSilverStorage003.enable()ElseIf GetItemCount(IngotSilver) == 4 ;EnableIngotSilverStorage001.enable()IngotSilverStorage002.enable()IngotSilverStorage003.enable()IngotSilverStorage004.enable()ElseIf GetItemCount(IngotSilver) == 5 ;EnableIngotSilverStorage001.enable()IngotSilverStorage002.enable()IngotSilverStorage003.enable()IngotSilverStorage004.enable()IngotSilverStorage005.enable()ElseIf GetItemCount(IngotSilver) >= 6 ;EnableIngotSilverStorage001.enable()IngotSilverStorage002.enable()IngotSilverStorage003.enable()IngotSilverStorage004.enable()IngotSilverStorage005.enable()IngotSilverStorage006.enable()ElseIf GetItemCount(IngotSteel) == 1 ;EnableIngotSteelStorage001.enable()ElseIf GetItemCount(IngotSteel) == 2 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()ElseIf GetItemCount(IngotSteel) == 3 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()ElseIf GetItemCount(IngotSteel) == 4 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()ElseIf GetItemCount(IngotSteel) == 5 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()ElseIf GetItemCount(IngotSteel) == 6 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()ElseIf GetItemCount(IngotSteel) == 7 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()IngotSteelStorage007.enable()ElseIf GetItemCount(IngotSteel) == 8 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()IngotSteelStorage007.enable()IngotSteelStorage008.enable()ElseIf GetItemCount(IngotSteel) == 9 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()IngotSteelStorage007.enable()IngotSteelStorage008.enable()IngotSteelStorage009.enable()ElseIf GetItemCount(IngotSteel) == 10 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()IngotSteelStorage007.enable()IngotSteelStorage008.enable()IngotSteelStorage009.enable()IngotSteelStorage010.enable()ElseIf GetItemCount(IngotSteel) == 11 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()IngotSteelStorage007.enable()IngotSteelStorage008.enable()IngotSteelStorage009.enable()IngotSteelStorage010.enable()IngotSteelStorage011.enable()ElseIf GetItemCount(IngotSteel) == 12 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()IngotSteelStorage007.enable()IngotSteelStorage008.enable()IngotSteelStorage009.enable()IngotSteelStorage010.enable()IngotSteelStorage011.enable()IngotSteelStorage012.enable()ElseIf GetItemCount(IngotSteel) == 13 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()IngotSteelStorage007.enable()IngotSteelStorage008.enable()IngotSteelStorage009.enable()IngotSteelStorage010.enable()IngotSteelStorage011.enable()IngotSteelStorage012.enable()IngotSteelStorage013.enable()ElseIf GetItemCount(IngotSteel) == 14 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()IngotSteelStorage007.enable()IngotSteelStorage008.enable()IngotSteelStorage009.enable()IngotSteelStorage010.enable()IngotSteelStorage011.enable()IngotSteelStorage012.enable()IngotSteelStorage013.enable()IngotSteelStorage014.enable()ElseIf GetItemCount(IngotSteel) >= 15 ;EnableIngotSteelStorage001.enable()IngotSteelStorage002.enable()IngotSteelStorage003.enable()IngotSteelStorage004.enable()IngotSteelStorage005.enable()IngotSteelStorage006.enable()IngotSteelStorage007.enable()IngotSteelStorage008.enable()IngotSteelStorage009.enable()IngotSteelStorage010.enable()IngotSteelStorage011.enable()IngotSteelStorage012.enable()IngotSteelStorage013.enable()IngotSteelStorage014.enable()IngotSteelStorage015.enable()EndIfEndEventEvent OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)If GetItemCount(IngotCorundum) == 0 ;disableIngotCorundumStorage001.disable()IngotCorundumStorage002.disable()IngotCorundumStorage003.disable()IngotCorundumStorage004.disable()IngotCorundumStorage005.disable()IngotCorundumStorage006.disable()IngotCorundumStorage007.disable()IngotCorundumStorage008.disable()IngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 1 ;disableIngotCorundumStorage002.disable()IngotCorundumStorage003.disable()IngotCorundumStorage004.disable()IngotCorundumStorage005.disable()IngotCorundumStorage006.disable()IngotCorundumStorage007.disable()IngotCorundumStorage008.disable()IngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 2 ;disableIngotCorundumStorage003.disable()IngotCorundumStorage004.disable()IngotCorundumStorage005.disable()IngotCorundumStorage006.disable()IngotCorundumStorage007.disable()IngotCorundumStorage008.disable()IngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 3 ;disableIngotCorundumStorage004.disable()IngotCorundumStorage005.disable()IngotCorundumStorage006.disable()IngotCorundumStorage007.disable()IngotCorundumStorage008.disable()IngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 4 ;disableIngotCorundumStorage005.disable()IngotCorundumStorage006.disable()IngotCorundumStorage007.disable()IngotCorundumStorage008.disable()IngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 5 ;disableIngotCorundumStorage006.disable()IngotCorundumStorage007.disable()IngotCorundumStorage008.disable()IngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 6 ;disableIngotCorundumStorage007.disable()IngotCorundumStorage008.disable()IngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 7 ;disableIngotCorundumStorage008.disable()IngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 8 ;disableIngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 9 ;disableIngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 10 ;disableIngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 11 ;disableIngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 12 ;disableElseIf GetItemCount(IngotDwarven) == 0 ;disableIngotDwarvenStorage001.disable()IngotDwarvenStorage002.disable()IngotDwarvenStorage003.disable()IngotDwarvenStorage004.disable()IngotDwarvenStorage005.disable()IngotDwarvenStorage006.disable()IngotDwarvenStorage007.disable()IngotDwarvenStorage008.disable()IngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 1 ;disableIngotDwarvenStorage002.disable()IngotDwarvenStorage003.disable()IngotDwarvenStorage004.disable()IngotDwarvenStorage005.disable()IngotDwarvenStorage006.disable()IngotDwarvenStorage007.disable()IngotDwarvenStorage008.disable()IngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 2 ;disableIngotDwarvenStorage003.disable()IngotDwarvenStorage004.disable()IngotDwarvenStorage005.disable()IngotDwarvenStorage006.disable()IngotDwarvenStorage007.disable()IngotDwarvenStorage008.disable()IngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 3 ;disableIngotDwarvenStorage004.disable()IngotDwarvenStorage005.disable()IngotDwarvenStorage006.disable()IngotDwarvenStorage007.disable()IngotDwarvenStorage008.disable()IngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 4 ;disableIngotDwarvenStorage005.disable()IngotDwarvenStorage006.disable()IngotDwarvenStorage007.disable()IngotDwarvenStorage008.disable()IngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 5 ;disableIngotDwarvenStorage006.disable()IngotDwarvenStorage007.disable()IngotDwarvenStorage008.disable()IngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 6 ;disableIngotDwarvenStorage007.disable()IngotDwarvenStorage008.disable()IngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 7 ;disableIngotDwarvenStorage008.disable()IngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 8 ;disableIngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 9 ;disableIngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 10 ;disableElseIf GetItemCount(IngotEbony) == 0 ;disableIngotEbonyStorage001.disable()IngotEbonyStorage002.disable()IngotEbonyStorage003.disable()IngotEbonyStorage004.disable()IngotEbonyStorage005.disable()IngotEbonyStorage006.disable()IngotEbonyStorage007.disable()IngotEbonyStorage008.disable()IngotEbonyStorage009.disable()IngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 1 ;disableIngotEbonyStorage002.disable()IngotEbonyStorage003.disable()IngotEbonyStorage004.disable()IngotEbonyStorage005.disable()IngotEbonyStorage006.disable()IngotEbonyStorage007.disable()IngotEbonyStorage008.disable()IngotEbonyStorage009.disable()IngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 2 ;disableIngotEbonyStorage003.disable()IngotEbonyStorage004.disable()IngotEbonyStorage005.disable()IngotEbonyStorage006.disable()IngotEbonyStorage007.disable()IngotEbonyStorage008.disable()IngotEbonyStorage009.disable()IngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 3 ;disableIngotEbonyStorage004.disable()IngotEbonyStorage005.disable()IngotEbonyStorage006.disable()IngotEbonyStorage007.disable()IngotEbonyStorage008.disable()IngotEbonyStorage009.disable()IngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 4 ;disableIngotEbonyStorage005.disable()IngotEbonyStorage006.disable()IngotEbonyStorage007.disable()IngotEbonyStorage008.disable()IngotEbonyStorage009.disable()IngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 5 ;disableIngotEbonyStorage006.disable()IngotEbonyStorage007.disable()IngotEbonyStorage008.disable()IngotEbonyStorage009.disable()IngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 6 ;disableIngotEbonyStorage007.disable()IngotEbonyStorage008.disable()IngotEbonyStorage009.disable()IngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 7 ;disableIngotEbonyStorage008.disable()IngotEbonyStorage009.disable()IngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 8 ;disableIngotEbonyStorage009.disable()IngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 9 ;disableIngotEbonyStorage010.disable()IngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 10 ;disableIngotEbonyStorage011.disable()ElseIf GetItemCount(IngotEbony) == 11 ;disableElseIf GetItemCount(IngotGold) == 0 ;disableIngotGoldStorage001.disable()IngotGoldStorage002.disable()IngotGoldStorage003.disable()IngotGoldStorage004.disable()IngotGoldStorage005.disable()ElseIf GetItemCount(IngotGold) == 1 ;disableIngotGoldStorage002.disable()IngotGoldStorage003.disable()IngotGoldStorage004.disable()IngotGoldStorage005.disable()ElseIf GetItemCount(IngotGold) == 2 ;disableIngotGoldStorage003.disable()IngotGoldStorage004.disable()IngotGoldStorage005.disable()ElseIf GetItemCount(IngotGold) == 3 ;disableIngotGoldStorage004.disable()IngotGoldStorage005.disable()ElseIf GetItemCount(IngotGold) == 4 ;disableIngotGoldStorage005.disable()ElseIf GetItemCount(IngotGold) == 5 ;disableElseIf GetItemCount(IngotIron) == 0 ;disableIngotIronStorage001.disable()IngotIronStorage002.disable()IngotIronStorage003.disable()IngotIronStorage004.disable()IngotIronStorage005.disable()IngotIronStorage006.disable()IngotIronStorage007.disable()IngotIronStorage008.disable()IngotIronStorage009.disable()IngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 1 ;disableIngotIronStorage002.disable()IngotIronStorage003.disable()IngotIronStorage004.disable()IngotIronStorage005.disable()IngotIronStorage006.disable()IngotIronStorage007.disable()IngotIronStorage008.disable()IngotIronStorage009.disable()IngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 2 ;disableIngotIronStorage003.disable()IngotIronStorage004.disable()IngotIronStorage005.disable()IngotIronStorage006.disable()IngotIronStorage007.disable()IngotIronStorage008.disable()IngotIronStorage009.disable()IngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 3 ;disableIngotIronStorage004.disable()IngotIronStorage005.disable()IngotIronStorage006.disable()IngotIronStorage007.disable()IngotIronStorage008.disable()IngotIronStorage009.disable()IngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 4 ;disableIngotIronStorage005.disable()IngotIronStorage006.disable()IngotIronStorage007.disable()IngotIronStorage008.disable()IngotIronStorage009.disable()IngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 5 ;disableIngotIronStorage006.disable()IngotIronStorage007.disable()IngotIronStorage008.disable()IngotIronStorage009.disable()IngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 6 ;disableIngotIronStorage007.disable()IngotIronStorage008.disable()IngotIronStorage009.disable()IngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 7 ;disableIngotIronStorage008.disable()IngotIronStorage009.disable()IngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 8 ;disableIngotIronStorage009.disable()IngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 9 ;disableIngotIronStorage010.disable()IngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 10 ;disableIngotIronStorage011.disable()IngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 11 ;disableIngotIronStorage012.disable()IngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 12 ;disableIngotIronStorage013.disable()IngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 13 ;disableIngotIronStorage014.disable()IngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 14 ;disableIngotIronStorage015.disable()IngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 15 ;disableIngotIronStorage016.disable()IngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 16 ;disableIngotIronStorage017.disable()IngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 17 ;disableIngotIronStorage018.disable()IngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 18 ;disableIngotIronStorage019.disable()IngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 19 ;disableIngotIronStorage020.disable()IngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 20 ;disableIngotIronStorage021.disable()ElseIf GetItemCount(IngotIron) == 21 ;disableElseIf GetItemCount(IngotMalachite) == 0 ;disableIngotMalachiteStorage001.disable()IngotMalachiteStorage002.disable()IngotMalachiteStorage003.disable()IngotMalachiteStorage004.disable()IngotMalachiteStorage005.disable()IngotMalachiteStorage006.disable()IngotMalachiteStorage007.disable()IngotMalachiteStorage008.disable()IngotMalachiteStorage009.disable()IngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 1 ;disableIngotMalachiteStorage002.disable()IngotMalachiteStorage003.disable()IngotMalachiteStorage004.disable()IngotMalachiteStorage005.disable()IngotMalachiteStorage006.disable()IngotMalachiteStorage007.disable()IngotMalachiteStorage008.disable()IngotMalachiteStorage009.disable()IngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 2 ;disableIngotMalachiteStorage003.disable()IngotMalachiteStorage004.disable()IngotMalachiteStorage005.disable()IngotMalachiteStorage006.disable()IngotMalachiteStorage007.disable()IngotMalachiteStorage008.disable()IngotMalachiteStorage009.disable()IngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 3 ;disableIngotMalachiteStorage004.disable()IngotMalachiteStorage005.disable()IngotMalachiteStorage006.disable()IngotMalachiteStorage007.disable()IngotMalachiteStorage008.disable()IngotMalachiteStorage009.disable()IngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 4 ;disableIngotMalachiteStorage005.disable()IngotMalachiteStorage006.disable()IngotMalachiteStorage007.disable()IngotMalachiteStorage008.disable()IngotMalachiteStorage009.disable()IngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 5 ;disableIngotMalachiteStorage006.disable()IngotMalachiteStorage007.disable()IngotMalachiteStorage008.disable()IngotMalachiteStorage009.disable()IngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 6 ;disableIngotMalachiteStorage007.disable()IngotMalachiteStorage008.disable()IngotMalachiteStorage009.disable()IngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 7 ;disableIngotMalachiteStorage008.disable()IngotMalachiteStorage009.disable()IngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 8 ;disableIngotMalachiteStorage009.disable()IngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 9 ;disableIngotMalachiteStorage010.disable()ElseIf GetItemCount(IngotMalachite) == 10 ;disableElseIf GetItemCount(IngotIMoonstone) == 0 ;disableIngotMoonstoneStorage001.disable()IngotMoonstoneStorage002.disable()IngotMoonstoneStorage003.disable()IngotMoonstoneStorage004.disable()IngotMoonstoneStorage005.disable()IngotMoonstoneStorage006.disable()IngotMoonstoneStorage007.disable()IngotMoonstoneStorage008.disable()IngotMoonstoneStorage009.disable()IngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 1 ;disableIngotMoonstoneStorage002.disable()IngotMoonstoneStorage003.disable()IngotMoonstoneStorage004.disable()IngotMoonstoneStorage005.disable()IngotMoonstoneStorage006.disable()IngotMoonstoneStorage007.disable()IngotMoonstoneStorage008.disable()IngotMoonstoneStorage009.disable()IngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 2 ;disableIngotMoonstoneStorage003.disable()IngotMoonstoneStorage004.disable()IngotMoonstoneStorage005.disable()IngotMoonstoneStorage006.disable()IngotMoonstoneStorage007.disable()IngotMoonstoneStorage008.disable()IngotMoonstoneStorage009.disable()IngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 3 ;disableIngotMoonstoneStorage004.disable()IngotMoonstoneStorage005.disable()IngotMoonstoneStorage006.disable()IngotMoonstoneStorage007.disable()IngotMoonstoneStorage008.disable()IngotMoonstoneStorage009.disable()IngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 4 ;disableIngotMoonstoneStorage005.disable()IngotMoonstoneStorage006.disable()IngotMoonstoneStorage007.disable()IngotMoonstoneStorage008.disable()IngotMoonstoneStorage009.disable()IngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 5 ;disableIngotMoonstoneStorage006.disable()IngotMoonstoneStorage007.disable()IngotMoonstoneStorage008.disable()IngotMoonstoneStorage009.disable()IngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 6 ;disableIngotMoonstoneStorage007.disable()IngotMoonstoneStorage008.disable()IngotMoonstoneStorage009.disable()IngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 7 ;disableIngotMoonstoneStorage008.disable()IngotMoonstoneStorage009.disable()IngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 8 ;disableIngotMoonstoneStorage009.disable()IngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 9 ;disableIngotMoonstoneStorage010.disable()ElseIf GetItemCount(IngotIMoonstone) == 10 ;disableElseIf GetItemCount(IngotOrichalcum) == 0 ;disableIngotOrichalcumStorage001.disable()IngotOrichalcumStorage002.disable()IngotOrichalcumStorage003.disable()IngotOrichalcumStorage004.disable()IngotOrichalcumStorage005.disable()IngotOrichalcumStorage006.disable()IngotOrichalcumStorage007.disable()IngotOrichalcumStorage008.disable()IngotOrichalcumStorage009.disable()IngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 1 ;disableIngotOrichalcumStorage002.disable()IngotOrichalcumStorage003.disable()IngotOrichalcumStorage004.disable()IngotOrichalcumStorage005.disable()IngotOrichalcumStorage006.disable()IngotOrichalcumStorage007.disable()IngotOrichalcumStorage008.disable()IngotOrichalcumStorage009.disable()IngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 2 ;disableIngotOrichalcumStorage003.disable()IngotOrichalcumStorage004.disable()IngotOrichalcumStorage005.disable()IngotOrichalcumStorage006.disable()IngotOrichalcumStorage007.disable()IngotOrichalcumStorage008.disable()IngotOrichalcumStorage009.disable()IngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 3 ;disableIngotOrichalcumStorage004.disable()IngotOrichalcumStorage005.disable()IngotOrichalcumStorage006.disable()IngotOrichalcumStorage007.disable()IngotOrichalcumStorage008.disable()IngotOrichalcumStorage009.disable()IngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 4 ;disableIngotOrichalcumStorage005.disable()IngotOrichalcumStorage006.disable()IngotOrichalcumStorage007.disable()IngotOrichalcumStorage008.disable()IngotOrichalcumStorage009.disable()IngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 5 ;disableIngotOrichalcumStorage006.disable()IngotOrichalcumStorage007.disable()IngotOrichalcumStorage008.disable()IngotOrichalcumStorage009.disable()IngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 6 ;disableIngotOrichalcumStorage007.disable()IngotOrichalcumStorage008.disable()IngotOrichalcumStorage009.disable()IngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 7 ;disableIngotOrichalcumStorage008.disable()IngotOrichalcumStorage009.disable()IngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 8 ;disableIngotOrichalcumStorage009.disable()IngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 9 ;disableIngotOrichalcumStorage010.disable()IngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 10 ;disableIngotOrichalcumStorage011.disable()ElseIf GetItemCount(IngotOrichalcum) == 11 ;disableElseIf GetItemCount(IngotQuicksilver) == 0 ;disableIngotQuicksilverStorage001.disable()IngotQuicksilverStorage002.disable()IngotQuicksilverStorage003.disable()IngotQuicksilverStorage004.disable()IngotQuicksilverStorage005.disable()IngotQuicksilverStorage006.disable()IngotQuicksilverStorage007.disable()IngotQuicksilverStorage008.disable()IngotQuicksilverStorage009.disable()IngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 1 ;disableIngotQuicksilverStorage002.disable()IngotQuicksilverStorage003.disable()IngotQuicksilverStorage004.disable()IngotQuicksilverStorage005.disable()IngotQuicksilverStorage006.disable()IngotQuicksilverStorage007.disable()IngotQuicksilverStorage008.disable()IngotQuicksilverStorage009.disable()IngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 2 ;disableIngotQuicksilverStorage003.disable()IngotQuicksilverStorage004.disable()IngotQuicksilverStorage005.disable()IngotQuicksilverStorage006.disable()IngotQuicksilverStorage007.disable()IngotQuicksilverStorage008.disable()IngotQuicksilverStorage009.disable()IngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 3 ;disableIngotQuicksilverStorage004.disable()IngotQuicksilverStorage005.disable()IngotQuicksilverStorage006.disable()IngotQuicksilverStorage007.disable()IngotQuicksilverStorage008.disable()IngotQuicksilverStorage009.disable()IngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 4 ;disableIngotQuicksilverStorage005.disable()IngotQuicksilverStorage006.disable()IngotQuicksilverStorage007.disable()IngotQuicksilverStorage008.disable()IngotQuicksilverStorage009.disable()IngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 5 ;disableIngotQuicksilverStorage006.disable()IngotQuicksilverStorage007.disable()IngotQuicksilverStorage008.disable()IngotQuicksilverStorage009.disable()IngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 6 ;disableIngotQuicksilverStorage007.disable()IngotQuicksilverStorage008.disable()IngotQuicksilverStorage009.disable()IngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 7 ;disableIngotQuicksilverStorage008.disable()IngotQuicksilverStorage009.disable()IngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 8 ;disableIngotQuicksilverStorage009.disable()IngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 9 ;disableIngotQuicksilverStorage010.disable()IngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 10 ;disableIngotQuicksilverStorage011.disable()IngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 11 ;disableIngotQuicksilverStorage012.disable()ElseIf GetItemCount(IngotQuicksilver) == 12 ;disableElseIf GetItemCount(IngotSilver) == 0 ;disableIngotSilverStorage001.disable()IngotSilverStorage002.disable()IngotSilverStorage003.disable()IngotSilverStorage004.disable()IngotSilverStorage005.disable()IngotSilverStorage006.disable()ElseIf GetItemCount(IngotSilver) == 1 ;disableIngotSilverStorage002.disable()IngotSilverStorage003.disable()IngotSilverStorage004.disable()IngotSilverStorage005.disable()IngotSilverStorage006.disable()ElseIf GetItemCount(IngotSilver) == 2 ;disableIngotSilverStorage003.disable()IngotSilverStorage004.disable()IngotSilverStorage005.disable()IngotSilverStorage006.disable()ElseIf GetItemCount(IngotSilver) == 3 ;disableIngotSilverStorage004.disable()IngotSilverStorage005.disable()IngotSilverStorage006.disable()ElseIf GetItemCount(IngotSilver) == 4 ;disableIngotSilverStorage005.disable()IngotSilverStorage006.disable()ElseIf GetItemCount(IngotSilver) == 5 ;disableIngotSilverStorage006.disable()ElseIf GetItemCount(IngotSilver) == 6 ;disableElseIf GetItemCount(IngotSteel) == 0 ;disableIngotSteelStorage001.disable()IngotSteelStorage002.disable()IngotSteelStorage003.disable()IngotSteelStorage004.disable()IngotSteelStorage005.disable()IngotSteelStorage006.disable()IngotSteelStorage007.disable()IngotSteelStorage008.disable()IngotSteelStorage009.disable()IngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 1 ;disableIngotSteelStorage002.disable()IngotSteelStorage003.disable()IngotSteelStorage004.disable()IngotSteelStorage005.disable()IngotSteelStorage006.disable()IngotSteelStorage007.disable()IngotSteelStorage008.disable()IngotSteelStorage009.disable()IngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 2 ;disableIngotSteelStorage003.disable()IngotSteelStorage004.disable()IngotSteelStorage005.disable()IngotSteelStorage006.disable()IngotSteelStorage007.disable()IngotSteelStorage008.disable()IngotSteelStorage009.disable()IngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 3 ;disableIngotSteelStorage004.disable()IngotSteelStorage005.disable()IngotSteelStorage006.disable()IngotSteelStorage007.disable()IngotSteelStorage008.disable()IngotSteelStorage009.disable()IngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 4 ;disableIngotSteelStorage005.disable()IngotSteelStorage006.disable()IngotSteelStorage007.disable()IngotSteelStorage008.disable()IngotSteelStorage009.disable()IngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 5 ;disableIngotSteelStorage006.disable()IngotSteelStorage007.disable()IngotSteelStorage008.disable()IngotSteelStorage009.disable()IngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 6 ;disableIngotSteelStorage007.disable()IngotSteelStorage008.disable()IngotSteelStorage009.disable()IngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 7 ;disableIngotSteelStorage008.disable()IngotSteelStorage009.disable()IngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 8 ;disableIngotSteelStorage009.disable()IngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 9 ;disableIngotSteelStorage010.disable()IngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 10 ;disableIngotSteelStorage011.disable()IngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 11 ;disableIngotSteelStorage012.disable()IngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 12 ;disableIngotSteelStorage013.disable()IngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 13 ;disableIngotSteelStorage014.disable()IngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 14 ;disableIngotSteelStorage015.disable()ElseIf GetItemCount(IngotSteel) == 15 ;disableEndIfEndEvent In the End I wrote one script for every Ingot-Type, which works fine. But still interested to know if there is a more practical approach to it. To2. I tried the following code but it never worked, what am I missing? Event OnCellAttach()If GetItemCount(IngotCorundum) == 0 ;disableIngotCorundumStorage001.disable()IngotCorundumStorage002.disable()IngotCorundumStorage003.disable()IngotCorundumStorage004.disable()IngotCorundumStorage005.disable()IngotCorundumStorage006.disable()IngotCorundumStorage007.disable()IngotCorundumStorage008.disable()IngotCorundumStorage009.disable()IngotCorundumStorage010.disable()IngotCorundumStorage011.disable()IngotCorundumStorage012.disable()ElseIf GetItemCount(IngotCorundum) == 1 ;EnableIngotCorundumStorage001.enable()ElseIf GetItemCount(IngotCorundum) == 2 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()ElseIf GetItemCount(IngotCorundum) == 3 ;EnableIngotCorundumStorage001.enable()IngotCorundumStorage002.enable()IngotCorundumStorage003.enable().... Event OnCellLoad()If GetItemCount(IngotEbony) == 1 ;EnableIngotEbonyStorage001.enable()ElseIf GetItemCount(IngotEbony) == 2 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()ElseIf GetItemCount(IngotEbony) == 3 ;EnableIngotEbonyStorage001.enable()IngotEbonyStorage002.enable()IngotEbonyStorage003.enable().... Event OnLoad()If GetItemCount(IngotDwarven) == 0 ;disableIngotDwarvenStorage001.disable()IngotDwarvenStorage002.disable()IngotDwarvenStorage003.disable()IngotDwarvenStorage004.disable()IngotDwarvenStorage005.disable()IngotDwarvenStorage006.disable()IngotDwarvenStorage007.disable()IngotDwarvenStorage008.disable()IngotDwarvenStorage009.disable()IngotDwarvenStorage010.disable()ElseIf GetItemCount(IngotDwarven) == 1 ;EnableIngotDwarvenStorage001.enable()ElseIf GetItemCount(IngotDwarven) == 2 ;EnableIngotDwarvenStorage001.enable()IngotDwarvenStorage002.enable()...... I tried it on Objects being "Initially Disabled" and enabled, it never worked. Yes, I entered from outside into the house, I did not spawn inside. Hope someone can help me with these problems.Thanks BlimkeTi Link to comment Share on other sites More sharing options...
Recommended Posts