谢谢EP大大,继续照做,Slots改成FilledSlots。 出现如下信息: 4) ) expected 4) ; expected 4) Invalid expression term ',' 4) ; expected 4) ; expected 4) Invalid expression term ')' 能否麻烦大大给个修改好的完整的语句,那个什么FFXIVDB网站真心打不开,我打了2个多小时了,中间那图片就是一张黑纸。。。谢谢!!
EP,大大,你帮我看看我设置的把一个东西做到1000个再做另外一个东西1000,脚本参数对不对? <!--338 CP required.--> <Profile> <Name>Crafting - Spinel&Electrum Ingot</Name> <KillRadius>50</KillRadius> <GrindAreas> </GrindAreas> <Order> <While Condition="Core.Player.MaxCP >= 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>
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++; }
谢谢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}} -------------------------------------------------------------------------------------------