卡拉赞一号BOSS的LUA实现
function wuye_Mount(Unit, event, miscunit, misc)
? ? if Unit:GetHealthPct(16151) == 90 then
? ? x = Unit:GetX()
? ? y = Unit:GetY()
? ? z = Unit:GetZ()
? ? o = Unit:GetO()
? ? Unit:SpawnCreature(15550, x+10, y+5, z, o, 21, 0)
? ? ? end
end
function wuye_1(Unit, event, miscunit, misc)
? ? print "wuye"
? ? if Unit:GetHealthPct(16151) == 90 then
? ? Unit:RegisterEvent("wuye_Mount",1000,1)
? ? ? ? else
? ? Unit:RegisterEvent("wuye_Mount",1000,0)
? ? ? ? end
end
RegisterUnitEvent(16151,1,"wuye_1")
搜索更多相关主题的帖子:
卡拉赞 BOSS LUA