LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 75|回复: 7

[wowbee] 有关猎人宠物状态的问题

[复制链接]
发表于 2024-3-29 11:30:58 来自手机 | 显示全部楼层 |阅读模式
魔蜂或者官方有没有关于宠物状态的判断描述,比如跟随状态,停留状态,被动状态,主要是在 icc 时有时需要宠物停留,不让它攻击,想法是判断宠物状态以决定命令的执行,比如宠物在停留状态则返回,宠物在呆滞状态则执行攻击
回复

使用道具 举报

发表于 2024-3-29 17:14:23 | 显示全部楼层


name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(index)
Arguments:

    index - Index of a pet action button (between 1 and NUM_PET_ACTION_SLOTS) (number)

Returns:

    name - Localized name of the action, or a token which can be used to get the localized name of a standard action (string)
    subtext - Secondary text for the action (generally a spell rank; e.g. "Rank 8") (string)
    texture - Path to an icon texture for the action, or a token which can be used to get the texture path of a standard action (string)
    isToken - 1 if the returned name and texture are tokens for standard actions, which should be used to look up actual values (e.g. PET_ACTION_ATTACK, PET_ATTACK_TEXTURE); nil if name and texture can be displayed as-is (1nil)
    isActive - 1 if the action is currently active; otherwise nil. (Indicates which state is chosen for the follow/stay and aggressive/defensive/passive switches.) (1nil)
    autoCastAllowed - 1 if automatic casting is allowed for the action; otherwise nil (1nil)
    autoCastEnabled - 1 if automatic casting is currently turned on for the action; otherwise nil (1nil)

试试这个
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-3-30 10:02:25 | 显示全部楼层
懒动行不行 发表于 2024-3-29 05:14 PM
name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(i ...

试了下,应该是我搞错了,我是在停止魔蜂的宏里加了个宠物被动的命令,以便停止宠物攻击,把被动改成跟随就可以了,下次攻击还会宠物也攻击,停留时就不攻击,🙏
另外遇到了另外一个问题,就是魔蜂能否判断荷枪实弹这个天赋的内置 cd,已知内置 cd 是 22 秒,我的想法是冰冻之箭 100% 触发荷枪实弹,但有时冰冻之箭好了,荷枪实弹的 cd 还没好,就白用了,如果不能的话,那么有没有 wa 能提醒荷枪实弹的内置 cd
感谢回复再次

点评

不玩猎人,不明白怎样一个机制,如果只是要追踪饰品的内置CD的话,可以通过事件监视饰品的触发,然后建立一个计时函数,计时可以设置为全局函数,便于WBE使用  详情 回复 发表于 2024-3-30 06:01 PM
回复 支持 反对

使用道具 举报

发表于 2024-3-30 18:01:46 | 显示全部楼层
ijkzheng 发表于 2024-3-30 10:02 AM
试了下,应该是我搞错了,我是在停止魔蜂的宏里加了个宠物被动的命令,以便停止宠物攻击,把被动改成跟随 ...

不玩猎人,不明白怎样一个机制,如果只是要追踪饰品的内置CD的话,可以通过事件监视饰品的触发,然后建立一个计时函数,计时可以设置为全局函数,便于WBE使用
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-3-30 18:19:19 | 显示全部楼层
懒动行不行 发表于 2024-3-30 06:01 PM
不玩猎人,不明白怎样一个机制,如果只是要追踪饰品的内置CD的话,可以通过事件监视饰品的触发,然后建立 ...

我查了一下论坛,有关于内置CD的函数,和你的想法一样,我实在不会搞,就下载了一个现成的,伸手费锐减,哎,实在没了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-3-30 19:47:33 来自手机 | 显示全部楼层
那个是天赋,有些技能能触发这个天赋,被动技能,应该像日蚀月蚀?这个被动技能能被冰冻之箭触发,也能被其它触发,但有 cd,不是无限的,22 秒 cd,冰冻之箭能 100% 触发,冰冻之箭也有 cd 所以要卡着用
回复 支持 反对

使用道具 举报

发表于 2024-3-31 06:36:17 | 显示全部楼层
意思是即使这个技能处于内置冷却期间,也能被冰冻之箭触发?冰冻之箭无视其内置CD,触发后重新计时内置CD?
回复 支持 反对

使用道具 举报

发表于 2024-3-31 09:29:58 | 显示全部楼层
过来学习学习
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2024-4-29 11:40 AM , Processed in 0.075386 second(s), 28 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表