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

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

    1. 13800000

      13800000 New Member

      Joined:
      Jan 24, 2015
      Messages:
      12
      Likes Received:
      0
      Trophy Points:
      0
      谢谢EP大大,继续照做,Slots改成FilledSlots。
      出现如下信息:
      4) ) expected
      4) ; expected
      4) Invalid expression term ','
      4) ; expected
      4) ; expected
      4) Invalid expression term ')'

      能否麻烦大大给个修改好的完整的语句,那个什么FFXIVDB网站真心打不开,我打了2个多小时了,中间那图片就是一张黑纸。。。谢谢!!
       
    2. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      完整代码我已经更新到本帖子的1楼了
       
    3. adaifjios

      adaifjios Member

      Joined:
      Jan 26, 2015
      Messages:
      45
      Likes Received:
      0
      Trophy Points:
      6
      你好,请问,有没有获取专业职业技能的id代码。。。
       
    4. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      当前专业职业技能会在你登录rb时全部列举在日志里
       
    5. miulax

      miulax New Member

      Joined:
      Feb 21, 2015
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      请问控制游戏里时间和改变人物职业的的语句要怎么写?

      比如1点要变成矿工去挖玄铁,2点变成园艺去挖蚕茧
       
    6. EricPhone

      EricPhone Moderator Moderator

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

      shashazi New Member

      Joined:
      Mar 7, 2015
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      0
      RecipeId 可以从 reborn console 取得吗
       
    8. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      目前还不可以
       
    9. shashazi

      shashazi New Member

      Joined:
      Mar 7, 2015
      Messages:
      3
      Likes Received:
      0
      Trophy Points:
      0
      怎么在查代码那里的物品名字后面加个物品的英文名字_:)зゝ∠)_
       
    10. EricPhone

      EricPhone Moderator Moderator

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

      9540321 Member

      Joined:
      Apr 15, 2015
      Messages:
      107
      Likes Received:
      0
      Trophy Points:
      16
      怎么查询打怪的怪物的id?
       
    12. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      怪物id获取方法:游戏里选中怪物/NPC为目标,然后在插件里RebornConsole里粘贴下面代码Run[F5]运行即可获得对应信息
      Code:
      Log(Core.Target.NpcId);
      
       
    13. 9540321

      9540321 Member

      Joined:
      Apr 15, 2015
      Messages:
      107
      Likes Received:
      0
      Trophy Points:
      16
      EP,大大,你帮我看看我设置的把一个东西做到1000个再做另外一个东西1000,脚本参数对不对?
      <!--338 CP required.-->
      <Profile>
      <Name>Crafting - Spinel&Electrum Ingot</Name>
      <KillRadius>50</KillRadius>
      <GrindAreas>
      </GrindAreas>
      <Order>
      <While Condition="Core.Player.MaxCP &gt;= 338">
      <NPCRepair Threshhold="20" XYZ="4.119806, 0, 5.349827" NpcId="1008874"/>
      <!-- Electrum Ingot -->
      <If Condition="Core.Player.CurrentJob == ClassJobType.Goldsmith ">
      <If Condition="(ItemCount<1000)">
      </If>
      <Gather while="(ItemCount<1000)">
      <Synthesize RecipeItemId="5066" HQMats="-2,-2,-2,-2" />
      </Gather>
      <!-- Spinel -->
      <If Condition="Core.Player.CurrentJob == ClassJobType.Goldsmith ">
      <If Condition="(ItemCount<1000)">
      </If>
      <Gather while="(ItemCount<1000)">
      <Synthesize RecipeItemId="5185" HQMats="-2,-2,-2,-2" />
      </Gather>
      <While Condition="CraftingManager.IsCrafting">
      <CraftAction Name="模范制作II" ActionId="100069" />
      </While>
      </While>
      </Order>
      </Profile>
       
    14. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      我也不太清楚,你可以去开发区问问
       
    15. kingfreddom

      kingfreddom New Member

      Joined:
      Jun 3, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      :)E大好,请问一下,如何判断 当前目标的buff ID或名称? 还有 当前目标施放的技能 ID或名称?

      有语句在Rebornconsole里查找不?
       
    16. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      Code:
      ClearLog();
      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: Oct 30, 2015
    17. kingfreddom

      kingfreddom New Member

      Joined:
      Jun 3, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      谢谢e大~回答的相当专业啊! 解决了我很多问题!:)非常感谢


      -------------------------------------------------------------------------------------------
      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++;
      }
      -------------------------------------------------------------------------------------------

      这段没有正确获取BUFF列表的名称和ID,运行结果如下,麻烦E大查看一下

      -------------------------------------------------------------------------------------------
      目标第{0}个Buff, 名字: {1} ,ID: {2}}
      目标第{0}个Buff, 名字: {1} ,ID: {2}}
      目标第{0}个Buff, 名字: {1} ,ID: {2}}
      -------------------------------------------------------------------------------------------
       
      Last edited: Oct 30, 2015
    18. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      呃,抱歉,我打多了一个},将{2}}改成{2}
       
    19. kingfreddom

      kingfreddom New Member

      Joined:
      Jun 3, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      :)哎呀,我也是没看仔细,我也查过一下,眼神不好,麻烦e大了~非常感谢:)
       
    20. kingfreddom

      kingfreddom New Member

      Joined:
      Jun 3, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      :)E大好~请问在序列模式下,有没有语句来执行修理动作,就是只需要加入NPC的Id,和坐标即可


      虽然有些高手的写的修理插件挺好用的,但是在实际应用中比较难达到自己想要的效果,甚至有时候插件本身就会出错
       

    Share This Page