找回密码
 register
搜索
查看: 1584|回复: 0

客户端函数 Lua_IsPossession(m_CurrentSelectPet) 检测宠物附体状态

[复制链接]
  • 打卡等级:本地老炮
  • 打卡总天数:523
  • 打卡月天数:12
  • 打卡总奖励:521
  • 最近打卡:2026-06-14 09:46:51
Waylee 发表于 2021-6-29 20:44 | 显示全部楼层 |阅读模式

马上注册,查看网站隐藏内容!!

您需要 登录 才可以下载或查看,没有账号?register

×
\Interface\HuanLing\HuanLing.lua
       --附体
        if Lua_IsPossession(m_CurrentSelectPet) then
                msg = string.format("#H%s处于附体状态,无法进行幻灵操作。",strName2)
                PushDebugMessage(msg)
                return        
        end
函数定义:

\Interface\Pet\Pet.lua
function Lua_IsPossession(nIndex)
        if nIndex == nil or nIndex == -1 then
                return false
        end
        local _,lid = Pet:GetGUID(nIndex);
        local Heti_Guid = DataPool:GetPlayerMission_DataRound(275)
        if lid == Heti_Guid then
                return true
        else
                return false
        end
end


您需要登录后才可以回帖 登录 | register

本版积分规则

QQ|雪舞知识库 ( 浙ICP备15015590号-1 | 萌ICP备20232229号|浙公网安备33048102000118号 )|天天打卡

GMT+8, 2026-6-15 00:28 , Processed in 0.058850 second(s), 25 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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