Page 1 of 1
Setting mobs names from WP files
Posted: Mon Mar 12, 2012 1:46 am
by silinky
hi, good people
i have a question. can i set the profile <mobs> from a waypoint file? the reason is, that i use one profile for many bots, but one time i need one mob to be hunted, another times different ones.
feedback is apreciated, thx
Re: Setting mobs names from WP files
Posted: Mon Mar 12, 2012 1:55 am
by lisa
short answer is
Code: Select all
table.insert(settings.profile.mobs, "name");
change name to the name of the mob
Another is to use a userfunction I made a little while back.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=3626
Re: Setting mobs names from WP files
Posted: Mon Mar 12, 2012 2:20 am
by silinky
niccce

thanks!
i love you people.

Re: Setting mobs names from WP files
Posted: Mon Mar 12, 2012 2:54 am
by silinky
sorry for the double post, one more question:
can i use this for other profile tags?
Code: Select all
table.insert(settings.profile.friends, name);
for example to insert a function/set of functions into onLeaveCombat:
Code: Select all
table.insert(settings.profile.onLeaveCombat, name);
and instead of name i would either insert a variable name and make a case for it, with functions in my userfunction, or put the function name directly into the argument?
i cannot test it yet because i am at work.
Re: Setting mobs names from WP files
Posted: Mon Mar 12, 2012 3:44 am
by lisa
I doubt it because the onleavecombat event in profile isn't a table, it's a function.
So you would need something like this
Code: Select all
settings.profile.events.onLeaveCombat= function() return
--Somefancy code type stuff here
end
Re: Setting mobs names from WP files
Posted: Mon Mar 12, 2012 3:58 am
by silinky
cool, thank you! i will test this also
now i can't wait to get home already, this will speed up my KS runs too. i hope.