Detecting classes

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Detecting classes

#1 Post by Cindy »

Hi, I am trying to write some code that determines all three class types of the character, (and makes decisions about daily turn-ins based on that).

I am at the house maid, i can store player.Class1 and player.Class2 in variables, but I don't know how to get the third class so that I can do

ExchangeClass(EXCHANGECLASS_MAINCLASS, EXCHANGECLASS_SUBCLASS);

with my algorithmic choice of the two arguments.

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

Re: Detecting classes

#2 Post by lisa »

did you try player.Class3 ?
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
Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Detecting classes

#3 Post by Cindy »

Code: Select all

				ChoiceOptionByName("I want to switch my primary and secondary class.")				
				RoMScript("ExchangeClass(player.Class3, player.Class2); --EXCHANGECLASS_SUBCLASS, EXCHANGECLASS_MAINCLASS)");
				player:sleep();
failed to change class...
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Detecting classes

#4 Post by rock5 »

According to this post
http://www.solarstrike.net/phpBB3/viewt ... 428#p40428
you have to add 1 to the value. Also when using variables in RoMScript you have to do it a certain way. This should work.

Code: Select all

RoMScript("ExchangeClass("..(player.Class3+1)..","..(player.Class2+1)..")");
  • 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
Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Detecting classes

#5 Post by Cindy »

Great thanks. I was missing the inner quotations in my most recent evolution. :)
Post Reply