• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • 求教,关于相同id目标的识别问题!

    Discussion in 'Rebornbuddy 援助区' started by knight741, Feb 14, 2016.

    Tags:
    1. knight741

      knight741 New Member

      Joined:
      Aug 27, 2015
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
      例如,进部队房间的时候,使用UseTransport选择“进入房间”的这个NPCID进入部队房间,但是如果周围有其他房间门的话,RB就会随机选择到其他的门上,因为所有部队房门的NPCID都一样的,导致选择出错卡在那里,我加入了InteractDistance="3.0" 和Radius="10" 这俩参数但是都没效果,请E大教我如何解决
       
    2. knight741

      knight741 New Member

      Joined:
      Aug 27, 2015
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
      第二个问题,关于RB\Quest Behaviors\TurnInTag.cs的,在需要交物品的任务中,RB是默认提交排列顺序在前的物品,如果背包内有HQ任务品而且排列顺序在NQ任务品之前,就会交HQ物品,如果HQ物品数量不足就会卡在那里,而添加RequiresHq="False"好像也没效果,请教如何添加参数才能只交NQ物品
       
      Last edited: Feb 15, 2016
    3. knight741

      knight741 New Member

      Joined:
      Aug 27, 2015
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
      第三个问题,有没有舍弃物品的命令,比如丢掉某些hq物品,或者降低物品品质的命令也可以
       
    4. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      虽然"进入房间"这个名字一样,但是每个进入房间的NPCID是不一样的,你可以通过下面代码获取你附近的NPCID对比一下
      你可以试下将你要进入的房间的XYZ坐标放进去
      Code:
      ClearLog();
      var units = GameObjectManager.GameObjects;
      foreach(var unit in units.OrderBy(r=>r.Distance()))
      {
      Log("{0} NPCID:{1} 类型:{2} XYZ:{3}",unit,unit.NpcId,unit.GetType(),unit.Location);
      }
      
       
    5. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      上传出现这个问题的log和你使用的脚本文件
       
    6. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      没有这样的命令
       
    7. knight741

      knight741 New Member

      Joined:
      Aug 27, 2015
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
      森都住宅所有的房门都是npcid:2002737 ,所以才有的这个问题呀,坐标我有填,但是还是会随机选到rb雷达内的其他房门
       
    8. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      将你这个脚本跟日志上传上来,我提交给作者看看
       
    9. knight741

      knight741 New Member

      Joined:
      Aug 27, 2015
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
      交东西那个又莫名的成功了,我得再测试测试,只是部队房间的npcid问题,我传了脚本也没意义啊,部队都不一样,房间坐标也不一样,重点是同住宅区所有部队房间的npcid都一样,只是前边的16进制的数值不一样,这个你用你那个命令看一眼就知道了,我就是想知道如何能准确定位自己的部队房间。
       
    10. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      作者必须要提供日志和脚本
       
    11. knight741

      knight741 New Member

      Joined:
      Aug 27, 2015
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
    12. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      UseTransport问题你测试下昨天出的140版本看是否修复了
       
    13. knight741

      knight741 New Member

      Joined:
      Aug 27, 2015
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
      没有修复哦,结果跟之前一样,错选到其他家的房门,然后卡在那里
       
    14. knight741

      knight741 New Member

      Joined:
      Aug 27, 2015
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      1
      已经用codechunk+宏命令代替usetransport,暂时解决问题:)
       

    Share This Page