• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • 自制脚本如何保护物品

    Discussion in 'Honorbuddy 援助区' started by axi, Jul 1, 2013.

    1. axi

      axi Member

      Joined:
      May 15, 2013
      Messages:
      110
      Likes Received:
      0
      Trophy Points:
      16
      这几天郁闷的很,挂机打怪都是吃的风蛇和幸运药水,每次都带四五组。可是当有自动出售功能的时候,它们就会被自动出售了,当时我也不知道。察觉的时候已经无法购回了。损失惨重 - -!! 我看脚本里面有写物品保护功能的,不知道怎么用 例如:幸运药水的wowhead连接是Greater Potion of Luck - Item - World of Warcraft
      是否就这样输入item数值呢?
      <ProtectedItems>
      <Item>76091</Item>
      下面是我自己做的脚本
      <?xml version="1.0" encoding="UTF-8"?>
      <HBProfile>
      <Name>风洞</Name>
      <MinDurability>0.4</MinDurability>
      <MinFreeBagSlots>2</MinFreeBagSlots>
      <SellGrey>False</SellGrey>
      <SellWhite>False</SellWhite>
      <SellGreen>False</SellGreen>
      <SellBlue>False</SellBlue>
      <MailWhite>True</MailWhite>
      <MailGreen>True</MailGreen>
      <MailBlue>True</MailBlue>
      <MailPurple>True</MailPurple>
      <ProtectedItems>
      <Item>93351</Item>
      <Item>76091</Item>
      <Item>6950</Item>
      <Item>8926</Item>
      <Item>8927</Item>
      <Item>8928</Item>
      <Item>21927</Item>
      <Item>43230</Item>
      <Item>43231</Item>
      <Item>17031</Item>
      <Item>118</Item>
      <Item>858</Item>
      <Item>929</Item>
      <Item>1710</Item>
      <Item>3928</Item>
      <Item>13446</Item>
      <Item>17556</Item>
      <Item>28551</Item>
      <Item>33447</Item>
      <Item>30319</Item>
      <Item>34581</Item>
      <Item>34582</Item>
      <Item>32760</Item>
      <Item>32761</Item>
      <Item>31737</Item>
      <Item>31735</Item>
      <Item>23773</Item>
      <Item>33803</Item>
      <Item>12654</Item>
      <Item>10579</Item>
      <Item>32883</Item>
      <Item>30612</Item>
      <Item>30611</Item>
      <Item>32882</Item>
      <Item>41164</Item>
      <Item>13377</Item>
      <Item>11630</Item>
      <Item>41165</Item>
      <Item>31949</Item>
      <Item>3465</Item>
      <Item>3464</Item>
      <Item>23772</Item>
      <Item>10512</Item>
      <Item>19316</Item>
      <Item>19317</Item>
      <Item>10513</Item>
      <Item>9399</Item>
      <Item>24417</Item>
      <Item>18042</Item>
      <Item>15997</Item>
      <Item>11284</Item>
      <Item>28056</Item>
      <Item>8068</Item>
      <Item>8067</Item>
      <Item>8069</Item>
      <Item>4960</Item>
      <Item>41584</Item>
      <Item>2519</Item>
      <Item>28060</Item>
      <Item>28061</Item>
      <Item>11285</Item>
      <Item>2516</Item>
      <Item>3030</Item>
      <Item>2512</Item>
      <Item>2515</Item>
      <Item>5568</Item>
      <Item>3033</Item>
      <Item>41586</Item>
      <Item>28053</Item>
      <Item>17556</Item>
      <Item>4541</Item>
      <Item>3770</Item>
      <Item>1645</Item>
      <Item>8766</Item>
      <Item>4496</Item>
      <Item>5571</Item>
      <Item>828</Item>
      <Item>5572</Item>
      <Item>805</Item>
      </ProtectedItems>
      <SubProfile>
      <Blackspots>
      </Blackspots>
      <Vendors>
      <Vendor Name="奇游?雾爪" Entry="59688" Type="Food" X="3115.131" Y="1248.965" Z="654.8159" />
      <Vendor Name="塑铁者阿守" Entry="59827" Type="Repair" X="3040.613" Y="1245.839" Z="654.2011" />
      </Vendors>
      <Mailboxes>
      <Mailbox X="3107.124" Y="1233.495" Z="654.1453" />
      </Mailboxes>
      <MinLevel>1</MinLevel>
      <MaxLevel>99</MaxLevel>
      <GrindArea>
      <TargetMinLevel>84</TargetMinLevel>
      <TargetMaxLevel>90</TargetMaxLevel>
      <Factions>16 14</Factions>
      <Hotspots>
      <Hotspot X="3407.584" Y="1137.954" Z="661.4639" />
      <Hotspot X="3421.203" Y="1139.23" Z="658.5817" />
      <Hotspot X="3442.096" Y="1150.611" Z="657.4043" />
      <Hotspot X="3465.921" Y="1149.273" Z="658.355" />
      <Hotspot X="3475.168" Y="1170.479" Z="656.2997" />
      <Hotspot X="3474.744" Y="1195.017" Z="656.1728" />
      <Hotspot X="3481.885" Y="1218.442" Z="649.3493" />
      <Hotspot X="3497.598" Y="1236.01" Z="643.6897" />
      <Hotspot X="3518.803" Y="1247.801" Z="644.0184" />
      <Hotspot X="3536.173" Y="1232.889" Z="643.8344" />
      <Hotspot X="3553.69" Y="1220.015" Z="644.905" />
      <Hotspot X="3556.956" Y="1195.968" Z="643.8452" />
      <Hotspot X="3560.205" Y="1171.73" Z="642.1449" />
      <Hotspot X="3562.072" Y="1150.593" Z="643.653" />
      <Hotspot X="3552.994" Y="1177.205" Z="644.8451" />
      <Hotspot X="3560.359" Y="1200.008" Z="643.3214" />
      <Hotspot X="3568.437" Y="1222.297" Z="644.2393" />
      <Hotspot X="3589.483" Y="1230.556" Z="646.2317" />
      <Hotspot X="3613.367" Y="1234.438" Z="648.783" />
      <Hotspot X="3626.899" Y="1254.298" Z="652.3034" />
      <Hotspot X="3635.511" Y="1281.461" Z="652.0409" />
      <Hotspot X="3639.486" Y="1300.369" Z="650.5377" />
      <Hotspot X="3625.656" Y="1319.14" Z="652.4739" />
      <Hotspot X="3605.904" Y="1332.848" Z="656.168" />
      <Hotspot X="3585.948" Y="1328.664" Z="659.8962" />
      <Hotspot X="3585.654" Y="1328.291" Z="659.9037" />
      <Hotspot X="3577.633" Y="1321.839" Z="660.7397" />
      <Hotspot X="3592.368" Y="1322.783" Z="647.3997" />
      <Hotspot X="3585.832" Y="1321.303" Z="640.949" />
      <Hotspot X="3564.267" Y="1319.193" Z="639.3965" />
      <Hotspot X="3541.872" Y="1325.818" Z="640.6537" />
      <Hotspot X="3525.89" Y="1343.641" Z="641.1757" />
      <Hotspot X="3506.421" Y="1341.193" Z="636.4719" />
      <Hotspot X="3506.104" Y="1318.305" Z="636.4719" />
      <Hotspot X="3511.11" Y="1315.323" Z="636.4719" />
      </Hotspots>
      </GrindArea>
      </SubProfile>
      </HBProfile>
      这里面的<ProtectedItems>项目都是制作的时候自动含带的,我不知道具体意思,是否有特殊含义,我理解是物品保护,前两项是我自己加进去或修改的。
      请帮我修改一下,谢谢版主
      还有就是Plundered Treasure - Item - World of Warcraft如何自动打开呢?
       
    2. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      ProtectedItems就是保护物品,你把你要保护的ID加进去
       
    3. axi

      axi Member

      Joined:
      May 15, 2013
      Messages:
      110
      Likes Received:
      0
      Trophy Points:
      16
      是wowhead上的ID么?
       
    4. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      你可以在WOW里装些提示信息增强的插件就可以看到这个ID了,例如TIPTAC之类的
      <SellGrey>False</SellGrey>
      <SellWhite>False</SellWhite>
      <SellGreen>False</SellGreen>
      <SellBlue>False</SellBlue>
      <MailWhite>True</MailWhite>
      <MailGreen>True</MailGreen>
      <MailBlue>True</MailBlue>
      <MailPurple>True</MailPurple>
      SELL控制你卖东西的级别,MAIL控制你邮寄东西的级别
       

    Share This Page