Setting mobs names from WP files

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Setting mobs names from WP files

#1 Post by silinky » Mon Mar 12, 2012 1:46 am

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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Setting mobs names from WP files

#2 Post by lisa » Mon Mar 12, 2012 1:55 am

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
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Re: Setting mobs names from WP files

#3 Post by silinky » Mon Mar 12, 2012 2:20 am

niccce :D
thanks!

i love you people. :mrgreen:

User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Re: Setting mobs names from WP files

#4 Post by silinky » Mon Mar 12, 2012 2:54 am

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.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Setting mobs names from WP files

#5 Post by lisa » Mon Mar 12, 2012 3:44 am

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
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
silinky
Posts: 213
Joined: Mon Nov 23, 2009 5:07 am

Re: Setting mobs names from WP files

#6 Post by silinky » Mon Mar 12, 2012 3:58 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests