• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • 请教如何在脚本中设置售卖绿色物品不会出售绿色材料和箱子

    Discussion in 'Honorbuddy 援助区' started by 2208878098, Dec 24, 2014.

    1. 2208878098

      2208878098 New Member

      Joined:
      May 3, 2014
      Messages:
      54
      Likes Received:
      0
      Trophy Points:
      0
      我测试过几次了,只要脚本开启出售绿装,就会把绿色材料和箱子全卖了。
      上个版本的hb不会出现这样的情况,最问是什么问题,要如何解决?
       
    2. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      和你之前提的邮寄物品一样的处理方法
      HB根目录下Protected Items.xml里包含了要保留不卖出的物品ID,你可以将你需要保留的物品ID添加进去
      ID获取你也可以通过游戏里的插件实现获取,例如Mendeleev或者SmartSell等游戏内的插件 都可以显示鼠标指向的物品的ID
      也可以直接在HB的开发工具里的Console里下面的文本框直接粘贴下面代码,然后点RUN(F5)获取背包里所有物品的 ID
      Code:
      ClearLog();
      foreach(var item in StyxWoW.Me.BagItems)
      {
      Log("物品名字: {0} ,物品ID: {1}",item.Name,item.Entry);
      }
      
       
      Last edited: Dec 24, 2014
    3. 2208878098

      2208878098 New Member

      Joined:
      May 3, 2014
      Messages:
      54
      Likes Received:
      0
      Trophy Points:
      0
      谢谢大大。
       

    Share This Page