• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • How to delete some items while Using GB2

    Discussion in 'Honorbuddy Support' started by badeed, Feb 17, 2012.

    1. badeed

      badeed New Member

      Joined:
      Jan 31, 2012
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      Well i like to use the bot on lowbies nods
      but they drop annoying stones like Coarse Stone
      how to make the bot automatic delete them?
      since the profile i have doesnt have mailer or vendor and i dont know how to add them
      PS:profile is for tin vein
       
    2. Giwin

      Giwin Well-Known Member Buddy Store Developer

      Joined:
      Dec 3, 2011
      Messages:
      3,431
      Likes Received:
      49
      Trophy Points:
      48
      better to use Blacklist so that it doesn't go to that area in the first place.
       
    3. badeed

      badeed New Member

      Joined:
      Jan 31, 2012
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      no i mean when i get the tin vein it has alot of Coarse Stone more then the ore bags get full fast
       
    4. Giwin

      Giwin Well-Known Member Buddy Store Developer

      Joined:
      Dec 3, 2011
      Messages:
      3,431
      Likes Received:
      49
      Trophy Points:
      48
      You can use my deleteIt, it automaticly deletes it when it finds it in your bags.

      all you need to do is change the code to include your items, very easy if you open up the file you'll see where you can put your item names.
       
    5. badeed

      badeed New Member

      Joined:
      Jan 31, 2012
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      Code:
                          if (item.Name.Contains("Coarse Stone") || item.Name.Contains("Tough Jerky"))
                          {
                              Logging.Write("Deleting Mutton Chop and Tough Jerky, We don't need these anymore");
      
                              /* Delete "Mutton Chop" ID: 3770 */
                              string Delete3770 = "i=\"Coarse Stone\" d=1 for x=0,4 do for y=1,GetContainerNumSlots(x) do  if (d>0) then l=GetContainerItemLink(x,y)  if l and GetItemInfo(l)==i then PickupContainerItem(x,y) DeleteCursorItem() d=d-1 end end end end";
                              Lua.DoString(Delete3770);
                              /* Delete "Tough Jerky" ID: 117 */
                              string Delete117 = "i=\"Tough Jerky\" d=1 for x=0,4 do for y=1,GetContainerNumSlots(x) do  if (d>0) then l=GetContainerItemLink(x,y)  if l and GetItemInfo(l)==i then PickupContainerItem(x,y) DeleteCursorItem() d=d-1 end end end end";
                              Lua.DoString(Delete117);
                          }
      will this work?
       
    6. baalisho

      baalisho New Member

      Joined:
      Sep 25, 2011
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      I run with an addon called Trashcan found on curse.com, very easy to setup..
       
    7. badeed

      badeed New Member

      Joined:
      Jan 31, 2012
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      @Giwin i tested it worked
      :) ty
      and btw you should update your plugin to add a UI window which allows to add and remove items
       
    8. Giwin

      Giwin Well-Known Member Buddy Store Developer

      Joined:
      Dec 3, 2011
      Messages:
      3,431
      Likes Received:
      49
      Trophy Points:
      48
      Code:
       if (item.Name.Contains("Coarse Stone"))
                          {
                              Logging.Write("Deleting Coarse Stone, We don't need these anymore");
      
                              /* Delete "Tough Jerky" ID: 117 */
      
                              string Delete117 = "i=\"Coarse Stone\" d=1 for x=0,4 do for y=1,GetContainerNumSlots(x) do  if (d>0) then l=GetContainerItemLink(x,y)  if l and GetItemInfo(l)==i then PickupContainerItem(x,y) DeleteCursorItem() d=d-1 end end end end";
                              Lua.DoString(Delete117);
                          }
      EDIT1: Good to hear, maybe in the future I'll add a UI when I figure out how to do that :D
       

    Share This Page