LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 187|回复: 4

[函数] 读取人物面板攻击强度问题

[复制链接]
发表于 2024-10-12 14:50:06 | 显示全部楼层 |阅读模式
魔峰,想读取到人物面板信息,请问有什么办法吗?
回复

使用道具 举报

发表于 2024-10-12 20:04:10 | 显示全部楼层
Stat information functions

    GetArmorEffectiveness - This function is not yet documented
    GetArmorPenetration - Returns the percentage of enemy armor ignored due to the player's Armor Penetration Rating
        review
    GetAttackPowerForStat - Returns the attack power bonus provided by one of the player's basic statistics
    GetAvoidance - This function is not yet documented
    GetBladedArmorEffect - This function is not yet documented
    GetBlockChance - Returns the player's percentage chance to block with a shield
    GetCombatRating - Returns the value of a combat rating for the player
    GetCombatRatingBonus - Returns the percentage effect for the player's current value of a given combat rating
    GetCritChance - Returns the player's melee critical strike chance
    GetCritChanceFromAgility - Returns additional critical strike chance provided by Agility
    GetCritChanceProvidesParryEffect - This function is not yet documented
    GetDodgeChance - Returns the player's chance to dodge melee attacks
    GetExpertise - Returns the player's current expertise value
    GetHaste - Returns information about the players Haste percentage.
    GetHitModifier - This function is not yet documented
    GetLifesteal - This function is not yet documented
    GetManaRegen - Returns information about the player's mana regeneration rate
    GetMastery - Returns the mastery value of your character
    GetMasteryEffect - This function is not yet documented
    GetMaxCombatRatingBonus - Returns the maximum possible percentage bonus for a given combat rating
    GetMeleeHaste - Returns information about the player's melee haste
    GetModResilienceDamageReduction - This function is not yet documented
    GetMultistrike - This function is not yet documented
    GetMultistrikeEffect - This function is not yet documented
    GetParryChance - Returns the player's parry chance
    GetPowerRegen - Returns information about the player's mana/energy/etc regeneration rate
    GetRangedCritChance - Returns the player's ranged critical strike chance
    GetRangedHaste - Returns information about the player's ranged haste
    GetShieldBlock - Returns the amount of damage prevented when the player blocks with a shield
    GetSpeed - This function is not yet documented
    GetSpellBonusDamage - Returns the player's spell damage bonus for a spell school
    GetSpellBonusHealing - Returns the player's amount of bonus healing
    GetSpellCritChance - Returns the player's spell critical strike chance for a spell school
    GetSpellCritChanceFromIntellect - Returns additional spell critical strike chance provided by Intellect
    GetSpellPenetration - Returns the amount of enemy magic resistance ignored due to the player's Spell Penetration Rating
        review
    GetUnitHealthModifier - Returns the health modifier for the player's pet
    GetUnitManaRegenRateFromSpirit - Returns the increase in mana regeneration rate provided by Spirit
    GetUnitMaxHealthModifier - Returns the maximum health modifier for the player's pet
    GetUnitPowerModifier - Returns the mana modifier for the player's pet
    GetVersatilityBonus - This function is not yet documented
    HasSPEffectsAttackPower - This function is not yet documented
    ResistancePercent - Returns the % value of spell resistance depending on resistance value and player level
    UnitArmor - Returns the player's or pet's armor value
    UnitAttackBothHands - Returns information about the player's or pet's weapon skill
    UnitAttackPower - Returns the player's or pet's melee attack power
    UnitAttackSpeed - Returns information about the unit's melee attack speed
    UnitDamage - Returns information about the player's or pet's melee attack damage
    UnitDefense - Returns the player's or pet's Defense skill
    UnitRangedAttack - Returns information about the player's or pet's ranged weapon skill
    UnitRangedAttackPower - Returns the player's or pet's ranged attack power
    UnitRangedDamage - Returns information about the player's or pet's ranged attack damage and speed
    UnitResistance - Returns information about the player's or pet's magic resistance
    UnitStat - Returns information about a basic character statistic for the player or pet



https://wowprogramming.com/docs/api_categories.html#player

回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-10-12 22:22:38 | 显示全部楼层
行了行了 发表于 2024-10-12 08:04 PM
Stat information functions

    GetArmorEffectiveness - This function is not yet documented

谢谢大佬,可惜没有能直接用得函数啊,我是想要加成过的最终攻击强度,不是白色字的
回复 支持 反对

使用道具 举报

发表于 2024-10-14 14:50:32 | 显示全部楼层
local baseAP, posBuff, negBuff = UnitAttackPower("player")
local totalAP = baseAP + posBuff + negBuff
这个totalAP就是最终的面板攻强。如果是远程的就把UnitAttackPower改成UnitRangedAttackPower
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-10-15 13:41:50 | 显示全部楼层
notveryimba 发表于 2024-10-14 02:50 PM
local baseAP, posBuff, negBuff = UnitAttackPower("player")
local totalAP = baseAP + posBuff + negBu ...

等到了大佬,我太感激你了,谢谢谢谢 谢谢~~~~~~~~~~~~~~~~~好用
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-2 01:40 AM , Processed in 0.047440 second(s), 22 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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