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

Block an item from being disenchanting on ProfessionBuddy?

AutomaticCoding

New Member
Joined
Dec 20, 2011
Messages
1,091
Reaction score
1
Tried adding to the protected items.xml, but, I guess PB doesn't account for that, it keeps DCing:

Code:
  <Item Name="Philosopher's Stone" Entry="9149" />

Q_Q
 
EDIT: added:
_blacklistedItems.Add(9149);

To the BuildItemList() function. Not sure if that'll work or if PB will just be like "Bitch, there's an update." and remove it.
 
Edited

Code:
            IEnumerable<WoWItem> itemQueue = from item in ObjectManager.Me.BagItems
                                             where !IsBlackListed(item) &&
                                             !Pb.ProtectedItems.Contains(item.Entry) &&
                                             ((ItemTarget == ItemTargetType.Specific && item.Entry == ItemId) ||
                                             ItemTarget == ItemTargetType.All)

to

Code:
            IEnumerable<WoWItem> itemQueue = from item in ObjectManager.Me.BagItems
                                             where !IsBlackListed(item) && item.Guid != 9149 &&
                                             !Pb.ProtectedItems.Contains(item.Entry) &&
                                             ((ItemTarget == ItemTargetType.Specific && item.Entry == ItemId) ||
                                             ItemTarget == ItemTargetType.All)

Let's see if this works :/
 
Fuck, this is seriously gay.

I can't work this shit out Q_Q

Code:
PB 1.443: Disenchant: Philosopher's Stone
 
Added:

Code:
if(item.Name.Contains("Philosopher's Stone")) {
				return false;
			}
			if(item.Guid == 9149) {
				return false;
			}

to CanDisenchant, if this doesn't work imma shoot someone.

Can someone PLEASE help me?
 
Well considering I've bought like ALL the mats on my whole AH that make up a Philosopher's stone thanks to this, and, I can only afford to make one more, I've modified it to if(item.Name.Contains("Jasper")) {} and it worked. However, I'd like a better way of doing this other than having to modify that file on every update.
 
Depending on what you need DE'd, then set your Disenchant method to "specific" and enter all the id's of the items you need enchanted.
 
Depending on what you need DE'd, then set your Disenchant method to "specific" and enter all the id's of the items you need enchanted.

Other than finding like 500 IDs is much more annoying than just blocking one ID Q_Q
 
PB has it's own Protected Items in the PB folder. You should add the stone in that file instead of the "main" protected items.
 
Back
Top