Page 1 of 1

OfficialGrinderFramework

Posted: Fri Apr 28, 2017 7:06 am
by smaion40
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:

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
Is there a way to fix this?, for some clases like sorcerer, sm, gunner to rest mana is a must :/

Re: OfficialGrinderFramework

Posted: Fri Apr 28, 2017 11:09 am
by lalakis
smaion40 wrote:
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:

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
Is there a way to fix this?, for some clases like sorcerer, sm, gunner to rest mana is a must :/
these days i lvl up a lot chars so the bot from lvl 1 works ok. just need to enable rest for hp and mp from settings.lua