Page 1 of 1
2 sugestions to profiles
Posted: Sat Oct 06, 2012 3:18 pm
by Rabbit
Sorry my english, isn't very good.
I'd like to sugest something i belive all MM users will profit.
1 - the possibility to create a list of commands for a class, is already done, but if my 2nd class change, i'd like to program in same profile, for example, the warrior/knight, and the warrior/rogue with different skills, and different priority to each one. If the 2nd class is readable, maybe not so hard.
2 - Is known that some classes got skills that in certain sequence are much more useful then alone.
Any possibility that make something like this
<skill name="Skill_1" modifier="" hotkey="MACRO" priority="90" />
<skillgroup1 name="Skill_2" modifier="" hotkey="MACRO" priority="90" />
<skillgroup1 name="Skill_3" modifier="" hotkey="MACRO" />
<skill name="Skill_4" modifier="" hotkey="MACRO" priority="90" />
<skillgroup2 name="Skill_5" modifier="" hotkey="MACRO" priority="90" />
<skillgroup2 name="Skill_6" modifier="" hotkey="MACRO" />
where the Skill_1 And Skill_4 are launched alone, but the skill_2 is always followed by skill_3 as member of 'skillgroup1', and same to 'skillgroup2'
By other words, each skillgroup act like a fixed sequence ?
just hope helping to make MM better
ops, to a moderator or admin,please move this post to RunesOfMagic. thank you in advance
Re: 2 sugestions to profiles
Posted: Sat Oct 06, 2012 3:49 pm
by Administrator
Both of these things are already possible and have been for years.
Re: 2 sugestions to profiles
Posted: Sat Oct 06, 2012 6:07 pm
by Rabbit
can you please point me in the right direction so i can learn how to use them ?
Re: 2 sugestions to profiles
Posted: Sat Oct 06, 2012 7:35 pm
by kuripot
follow lisa signature
#7,8,9
Re: 2 sugestions to profiles
Posted: Sun Oct 07, 2012 1:45 am
by Rabbit
Yes, Kuripot, you are right ...
i realy need how to search, and maybe need to learn english too.
That dont helped me to solve my problem, but ...
who knows some day in the future

Re: 2 sugestions to profiles
Posted: Sun Oct 07, 2012 6:32 pm
by kuripot
did you try to put all together all elite skill
i use this in my mage/priest and mage/warlock
Code: Select all
<skills_mage>
<skill name="MAGE_FLAME" hotkey="MACRO" priority="100" autouse="true" />
<skill name="MAGE_ESSENCE_OF_MAGIC" hotkey="MACRO" priority="80" />
<skill name="MAGE_FIREBALL" hotkey="MACRO" priority="90" autouse="true" />
<skill name="MAGE_LIGHTNING" hotkey="MACRO" priority="80" autouse="false" />
<skill name="MAGE_PURGATORY_FIRE" hotkey="MACRO" priority="80" autouse="false" />
<skill name="MAGE_ELEMENTAL_WEAKNESS" hotkey="MACRO" priority="80" autouse="false" />
<skill name="PRIEST_RISING_TIDE" hotkey="MACRO" priority="80" autouse="false" />
<skill name="MAGE_MAGIC_DRAIN" hotkey="MACRO" priority="80" autouse="false" />
<skill name="PRIEST_URGENT_HEAL" hotkey="MACRO" priority="120" hpper="80" />
<skill name="PRIEST_REGENERATE" hotkey="MACRO" priority="110" hpper="90" />
<skill name="MAGE_ENERGY_INFLUX" hotkey="MACRO" priority="80" autouse="false" />
<skill name="MAGE_ELEMENTAL_CATALYSIS" hotkey="MACRO" priority="80" autouse="false" />
<skill name="MAGE_INTENSIFICATION" hotkey="MACRO" priority="80" autouse="false" />
<skill name="MAGE_ENERGY_WELL" hotkey="MACRO" priority="80" autouse="false" />
<skill name="PRIEST_MAGIC_BARRIER" hotkey="MACRO" priority="80" autouse="false" />
<skill name="MAGE_ELECTROSTATIC_CHARGE" hotkey="MACRO" priority="80" autouse="false" />
<skill name="WARLOCK_SACES_SCORN" hotkey="MACRO" priority="100" />
<skill name="WARLOCK_WARP_CHARGE" hotkey="MACRO" priority="100" />
<skill name="WARLOCK_SOUL_PAIN" hotkey="MACRO" priority="100" />
<skill name="WARLOCK_PSYCHIC_ARROWS" hotkey="MACRO" priority="100" />
</skills_mage>
Re: 2 sugestions to profiles
Posted: Sun Oct 07, 2012 6:34 pm
by kuripot
it will depend in your onload onskill etc.
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 7:29 am
by Rabbit
Yes, is how i have it.
but cant change priority on (in the example) mage skill from one secundary to the other
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 7:58 am
by lisa
I did a forum search for priority and got this
Code: Select all
changeProfileSkill("MAGE_FLAME", "AutoUse", true);
changeProfileSkill("MAGE_FIREBALL", "AutoUse", true);
changeProfileSkill("MAGE_FLAME", "Priority", 90);
changeProfileSkill("MAGE_FIREBALL", "Priority", 100);
So in your profile onload you could check what your second class is and adjust values as required, yes?
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 8:07 am
by rock5
The priority is only used when loading the skills to put the skills in order. If you change the priority afterward it will have no effect to the cast order unless you resort the skills. There is some code in the survival script that resorts the skills.
Code: Select all
table.sort(settings.profile.skills, function(a,b) return a.priority > b.priority end)
Just run that after changing priority.
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 8:10 am
by lisa
rock5 wrote:The priority is only used when loading the skills to put the skills in order. If you change the priority afterward it will have no effect to the cast order unless you resort the skills. There is some code in the survival script that resorts the skills.
Code: Select all
table.sort(settings.profile.skills, function(a,b) return a.priority > b.priority end)
Just run that after changing priority.
I keep forgeting the priority is set up that way lol
should just add that code to the changeProfileSkill function if priority is being changed, wouldn't be hard =)
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 10:31 am
by Jandrana
rock5 wrote:The priority is only used when loading the skills to put the skills in order. If you change the priority afterward it will have no effect to the cast order unless you resort the skills. There is some code in the survival script that resorts the skills.
Code: Select all
table.sort(settings.profile.skills, function(a,b) return a.priority > b.priority end)
Just run that after changing priority.
Why does the bot not sort the skills after processing the onLoad section? Will this hurt anyone?
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 10:46 am
by rock5
That wouldn't help if the skill priority is changed elsewhere, for instance at a waypoint. Maybe a better idea might be to have the changeProfileSkill function resort the skills if the value being changed is the priority.
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 10:48 am
by lisa
lisa wrote:
should just add that code to the changeProfileSkill function if priority is being changed, wouldn't be hard =)
I still have the bad habit of editing in stuff lol
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 11:42 am
by rock5
LoL. Didn't see that.
I think I will add it to my next commit.
BTW priority is not capitalized. Most of the other values are but priority isn't. So you would use something like
Code: Select all
changeProfileSkill("MAGE_FLAME", "priority", 90);
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 4:26 pm
by Rabbit
In that case, maybe better make something like
if 2ndClass = "Priest"
Skill List
end
if 2ndClass = "Warlock"
Skill List
end
Re: 2 sugestions to profiles
Posted: Mon Oct 08, 2012 11:00 pm
by rock5
Considering that most people wouldn't be changing their secondary class on a regular basis and even if they did, in most cases, they would only need to change a few skills which can be done in the onload of the profile, I don't think it's worth the effort to add that functionality.
Just add all your skills then in the profile onload do
Code: Select all
if player.Class1 == CLASS_MAGE and player.Class2 == CLASS_PRIEST then
disable any skills you don't want to use and change priority for this class combo
elseif player.Class1 == CLASS_MAGE and player.Class2 == CLASS_WARLOCK then
disable any skills you don't want to use and change priority for this class combo
etc..
Re: 2 sugestions to profiles
Posted: Tue Oct 09, 2012 1:46 am
by Rabbit
Thank you very much rock5, this solve my problem
Also a big thanks to all other that helped me to understand a bit more how to program in MM
