Page 1 of 1

Profile Question

Posted: Wed Sep 21, 2011 5:13 am
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.

Re: Profile Question

Posted: Wed Sep 21, 2011 5:32 am
by botje
ofcourse you can use those, i use them too, huge difference between a warrior and a knight ya know :P

Botje

Re: Profile Question

Posted: Wed Sep 21, 2011 5:42 am
by rock5
Hm... I thought I fixed that in rev 641. What version of the bot are you using?

Re: Profile Question

Posted: Wed Sep 21, 2011 2:38 pm
by Guest1234
v3.29 r6.44
MM 1.01

Re: Profile Question

Posted: Thu Sep 22, 2011 7:11 am
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.