Hey guys how i want to add a simple loot rule but i can't make it work atm:
I want the bot to loot al yellow rings/amulets. That simple i don't care about ilvl or anything.
<ItemRule quality="Rare4" itemBaseType="Jewelry" />
might do it
if not try
<ItemRule quality="rare4" itemBaseType="Jewelry">
<StatRules>
<Rule quality="Rare4" />
</StatRules>
</ItemRule>
<ItemRule itemBaseType="Jewelry" description="Keep Jewelry">
<StatRules>
<!-- All Armor with min value of 100 Dex.-->
<Rule stat="Dexterity" minValue="100" quality="Rare4" />
<!-- All Armor with min value of 100 Int.-->
<Rule stat="Intelligence" minValue="100" quality="Rare4" />
<!-- All Armor with min value of 20 Gold Find.-->
<Rule stat="GoldFind" minValue="20" quality="Rare4" />
<!-- All Armor with min value of 20 Magic Find.-->
<Rule stat="MagicFind" minValue="20" quality="Rare4" />
<!-- All Armor with min value of 13% Increased Attack Speed.-->
<Rule stat="AttackSpeedPercent" minValue="7" quality="Rare4" />
</StatRules>
</ItemRule>
Question for all you guru's out there:
In the following code snippit, are the statrules considered an "AND" or an "OR"?
Code:<ItemRule itemBaseType="Jewelry" description="Keep Jewelry"> <StatRules> <!-- All Armor with min value of 100 Dex.--> <Rule stat="Dexterity" minValue="100" quality="Rare4" /> <!-- All Armor with min value of 100 Int.--> <Rule stat="Intelligence" minValue="100" quality="Rare4" /> <!-- All Armor with min value of 20 Gold Find.--> <Rule stat="GoldFind" minValue="20" quality="Rare4" /> <!-- All Armor with min value of 20 Magic Find.--> <Rule stat="MagicFind" minValue="20" quality="Rare4" /> <!-- All Armor with min value of 13% Increased Attack Speed.--> <Rule stat="AttackSpeedPercent" minValue="7" quality="Rare4" /> </StatRules> </ItemRule>
I'd be inclined to say AND but i dont think anyone knows for sure
Question for all you guru's out there:
In the following code snippit, are the statrules considered an "AND" or an "OR"?
Code:<ItemRule itemBaseType="Jewelry" description="Keep Jewelry"> <StatRules> <!-- All Armor with min value of 100 Dex.--> <Rule stat="Dexterity" minValue="100" quality="Rare4" /> <!-- All Armor with min value of 100 Int.--> <Rule stat="Intelligence" minValue="100" quality="Rare4" /> <!-- All Armor with min value of 20 Gold Find.--> <Rule stat="GoldFind" minValue="20" quality="Rare4" /> <!-- All Armor with min value of 20 Magic Find.--> <Rule stat="MagicFind" minValue="20" quality="Rare4" /> <!-- All Armor with min value of 13% Increased Attack Speed.--> <Rule stat="AttackSpeedPercent" minValue="7" quality="Rare4" /> </StatRules> </ItemRule>
All rulesets are AND lists. An item has to match every <rule> entry in an <itemrule> set. Each value comparison is considered "equal to or more than >=".