for i = 0,nPetNum -1 do
--取得宠物的GUID[高位和低位GUID]
petGUID_H, petGUID_L = LuaFnGetPetGUID(sceneId,selfId,i)
--匹配成功后
if petGUID_H == hid and lid == petGUID_L then
nIsExist = i; --匹配成功,记录珍兽的所在位置
break;
end
end
local nStrPer = LuaFnGetPet_StrPerception(sceneId,selfId,nIsExist); --力量
local nSprPer = LuaFnGetPet_SprPerception(sceneId,selfId,nIsExist); --灵气
local nConPer = LuaFnGetPet_ConPerception(sceneId,selfId,nIsExist); --体力
local nIntPer = LuaFnGetPet_IntPerception(sceneId,selfId,nIsExist); --定力
local nDexPer = LuaFnGetPet_DexPerception(sceneId,selfId,nIsExist); --身法
|