wuduz游戏站

 找回密码
 注册
搜索
无度传奇145z游戏站745v奇迹网
查看: 1397|回复: 0
打印 上一主题 下一主题

[技术教程] 诛仙宠物驯养LUA代码

跳转到指定楼层
楼主
发表于 2022-10-13 21:55:15 |只看该作者 |倒序浏览
宠物驯养LUA代码 不多说什么 高手自己修复下把 根据talisman_combine

---宠物驯养-------------------------------------------------------------------------------
function PetBedgeAdopt(pet_tid,pet,origin)
  local DataIndex=ZLuaPetBedgeDataIndex()
  local availablePets = ZLuaAvailablePets()
   pet:SetLevel(1)
    pet:UpdateData(DataIndex["identify"], 1)
    pet:SetCurHonorPoint(math.max(pet:QueryCurHonorPoint()/2,1))
    pet:SetMaxHonorPoint(math.max(pet:QueryMaxHonorPoint()/2,80))
    pet:SetCurHungerPoint(450)
    pet:SetMaxHungerPoint(500)
    ZLuaPetBedgeRollBack(pet_tid,pet)
    pet:UpdateData(DataIndex["feedaids"],0)
    ZLuaPetBedgeRebuild(pet_tid,pet,origin,_)
   return pet_tid;
end

使用道具 举报

手机版|sitemap|txt|wuduz游戏站

GMT+8, 2026-6-11 03:32

回顶部