zz_y7.hpmp_func = function(self)
if zz_y7.use_hpmp then -- use_hpmp
local UserHP = _UserService.LocalPlayer.WsUser.Hp
local UserMP = _UserService.LocalPlayer.WsUser.Mp
if UserHP <= 100 then
_ItemConsumeLogic:TryConsumeFromFuncKey(2000001)
end
if UserMP <= 50 then
_ItemConsumeLogic:TryConsumeFromFuncKey(2000003)
end
end
end
댓글1
HPMP = "";
[zz_y7_const.HPMP] = function(self)
zz_y7.use_hpmp = not zz_y7.use_hpmp
if zz_y7.use_hpmp then
zz_y7.auto_hpmp_timer = _TimerService:SetTimerRepeat(zz_y7.hpmp_func, 0.1)
else
_TimerService:ClearTimer(zz_y7.auto_hpmp_timer)end
print_toggle_message(zz_y7_const.HPMP, zz_y7.use_hpmp)
end,
zz_y7.hpmp_func = function(self)
if zz_y7.use_hpmp then -- use_hpmp
local UserHP = _UserService.LocalPlayer.WsUser.Hp
local UserMP = _UserService.LocalPlayer.WsUser.Mp
if UserHP <= 100 then
_ItemConsumeLogic:TryConsumeFromFuncKey(2000001)
end
if UserMP <= 50 then
_ItemConsumeLogic:TryConsumeFromFuncKey(2000003)
end
end
end