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?
Detecting classes
Re: Detecting classes
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Detecting classes
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();
Re: Detecting classes
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.
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
Re: Detecting classes
Great thanks. I was missing the inner quotations in my most recent evolution. 