OfficialGrinderFramework
Posted: Fri Apr 28, 2017 7:06 am
Hello guys, I started using the GrinderFramework with low level characters <10, I noticed the function that checks Hp / Mana and triggers Togle Rest is not working, it's a little bit problematic for first levels and classes with poor mana management. The current code of GrinderFramework for this is:
Is there a way to fix this?, for some clases like sorcerer, sm, gunner to rest mana is a must :/
Code: Select all
-- When we are resting, wait until we are back at full health or start attacking when attacked.
elseif self._IsResting then
if Framework:FindTarget( true, Player:GetPosition()) ~= nil then
self._IsResting = false;
else
-- Check the resting state and toggle rest when we have finished moving.
if not Player:IsResting() and not Player:IsMoving() then
PlayerInput:Ability( "Toggle Rest" );
return false;
end
-- Nothing seems to be wrong so wait until we are back at full health and mana.
if Player:GetHealth() == 100 and Player:GetManaCurrent() == Player:GetManaMaximum() and Player:GetFlightTime() == 100 then
self._IsResting = false;
return false;
end
end