What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[资料]脚本制作资料

EricPhone

Active Member
Joined
Feb 17, 2013
Messages
5,665
在插件里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:
在插件里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.slots)
{
log("物品名字: {0} ,物品id: {1}",datamanager.getitem(slot.rawitemid).currentlocalename,slot.rawitemid);
}
请问碎晶的id怎么获取- -
 
Code:
物品id	物品名称
2	火之碎晶
3	冰之碎晶
4	风之碎晶
5	土之碎晶
6	雷之碎晶
7	水之碎晶
8	火之水晶
9	冰之水晶
10	风之水晶
11	土之水晶
12	雷之水晶
13	水之水晶
14	火之晶簇
15	冰之晶簇
16	风之晶簇
17	土之晶簇
18	雷之晶簇
19	水之晶簇
 
在序列模式中,我想每隔30分钟吃一个食物,这个语句要怎么写?

想实现功能,但是不知道去哪里查语法,这个比较头疼,都是根据论坛里面写好的脚本修改的
 
已经尝试过了,填中文名字或者英文名字都不吃,不知道是不是和cn版本不兼容
 
在插件里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.Slots)
{
Log("物品名字: {0} ,物品ID: {1}",DataManager.GetItem(slot.RawItemId).CurrentLocaleName,slot.RawItemId);
}

请问我的RB里面没有你说的这个RebornConsole插件 怎么办?
 
我有一些问题想问:
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:
1.打怪技能是战斗模块控制的,无法通过脚本实现
2.无法设定打怪技能
3.具体语法我也不太清楚,但你可以安装visual studio之后新建一个工程,然后将RB引用进去,就可以查看RB里的API了
 
我大概懂你的意思了,还有一个问题想问,我既得原本的rb有个辅助打怪的功能,就是 你把连招跟套路设定好后,只需要自己走位就可以的那种,现在还有吗?
 
没有设置连招跟套路,这些都是战斗模块固定,无法设置的
但有辅助打怪,需要使用Combat Assist模式,人手控制移动,先对怪打一下进入战斗,RB就会继续打那只怪
 
不好意思,我想问,要如何制做钓鱼用的脚本?还是说序列模式也有钓鱼脚本方法?


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:
巨石之核 1771怪 不打怎么办

想问下 任务脚本 巨石之核 他不打最后 的1771怪怎么办
求指教
 
获取背包里所有物品和物品代码
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'

搞不懂,求解,哪里出错了,谢谢
 
Back
Top