Page 2 of 2

Re: patch tomorrow... BOTS WILL NOT WORK!!!

Posted: Mon Nov 21, 2011 6:05 pm
by Kazaroth
Sorry, not making the change causes the error to still occur. Error on second char load is.
You assigned the key '0' double: for 'MACRO' and for 'MACRO'. Please check your settings: Ingame -> System -> Hotkeys and in your profile

I have debug print the _key and _name causing the issue. the output was
_key = 48
_name = MACRO

As you can see, the key is NOT 'MACRO'. Sorry, without the fix I suggested, the code will not work. The code in the profile is shown below.

Code: Select all

	<hotkeys>
    	<!-- to communicate with the RoM API / define ingame dummy macro at place 1 -->
		<hotkey name="MACRO"        modifier="" key="VK_0" />
	</hotkeys>
I have updated my copy and hope you can merge the suggested changes made earlier into a controlled baseline.

Re: patch tomorrow... BOTS WILL NOT WORK!!!

Posted: Mon Nov 21, 2011 9:00 pm
by rock5
As I stated previously, your change was not a fix. It already works the way it's suppose to. Basically, what you have done is break the check so it doesn't detect the double '0' values.

The reason it says macro is == to '0' twice is because when you reload the profile, old values still exists. Specifically the variable "check_keys" does not get reinitialized. It gets reinitialized in "settings.load()".

When loading a profile you should always do the following.

Code: Select all

		-- Re-initialize player
		player = CPlayer.new();
		settings.load();
		settings.loadProfile(profilename)
This is also required for the level skills 1-10 function to work and possibly the open gift package function.