• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [资料]脚本制作资料

    Discussion in 'Rebornbuddy 援助区' started by EricPhone, Oct 8, 2014.

    1. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      在插件里RebornConsole里粘贴下面代码Run[F5]运行即可获得对应信息

      获取当前地图ID,人物坐标,所有当前人物激活的传送点和传送点的相关信息
      Code:
      ClearLog();
      Log("当前地图ZoneId: {0} ,我的名字: {1} ,我的坐标 {2}",WorldManager.ZoneId,Core.Me.Name,Core.Me.Location);
      int i=1;
      foreach(var TeleportLocation in WorldManager.AvailableLocations)
      {
      Log("第{0}个传送, 名字: {1} ,ZoneId: {2} ,AetheryteId: {3}",i,TeleportLocation.Name,TeleportLocation.ZoneId,TeleportLocation.AetheryteId);
      i++;
      }
      
      ----------------------------------------------------------------------------------------------------------------
      获取背包里所有物品和物品代码
      Code:
      ClearLog();
      foreach(var slot in InventoryManager.FilledSlots)
      {
      Log("物品名字: {0} ,物品ID: {1}",DataManager.GetItem(slot.RawItemId).CurrentLocaleName,slot.RawItemId);
      }
      
      ----------------------------------------------------------------------------------------------------------------
      怪物id获取方法:游戏里选中怪物/NPC为目标,然后在插件里RebornConsole里粘贴下面代码Run[F5]运行即可获得对应信息
      Code:
      Log(Core.Target.NpcId);
      
      ----------------------------------------------------------------------------------------------------------------
      如何判断 当前目标的buff ID或名称? 还有 当前目标施放的技能 ID或名称?
      Code:
      Log(((BattleCharacter)Core.Player.CurrentTarget).SpellCastInfo.ActionId);//目标正在施放法术ID
      Log(((BattleCharacter)Core.Player.CurrentTarget).SpellCastInfo.Name);//目标正在施放法术英文名
      Log(((BattleCharacter)Core.Player.CurrentTarget).SpellCastInfo.SpellData.LocalizedName);//目标正在施放法术中文名
      Log(((BattleCharacter)Core.Player.CurrentTarget).HasAura("Medica II"));//目标是否有Medica II这个Buff,Buff名字需要是英文名字
      Log(((BattleCharacter)Core.Player.CurrentTarget).HasAura(150));//目标是否有150这个ID的Buff
      int i = 1;
      foreach (var Arua in ((BattleCharacter)Core.Player.CurrentTarget).Auras.AuraList)
      {
          Log("目标第{0}个Buff, 名字: {1} ,ID: {2}", i, Arua.Name, Arua.Id);
          i++;
      }
      
       
      Last edited: Dec 27, 2015
    2. crescentyue

      crescentyue New Member

      Joined:
      Jul 23, 2014
      Messages:
      31
      Likes Received:
      0
      Trophy Points:
      0
      请问碎晶的id怎么获取- -
       
    3. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      Code:
      物品id	物品名称
      2	火之碎晶
      3	冰之碎晶
      4	风之碎晶
      5	土之碎晶
      6	雷之碎晶
      7	水之碎晶
      8	火之水晶
      9	冰之水晶
      10	风之水晶
      11	土之水晶
      12	雷之水晶
      13	水之水晶
      14	火之晶簇
      15	冰之晶簇
      16	风之晶簇
      17	土之晶簇
      18	雷之晶簇
      19	水之晶簇
      
       
    4. linaixn

      linaixn New Member

      Joined:
      Oct 29, 2014
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      1
      在序列模式中,我想每隔30分钟吃一个食物,这个语句要怎么写?

      想实现功能,但是不知道去哪里查语法,这个比较头疼,都是根据论坛里面写好的脚本修改的
       
    5. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
    6. linaixn

      linaixn New Member

      Joined:
      Oct 29, 2014
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      1
      已经尝试过了,填中文名字或者英文名字都不吃,不知道是不是和cn版本不兼容
       
    7. rikannkit

      rikannkit New Member

      Joined:
      Nov 8, 2014
      Messages:
      5
      Likes Received:
      0
      Trophy Points:
      0
      请问我的RB里面没有你说的这个RebornConsole插件 怎么办?
       
    8. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
    9. rikannkit

      rikannkit New Member

      Joined:
      Nov 8, 2014
      Messages:
      5
      Likes Received:
      0
      Trophy Points:
      0
    10. ironball

      ironball New Member

      Joined:
      Nov 8, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      0
      我有一些问题想问:
      1.序列模式打怪时,脚本我已经知道大约要怎么设计,但是问题是技能,技能名称,有地方可以查询吗?
      2.序列模式打怪时,脚本中我想设计出招会使用的技能,但是无法设定,有办法可以设定吗?

      第三個問題我找到了這個 ff14bot Namespaces

      3.我想瞭解一下序列模式的语法
      想知道有哪些指令 例如 我知道 TeleportTo 是传送 <TeleportTo Name="quarrymill" AetheryteId="5" /> 这行是 传送到石场水车

      <If Condition="not IsOnMap(153)">
      <TeleportTo Name="quarrymill" AetheryteId="5" />
      </If>

      这是代表 你如果不在153地图 就传送到石场水车。

      像这样的xml语法 因为不知道哪些指令可以使用 所以才会有此一问。
      当然 xml & 对应表我懂 所以这个到不是问题。
       
      Last edited: Nov 9, 2014
    11. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      1.打怪技能是战斗模块控制的,无法通过脚本实现
      2.无法设定打怪技能
      3.具体语法我也不太清楚,但你可以安装visual studio之后新建一个工程,然后将RB引用进去,就可以查看RB里的API了
       
    12. ironball

      ironball New Member

      Joined:
      Nov 8, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      0
      我大概懂你的意思了,还有一个问题想问,我既得原本的rb有个辅助打怪的功能,就是 你把连招跟套路设定好后,只需要自己走位就可以的那种,现在还有吗?
       
    13. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      没有设置连招跟套路,这些都是战斗模块固定,无法设置的
      但有辅助打怪,需要使用Combat Assist模式,人手控制移动,先对怪打一下进入战斗,RB就会继续打那只怪
       
    14. ironball

      ironball New Member

      Joined:
      Nov 8, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      0
      原来如此 感谢您!
       
    15. ironball

      ironball New Member

      Joined:
      Nov 8, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      0
      不好意思,我想问,要如何制做钓鱼用的脚本?还是说序列模式也有钓鱼脚本方法?


      Code:
      <WayPointProfile>
        <Settings>
          <NodeDistance>4</NodeDistance>
          <ArcDistance>6</ArcDistance>
          <Strictness>10</Strictness>
        </Settings>
        <Items />
        <Targets />
        <BlackSpots />
        <HotSpots>
          <HotSpots Radius="5" X="-179.03183" Y="229.147385" Z="0" />
          <HotSpots Radius="5" X="-185.929626" Y="239.083328" Z="0" />
          <HotSpots Radius="5" X="-206.7795" Y="246.3043" Z="0" />
        </HotSpots>
        <Paths>
          <Node Id="0" X="-182.510086" Y="227.625641" Z="1.99999547" />
          <Node Id="1" X="-184.475723" Y="231.8153" Z="1.99999559" />
          <Node Id="2" X="-187.250671" Y="235.506882" Z="1.99999535" />
          <Node Id="3" X="-190.655121" Y="238.072861" Z="1.99999547" />
          <Node Id="4" X="-193.914917" Y="240.472992" Z="1.99999547" />
          <Node Id="5" X="-196.94075" Y="243.096619" Z="2.29894733" />
          <Node Id="6" X="-200.1018" Y="246.066986" Z="3.52959251" />
          <Node Id="7" X="-203.083847" Y="249.130386" Z="3.99999547" />
        </Paths>
      </WayPointProfile>

      这个是钓鱼脚本,我有看到范例。
      但是我看不懂
      HotSpots是用来做什么的呢?
      Node大概就是鱼点,一个鱼点警界高了之后就换下一个。
      但是我想问HotSpots到底是什么?
       
      Last edited: Nov 12, 2014
    16. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      钓鱼应该只能钓鱼模式
      HotSpots就是走路导航路径
       
    17. huyunve2134

      huyunve2134 New Member

      Joined:
      Nov 11, 2014
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      想问下 副本脚本 里 不打副本里的普通怪怎么办
      求指教
       
    18. huyunve2134

      huyunve2134 New Member

      Joined:
      Nov 11, 2014
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      巨石之核 1771怪 不打怎么办

      想问下 任务脚本 巨石之核 他不打最后 的1771怪怎么办
      求指教
       
    19. 13800000

      13800000 New Member

      Joined:
      Jan 24, 2015
      Messages:
      12
      Likes Received:
      0
      Trophy Points:
      0
      获取背包里所有物品和物品代码
      Code:
      ClearLog();
      foreach(var slot in InventoryManager.Slots)
      {
      Log("物品名字: {0} ,物品ID: {1}",DataManager.GetItem(slot.RawItemId).CurrentLocaleName,slot.RawItemId);
      }

      照做,F5后出现:
      2) 'ff14bot.Managers.InventoryManager' does not contain a definition for 'Slots'

      搞不懂,求解,哪里出错了,谢谢
       
    20. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      新版本RB的API改了,Slots改成FilledSlots了
       

    Share This Page