Page 1 of 1

About HelperFunctions

Posted: Mon May 29, 2017 10:04 pm
by kirathegod
Find out that to get the mana and herb tratament to work i had to modify the helperfunctions

this is how it was

Code: Select all

if self:CheckAvailable( "Mana Treatment III" ) and TotalRecharge >= 535 and self:CheckAvailableInventory( "Greater Odella Powder", 2 ) then
			self:CheckExecute( "Mana Treatment III" );
			return false;
this is how i tweak it

Code: Select all

if self:CheckAvailable( "MP Recovery" ) and TotalRecharge >= 545 and self:CheckAvailableInventory( "Master Odella Powder", 2 ) then
			self:CheckExecute( "MP Recovery" );
			return false;

my quetion is it safe to delete the other part for the code i mean the one saying I II III Etc... ?

and in this same script do i have to modify the potions part aswell to get the potions working? i play on na so it may be the case that the names arent the same so
because in my sorc script there are potions to use but the characted dont consume them like for example [Abbey] Fine Recovery Potions

Re: About HelperFunctions

Posted: Tue May 30, 2017 5:35 am
by nucular
Yes, you can delete/change it like that and this is the correct way.
About potions mhh i think only the names are wrong.

Re: About HelperFunctions

Posted: Mon Jun 05, 2017 3:35 am
by 0x00
Thank you! Implemented this into my LUA framework!