Profile Question

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Profile Question

#1 Post by Guest1234 »

Everytime I switch Characters, I have to go into my profile and set COMBAT_TYPE to ranged when I switch to mage or priest and vice-versa when I turn into Knight.

Can I use an if statement to have it done on it's own?

i.e.:

Code: Select all

if player.Class1 == CLASS_KNIGHT then
		<option name="COMBAT_TYPE"        value="melee" />	<!-- leave empty or choose ranged/melee if not using class default -->
		<option name="COMBAT_RANGED_PULL" value="false" /> <!-- only important for melees -->
else
		<option name="COMBAT_TYPE"        value="ranged" />	<!-- leave empty or choose ranged/melee if not using class default -->
		<option name="COMBAT_RANGED_PULL" value="true" /> <!-- only important for melees -->
end
I would try it out now, but I'm at work.

If I leave COMBAT_TYPE empty, MM gives out a full screen of yellow text.
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Profile Question

#2 Post by botje »

ofcourse you can use those, i use them too, huge difference between a warrior and a knight ya know :P

Botje
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Profile Question

#3 Post by rock5 »

Hm... I thought I fixed that in rev 641. What version of the bot are you using?
  • 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
Guest1234
Posts: 65
Joined: Wed Aug 31, 2011 10:19 am

Re: Profile Question

#4 Post by Guest1234 »

v3.29 r6.44
MM 1.01
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Profile Question

#5 Post by rock5 »

Looks like you are right, it doesn't work.

Could you try something for me.
Line 1163 of settings.lua

Code: Select all

	if originalCombatType then settings.profile.options.COMBAT_TYPE = originalCombatType end
	if originalCombatDistance then settings.profile.options.COMBAT_DISTANCE = originalCombatDistance end
	if originalCombatRangedPull then settings.profile.options.COMBAT_RANGED_PULL = originalCombatRangedPull end
Change it to

Code: Select all

	settings.profile.options.COMBAT_TYPE = originalCombatType
	settings.profile.options.COMBAT_DISTANCE = originalCombatDistance
	settings.profile.options.COMBAT_RANGED_PULL = originalCombatRangedPull
It seems to be working but I'm pretty sure there was a reason why I did it like that, but I can't remember why. I don't know if it's still necessary. Try it for awhile and see if any problems arise.
  • 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