Page 1 of 1
Auto Potion and loot
Posted: Mon Oct 30, 2017 4:10 pm
by Mandy
Hello guys
Where i put off the auto loot?
And someone can explain why never auto potion?
what i have to do
Thanks advanced
Re: Auto Potion and loot
Posted: Thu Nov 02, 2017 10:37 am
by smaion40
Hello Mandy, if you are using OfficialGrinderFramework then follow this steps to disable auto loot.
Go to your Aion Script folder, then Scripting > OfficialGrinderFramework.
Look for Settings.lua, and edit the following line from true to false:
Code: Select all
-- Indicates whether or not to allow looting of targets (Requires AllowAttack).
self.AllowLoot = false;
There are other options inside settings.lua that can be changed, such as self.AllowRest = true; to let or not your character rest at certain Hp/Mp level, some others about HerbTreatments and even potions.
You can tweak your settings according your needs.
Re: Auto Potion and loot
Posted: Sat Nov 04, 2017 8:12 am
by Mandy
smaion40 wrote: ↑Thu Nov 02, 2017 10:37 am
Hello Mandy, if you are using OfficialGrinderFramework then follow this steps to disable auto loot.
Go to your Aion Script folder, then Scripting > OfficialGrinderFramework.
Look for Settings.lua, and edit the following line from true to false:
Code: Select all
-- Indicates whether or not to allow looting of targets (Requires AllowAttack).
self.AllowLoot = false;
There are other options inside settings.lua that can be changed, such as self.AllowRest = true; to let or not your character rest at certain Hp/Mp level, some others about HerbTreatments and even potions.
You can tweak your settings according your needs.
Ty Bro.. Now i just need know why may bots do not use potions...
just Superior Recovery Potion
Re: Auto Potion and loot
Posted: Sat Nov 04, 2017 9:28 am
by smaion40
Mandy wrote: ↑Sat Nov 04, 2017 8:12 am
Ty Bro.. Now i just need know why may bots do not use potions...
just Superior Recovery Potion
AS counts with a function for both, HP and MP potions, it's inside the HelperFunction.lua
Code: Select all
function CheckPotionRecovery()
-- Prepare the variables to contain the best item and recharge.
local BestInventory = nil;
local BestRecharge = 0;
local TotalRechargeHealth = Player:GetHealthMaximum() - Player:GetHealthCurrent();
local TotalRechargeMana = Player:GetManaMaximum() - Player:GetManaCurrent();
-- Check if a potion is available.
if self._iPotionDelay == nil or self._iPotionDelay < Time() then
-- Loop through your inventory
for Inventory in ListIterator( InventoryList:GetList()) do
-- Check if this is a life potion
if string.find( Inventory:GetName(), "Design" ) == nil and string.find( Inventory:GetName(), "Recovery Potion" ) ~= nil then
if string.find( Inventory:GetName(), "Fine" ) ~= nil then
if TotalRechargeHealth >= 2120 and TotalRechargeMana >= 1830 and BestRecharge < 2120 then
BestInventory = Inventory;
BestRecharge = 2120;
end
elseif string.find( Inventory:GetName(), "Major" ) ~= nil then
if TotalRechargeHealth >= 1540 and TotalRechargeMana >= 1600 and BestRecharge < 1540 then
BestInventory = Inventory;
BestRecharge = 1540;
end
elseif string.find( Inventory:GetName(), "Greater" ) ~= nil then
if TotalRechargeHealth >= 1270 and TotalRechargeMana >= 1480 and BestRecharge < 1270 then
BestInventory = Inventory;
BestRecharge = 1270;
end
elseif string.find( Inventory:GetName(), "Lesser" ) ~= nil then
if TotalRechargeHealth >= 670 and TotalRechargeMana >= 980 and BestRecharge < 670 then
BestInventory = Inventory;
BestRecharge = 670;
end
elseif string.find( Inventory:GetName(), "Minor" ) ~= nil then
if TotalRechargeHealth >= 370 and TotalRechargeMana >= 590 and BestRecharge < 370 then
BestInventory = Inventory;
BestRecharge = 370;
end
elseif TotalRechargeHealth >= 970 and TotalRechargeMana >= 1280 and BestRecharge < 970 then
BestInventory = Inventory;
BestRecharge = 970;
end
end
end
-- Check if we have a positive match and see if the cooldown allows the use of it.
if BestInventory ~= nil and BestInventory:GetCooldown() == 0 then
if PlayerInput:Inventory( BestInventory:GetName()) then
self._iPotionDelay = Time() + BestInventory:GetReuse();
end
return false;
end
end
-- We have not executed any potion.
return true;
end
In theory it checks your inventory and looks for all kind of potion names and uses the one that suits best your current Hp/Mp %.
If you ask me, botting with potions isnt the most efficient way, you are wasting a lot of resources in the long term, and you can use the rest option to replenish your HP/MP after it reaches certain level.
For this, just modify the next lines: (these numbers means %).
Code: Select all
-- Indicates whether or not to allow resting (Requires AllowAttack).
self.AllowRest = true;
-- Contains the remaining amount of health required before resting (Requires AllowRest).
self.RestHealth = 30;
-- Contains the remaining amount of mana required before resting (Requires AllowRest).
self.RestMana = 30;
I hope it can help you.
PD: That HelperFunction script is pretty old, and I think "Superior recovery serums" potions are not supported. Maybe that's your problem.
Re: Auto Potion and loot
Posted: Sat Nov 04, 2017 10:48 pm
by cooco
The "problem" with this potion is you need to be low mana and hp at same time, if you are only low HP script don't use Recovery potion.