What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

i want item rules to pick up 3 things, how can i do this?

harleystcool

New Member
Joined
Oct 5, 2012
Messages
667
Reaction score
0
I farm nightmare for gold and i want my bot to only pickup rings, legendary pants and crossbows (of course gold also), how do i make this? i looked in the loot rules db came with, and i don't really under stand how i should do this?
 
If you're using Giles, set "Use custom loot rules" on Giles options and load the item rules xml file from DB settings tab. A item rule like the following should work for your purposes:
PHP:
<?xml version="1.0" encoding="utf-8" ?>
<ItemRules name="harleystcool Rules" useRoundedValues="true" xmlns="http://tempuri.org/ItemRuleSchema.xsd" xmlns:xsi="http://tempuri.org/ItemRuleSchema.xsd">
  <Priority priority1="Keep" />
  <Categories>
    <Category ruleType="PickUp">
      <!-- Pick up rings -->
      <ItemRule itemType="Ring" />
      <!-- Pick up crossbows -->
      <ItemRule itemType="Crossbow" />
      <!-- Pick up legendary pants -->
      <ItemRule itemType="Legs">
        <StatRules>
          <Rule stat="Quality" value="Legendary"/>
        </StatRules>
      </ItemRule>
      <!-- Pick up gold -->
      <ItemRule itemName="Gold" stack="1" />
    </Category>
    <Category ruleType="Keep">
      <!-- Keep rings -->
      <ItemRule itemType="Ring" />
      <!-- Keep crossbows -->
      <ItemRule itemType="Crossbow" />
      <!-- Keep legendary pants -->
      <ItemRule itemType="Legs">
        <StatRules>
          <Rule stat="Quality" value="Legendary"/>
        </StatRules>
      </ItemRule>
    </Category>
  </Categories>
</ItemRules>
If you want to filter the crossbow and rings pickup for rares for example, just change the following:
PHP:
<!-- Pick up rings -->
<ItemRule itemType="Ring">
	<StatRules>
		<Rule stat="Quality" value="Rare4"/>
	</StatRules>
</ItemRule>
 
another way:

Normal trinity - open GilesTrinity.cs
Community trinity - open ItemHandling.cs

search for this line:
Code:
// * DetermineItemType - Calculates what kind of item it is from D3 internalnames

each item you DONT want to pickup make it a GilesItemType.FollowerEnchantress

so:

Code:
if (sThisInternalName.StartsWith("wand_")) return GilesItemType.Wand;
turns into
Code:
if (sThisInternalName.StartsWith("wand_")) return GilesItemType.FollowerEnchantress;

then search for this line:

Code:
// This is for DemonBuddy error checking - see what sort of item DB THINKS it is

and replace anything there with ItemType.FollowerSpecial

so this:

Code:
case GilesItemType.Dagger: return ItemType.Dagger;

turns into this:

Code:
case GilesItemType.Dagger: return ItemType.FollowerSpecial;

Open DB go to plugins click gilestrinity and then CONFIG.
go to ITEMS tab and UNTICK pickup follower items.

there you go, have fun :)
 
Hi tesslerc, i'm following your way and it is absolutely helpful.
But, here's the only thing to improve it:
Determine the FollowerEnchantress type to 2-slot item. So we won't get any problem when stashing items.
Btw, thank you for your idea :)
 
Back
Top