OfficialGrinderFramework

Post Reply
User avatar
smaion40
Posts: 83
Joined: Tue Apr 25, 2017 12:11 pm
Has thanked: 42 times
Been thanked: 16 times

OfficialGrinderFramework

Post by smaion40 » 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 :/

lalakis
Posts: 9
Joined: Wed Feb 08, 2017 7:42 am
Has thanked: 1 time
Been thanked: 2 times

Re: OfficialGrinderFramework

Post by lalakis » Fri Apr 28, 2017 11:09 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests