For my next project I think I will tackle this. This is for when changing class, not changing character. When changing character you would still need to load a new profile but when changing class you only need to change the skills.
So now for the brainstorming.
I've had an initial look at how it loads the skills. What it does is load the class specific skills and the general skills into settings.profile.skills and sorts them. This is done in the loadprofile function when loading all the other settings and I don't see a way to extract that process and do it separately. So what I thought I'd do is, instead of it saving directly to settings.profile.skills it would save all the class skills in a backup table eg. settings.profile.skillsbackup. This will hold the separate class skills and the general skills. Then at the end of the loadprofile function it can run another function eg. 'loadskills(class)' that copies the class skills and the general skills to settings.profile.skills and sorts them.
Then when player:update() updates the player.Class1 value it can check to see if it changed. If it did then it runs loadskills(player.Class1).
One last thing, at the end of loadskills() it will also rerun "setupMacros()" because when the class changes so does the action keys.
That's pretty straight forward. Did I miss anything?
Auto reset skills when changing class.
Auto reset skills when changing class.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Auto reset skills when changing class.
Hm.. No comment.
Anyway, I've committed it to rev592.
So now when you change class, the next time player:update() runs it will change the skill set and recheck the macro action key.
Note: if you change character you should still reload the profile.
Anyway, I've committed it to rev592.
So now when you change class, the next time player:update() runs it will change the skill set and recheck the macro action key.
Note: if you change character you should still reload the profile.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Auto reset skills when changing class.
Very nice =)
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Auto reset skills when changing class.
Just want to say thanks for all your work on this.
Scout/Knight/Rogue 70/66/66
Re: Auto reset skills when changing class.
Rev 593 fixes a small bug when using hotkeys with your skills instead of 'macro'.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan