<Settings DefaultValue="false" Type="Boolean" Name="Use Carnelian" Summary="Should we craft from Carnelians?" Category="JC Crafting" Global="False" Hidden="False" />
<Settings DefaultValue="false" Type="Boolean" Name="Use Alicite" Summary="Should we craft from Alicites?" Category="JC Crafting" Global="False" Hidden="False" />
<Settings DefaultValue="false" Type="Boolean" Name="Use Hessonite" Summary="Should we craft from Hessonites?" Category="JC Crafting" Global="False" Hidden="False" />
<Settings DefaultValue="false" Type="Boolean" Name="Use Jasper" Summary="Should we craft from Jaspers?" Category="JC Crafting" Global="False" Hidden="False" />
<Settings DefaultValue="false" Type="Boolean" Name="Use Nightstone" Summary="Should we craft from Nightstones?" Category="JC Crafting" Global="False" Hidden="False" />
<Declaration Code="int settingsAmount;" />
Calculating how many settings to buy (DELETE THIS LINE)
<SubRoutine SubRoutineName="Calc Settings">
<CustomAction Code="settingsAmount = 0;" />
<If Condition="(bool)Settings["Use Alicite"]" IgnoreCanRun="True">
<CustomAction Code="settingsAmount = settingsAmount + InbagCount (52179) / 2;" />
</If>
<If Condition="(bool)Settings["Use Carnelian"]" IgnoreCanRun="True">
<CustomAction Code="settingsAmount = settingsAmount + (InbagCount (52177) / 3) * 3;" />
</If>
<If Condition="(bool)Settings["Use Hessonite"]" IgnoreCanRun="True">
<CustomAction Code="settingsAmount = settingsAmount + InbagCount (52181) / 2;" />
</If>
<If Condition="(bool)Settings["Use Nightstone"]" IgnoreCanRun="True">
<CustomAction Code="settingsAmount = settingsAmount + InbagCount (52180) / 2;" />
</If>
<If Condition="(bool)Settings["Use Jasper"]" IgnoreCanRun="True">
<CustomAction Code="settingsAmount = settingsAmount + InbagCount (52182);" />
</If>
<CustomAction Code="settingsAmount = settingsAmount - InbagCount (52188);" />
</SubRoutine>
Add your own If statement and place where you buy the settings NOTE: the "Count" has to be "settingsAmount" (DELETE THIS LINE)
<If Condition="Me.MapId == 571" IgnoreCanRun="True">
<MoveToAction Location="5891.438, 719.4335, 640.3498" MoveType="Location" Pathing="Navigator" Entry="0" />
<BuyItemAction NpcEntry="28721" Location="5875.724, 714.0495, 643.0885" ItemID="52188" BuyItemType="SpecificItem" Count="settingsAmount" BuyAdditively="True" />
</If>
Add more rings/necks. this one only containt Alicite Pendant (DELETE THIS LINE)
<SubRoutine SubRoutineName="Craft JC">
<CallSubRoutine SubRoutineName="Calc Settings" />
<If Condition="InbagCount (52188) < settingsAmount" IgnoreCanRun="True">
<CallSubRoutine SubRoutineName="Buy Settings" />
</If>
<While Condition="InbagCount (52179) >= 2 && Me.FreeBagSlots >= 5 && (bool)Settings["Use Alicite"]" IgnoreCanRun="False">
<CastSpellAction RepeatType="Craftable" Repeat="1" Entry="73496" CastOnItem="False" ItemType="Chest" ItemId="0" />
</While>
</SubRoutine>