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

Itemrule, why does it sell this weapon?

reptyl

Member
Joined
Jan 2, 2011
Messages
129
Reaction score
0
I'm using the standard itemrules. They fit well to my need of wanting to see all rare items it gets and not risking any of them getting sold.

However since I bot sarkoth theres the ocassional decent blue weapon.

How come my bot is selling a 840 dps 1h weap when I have the following in the itemrules:

<ItemRule itemBaseType="Weapon" twoHanded="false" description="High DPS 1h Weapons">
<StatRules>
<Rule stat="DPS" minValue="750" quality="Magic1" />
<Rule stat="DPS" minValue="500" quality="Rare4" />
</StatRules>
</ItemRule>

Shouldn't it be keeping anything with at least 750 dps then that is 1 handed?

or is the following part fucking it up?
<Category ruleType="Sell">
<ItemRule description="Sell Everything">
<StatRules>
<Rule quality="Magic1" />
</StatRules>
</ItemRule>
</Category>

I really don't get how this works then. All I want it to is keep certain good blue items aswel, not just vendor them :(
 
I really shouldn't have to tell or upload anything when I tell you that I use the one that comes with the bot. Only, really ONLY changed thing is what DPS the weapons need to have for the bot to keep them :)
 

Attachments

Sorry 99dsimonp but it doesn't work. Just lost a 840 dps 1H weap because it vendored it with a ton of other items ><
 
[16:28:49.859 V] [ItemRules] Matched Deadly Exorcist of Conflagration with rule: Sell Everything:Sell

this is a ~800 dps 1H

and that's with this

<ItemRule itemBaseType="Weapon" twoHanded="false" description="High DPS 1h Weapons">
<StatRules>
<Rule stat="DPS" minValue="750" quality="Magic1" />
</StatRules>
</ItemRule>
 
Really NO ONE who knows how to fix this?

All I want it to do is keep weapons based on their DPS and changing the values in the original DefaultItemRules isn't doing shit = They fucked up making their own itemrules ._.
 
I'm using the rules for wepons like this, while the standard entry doesn't work. It doesn't differ between 1h and 2h but it's working and i'd rather not lose some high dps weapons to the vendor.
Code:
<Category ruleType="Keep">
		  
	<ItemRule ruleType="Keep" description="weap">
        <StatRules>
		  <Rule quality="Magic1" stat="DPS" minValue="898" />
        </StatRules>
      </ItemRule>
 
Really NO ONE who knows how to fix this?

All I want it to do is keep weapons based on their DPS and changing the values in the original DefaultItemRules isn't doing shit = They fucked up making their own itemrules ._.

It's because the default lootrules don't work.

<Rule stat="DPS" minValue="750" quality="Magic1" />
<Rule stat="DPS" minValue="500" quality="Rare4" />

can't be on the same lines, since it is an AND and not an OR, since the rare4 property will overwrite the magic one.

If you want it to work it needs to be something like:

Code:
<ItemRule itemBaseType="Weapon" twoHanded="false" description="High DPS 1h Weapons">
<StatRules>
<Rule stat="DPS" minValue="750" quality="Magic1" />
</StatRules>
</ItemRule>
<ItemRule itemBaseType="Weapon" twoHanded="false" description="High DPS 1h Weapons">
<StatRules>
<Rule stat="DPS" minValue="500" quality="Rare4" />
</StatRules>
</ItemRule>
 
Back
Top