Page 1 of 1

BlubBlab's Housemaid Userfunction

Posted: Sat Oct 05, 2013 12:31 am
by BlubBlab
It perhaps a little early but only because I did implemented all the function I wanted up until now.

This userfunction is for the purpose to use housemaids in a very complex ways or simple way

You can setup a list like this

Code: Select all

 SetMaidList({{name = "My Housemaid",thrust = true, type = 2 }});
	This will change the housemaid "My Housemaid" to be increased affinity and use for mage buffs
You can overwrite the lists by command

Code: Select all

OverWriteAllUse(2)
This will get mage buffs from all housemaids you encounter
.
ChangeIncreaseAffinity(2)
This will change how many time try to change the affinity to 2
You can use let the bot "use" all housemaids by

Code: Select all

AutoUseAllMaids()

and many thinks more..

Basically this userfunction is for the purpose of getting the housemaid stuff and increase the affinity of the housemaids

Re: BlubBlab's Housemaid Userfunction

Posted: Fri Jan 24, 2014 5:50 pm
by BlubBlab
I updated it. I fixes some bugs.

Re: BlubBlab's Housemaid Userfunction

Posted: Sat Jan 25, 2014 6:05 am
by Ego95
Need to tell you, that it is still buggy :/ Don't get it working to just use the inventive option (where you get potions) because it always rises affinity :(

still using

Code: Select all

	DoNotIncreaseAffinity(false)
	OverWriteAllUse(6)
in the onLoad and

Code: Select all

AutoUseAllMaids()
in my house :(

Re: BlubBlab's Housemaid Userfunction

Posted: Sat Jan 25, 2014 7:54 am
by BlubBlab
I did take a lock (again) the only problem I found was that I forget prioritize between the table and the global overwrite so If one is true, it always true. So check out if you wrote a table with thrust = true;

Re: BlubBlab's Housemaid Userfunction

Posted: Tue Feb 11, 2014 4:34 pm
by Ego95
Maybe anyone can tell me, what's wrong with this list :O
Got an error in my script, so I tried to put the onLoad content in a userfunction like I learned it from rock :)

Code: Select all

	SetMaidList({	{name = "Ima Spears",thrust = false, type = 6 }
					{name = "Adam Nonme",thrust = false, type = 6 }
					{name = "Heiger Kesosis",thrust = false, type = 6 }
					
					{name = "Kaimbe Paine",thrust = false, type = 6 }
					{name = "Berit Moore",thrust = false, type = 6 }
					{name = "Haldur Hewyrun",thrust = false, type = 6 }
					
					{name = "Shana Haysley",thrust = false, type = 6 }
					{name = "Mila Norris",thrust = false, type = 6 }
					{name = "Pascar Port",thrust = false, type = 6 }
	});

Code: Select all

Installing userfunctions. 2014-02-11 22:32:29 - scripts\/rom_ks/bot.lua:86: .../
rom_ks/userfunctions/userfunction_housemaid - Kopie.lua:2: '}' expected (to clos
e '{' at line 1) near '{'
Don't know what's wrong :/

Re: BlubBlab's Housemaid Userfunction

Posted: Tue Feb 11, 2014 6:38 pm
by BlubBlab
Try this:

Code: Select all

SetMaidList({   {name = "Ima Spears",thrust = false, type = 6 },
               {name = "Adam Nonme",thrust = false, type = 6 },
               {name = "Heiger Kesosis",thrust = false, type = 6 },
               
               {name = "Kaimbe Paine",thrust = false, type = 6 },
               {name = "Berit Moore",thrust = false, type = 6 },
               {name = "Haldur Hewyrun",thrust = false, type = 6 },
               
               {name = "Shana Haysley",thrust = false, type = 6 },
               {name = "Mila Norris",thrust = false, type = 6 },
               {name = "Pascar Port",thrust = false, type = 6 }
   });

The" ," was missing to separating the fields at least it is what I see.