Auto reset skills when changing class.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Auto reset skills when changing class.

#1 Post by rock5 »

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?
  • 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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Auto reset skills when changing class.

#2 Post by rock5 »

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.
  • 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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Auto reset skills when changing class.

#3 Post by lisa »

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
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: Auto reset skills when changing class.

#4 Post by kanta »

Just want to say thanks for all your work on this.
Scout/Knight/Rogue 70/66/66
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Auto reset skills when changing class.

#5 Post by rock5 »

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
Post Reply