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

Loot Rules question

mykitty

New Member
Joined
Dec 17, 2011
Messages
186
Reaction score
0
Code:
<ItemRule itemBaseType="Armor" >
			<StatRules>
				<Rule stat="MagicFind" minValue="19" />
				<Rule stat="GoldFind" minValue="24" />
			</StatRules>
		</ItemRule>

Will this pick up an item with 20 MF?

or will it only pick up an item with 20 MF AND 25 GF?
 
Pretty sure that'll only do both, considering it's under one ItemRule, if you want to to pick up one or the other, do:

Code:
<ItemRule itemBaseType="Armor">
    <StatRules>
        <Rule stat="MagicFind" minValue="19" />
    </StatRules>
</ItemRule>
<ItemRule itemBaseType="Armor">
    <StatRules>
        <Rule stat="GoldFind" minValue="24" />
    </StatRules>
</ItemRule>

However, this is just a guess.

Also, wouldn't it be 20 and 25? Is the code not:

if(blah >= minValue && blah <= maxValue) {
Loot();
}

?
 
Code:
		<ItemRule itemBaseType="Weapon" description="High DPS 2h Weapons">
			<StatRules>
				<!-- Magic Weapons should have at least 1200 DPS -->
				<Rule stat="DPS" minValue="900" quality="Magic1" />
				<!-- Rare weapons should have at least 1100 considering they provide extra stats most of the time. -->
				<Rule stat="DPS" minValue="800" quality="Rare4" />
			</StatRules>
		</ItemRule>

Thats what i thought, so this code above from the default wont work? since no weapon will have both of those rule stats
 
Code:
		<ItemRule itemBaseType="Weapon" description="High DPS 2h Weapons">
			<StatRules>
				<!-- Magic Weapons should have at least 1200 DPS -->
				<Rule stat="DPS" minValue="900" quality="Magic1" />
				<!-- Rare weapons should have at least 1100 considering they provide extra stats most of the time. -->
				<Rule stat="DPS" minValue="800" quality="Rare4" />
			</StatRules>
		</ItemRule>

Thats what i thought, so this code above from the default wont work? since no weapon will have both of those rule stats

Oh fuck, then I'm probably wrong and this is terribly made. I'd recommend just grabbing an item, writing down a stat it has and a stat it doesn't have, drop it, and start the bot. See if it picks it up or not.
 
Back
Top