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

宠物学习技能 PetStudySkill

[复制链接]
  • 打卡等级:本地老炮
  • 打卡总天数:527
  • 打卡月天数:16
  • 打卡总奖励:525
  • 最近打卡:2026-06-18 02:14:29
Waylee 发表于 2022-11-5 03:20 | 显示全部楼层 |阅读模式

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

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

×
函数名称:LuaFnPetStudySkill

注册函数:PetStudySkill

参数说明:sceneId(场景编号),selfId(调用者ID),petGUID_H(宠物GUID高位),petGUID_L(宠物GUID低位),skillId(技能ID)

功能说明:宠物学习技能

示例说明:
-- 珍兽技能学习
function x335000_PetStudy( sceneId, selfId, skillId )
        petGUID_H = LuaFnGetHighSectionOfTargetPetGuid( sceneId, selfId )
        petGUID_L = LuaFnGetLowSectionOfTargetPetGuid( sceneId, selfId )
        local checkAvailable = LuaFnIsPetAvailableByGUIDNoPW(sceneId, selfId, petGUID_H, petGUID_L);
        if checkAvailable and checkAvailable == 1 then
                local ret = PetStudySkill( sceneId, selfId, petGUID_H, petGUID_L, skillId )
                if ret and ret > 0 then
                        --成功的光效
                        LuaFnSendSpecificImpactToUnit(sceneId, selfId, selfId, selfId, 18, 0);
                        return 1
                end
        end
        return 0;
end
您需要登录后才可以回帖 登录 | register

本版积分规则

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

GMT+8, 2026-6-18 16:42 , Processed in 0.067818 second(s), 26 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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