• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • ProtectedItems.xml VS <ProtectedItems>

    Discussion in 'Archives' started by blackthorn, Feb 6, 2010.

    1. blackthorn

      blackthorn New Member

      Joined:
      Jan 25, 2010
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      1
      What is the difference? My understanding was that ProtectedItems.xml was a global setting for all profiles. I got tired of adding <ProtectedItems> to my profiles, so I moved (and edited accordingly) all items into ProtectedItems.xml. Much to my surprise, all my protected items, except those originally listed in ProtectedItems.xml were sold. All my leather, all my frostweave gone! So I moved it back into the <ProtectedItems> element in my profile, and they are once again kept. So why have 2 different places to track them, and which takes precedence? Or is there a 'proper' way to update ProtectedItems.xml? Thanks in advance.
       
    2. merhaps

      merhaps Member

      Joined:
      Jan 30, 2010
      Messages:
      163
      Likes Received:
      0
      Trophy Points:
      16
      Yes, i also have this problem, but i dont get what this <ProtectedItems> is?! i just know protecteditems.xml, and ALL my leather got sold, which is really really disappointing,.,.
       
    3. blackthorn

      blackthorn New Member

      Joined:
      Jan 25, 2010
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      1
      <ProtectedItems> is an element you can add to the XML profile you load in HB to specify which items, by Item ID, to keep when vendoring. The <ProtectedItems> element is listed under the main <HBProfile> section and contains contains <Item> subelements. For example

      <HBProfile>
      Profile code (<Name>. <MinLevel>, <MaxLevel>, etc.)
      <ProtectedItems>
      <Item>37700</Item>
      <Item>35623</Item>
      </ProtectedItems>
      <SubProfile>
      ...
       
    4. merhaps

      merhaps Member

      Joined:
      Jan 30, 2010
      Messages:
      163
      Likes Received:
      0
      Trophy Points:
      16
      where do i get the id? is it the number after the "i" in the thottbot link ( http://thottbot.com/i21887 <-- 21887 for Knothide Leather i.e. ?)
      And dont i need to add the name?
       
    5. LiquidAtoR

      LiquidAtoR Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      1,430
      Likes Received:
      52
      Trophy Points:
      48
      Set SellWhite to false, and MailWhite to true in the <profile you are running>.xml
       
    6. blackthorn

      blackthorn New Member

      Joined:
      Jan 25, 2010
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      1
      Yes, the ID number after i from ThottBot. Or get the ItemID addon. It's much simpler (/itemid <ClickItemLink> returns the item id in game. You don't need the name when adding as <ProtectedItems> in the profile.
       
    7. rcadams

      rcadams New Member

      Joined:
      Jan 15, 2010
      Messages:
      434
      Likes Received:
      0
      Trophy Points:
      0
      I think what he is trying to get at is there are two files in the directory now. "Protected Items.xml" and "ProtectedItems.xml" one with space one thingout.. Probably just a slipup in programming I would assume.
       
    8. blackthorn

      blackthorn New Member

      Joined:
      Jan 25, 2010
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      1
      My bad. The file is 'Protected Items.xml' (with a space) not 'ProtectedItems.xml' with no space. '<ProtectedItems>' (with no space) is the element in the XML profile. When I add items to 'Protected Items.xml' it has no effect, only when I add through <ProtectedItems> does it actually protect the item.
       

    Share This Page