About HelperFunctions

Post Reply
User avatar
kirathegod
Posts: 8
Joined: Sun May 07, 2017 3:59 am
Has thanked: 3 times
Been thanked: 7 times

About HelperFunctions

Post by kirathegod » Mon May 29, 2017 10:04 pm

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
May your road lead you to warm sands

Online
User avatar
nucular
Site Admin
Posts: 260
Joined: Sat Jan 07, 2017 9:08 pm
Has thanked: 27 times
Been thanked: 388 times

Re: About HelperFunctions

Post by nucular » Tue May 30, 2017 5:35 am

Yes, you can delete/change it like that and this is the correct way.
About potions mhh i think only the names are wrong.

User avatar
0x00
VIP
Posts: 105
Joined: Tue Jan 10, 2017 11:40 pm
Has thanked: 10 times
Been thanked: 23 times

Re: About HelperFunctions

Post by 0x00 » Mon Jun 05, 2017 3:35 am

Thank you! Implemented this into my LUA framework!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests