Ogre MCP

chaosrune

Member
I would like to start off by saying isxeq2 and isxogre have brought back some much needed enjoyment to the game for my wife and I. Good groups are hard to find now days so we just made our own with the help of these great tools. I have found the ogre MCP to be a very useful interface for cutting down on all the console commands. Is it possible to add other things to the MCP like short cut keys , examples such as ogre transmute, eq2ogreharvest, eq2bot and the mapper, or any of the other commands. If not would it be possible to get a shortcut MCP for these ? Thank you
 

pz

Active Member
it's very possible! off the top of my head, you can edit Scripts\EQ2OgreBot\MCP\MCPCommandsCustom.xml to create any custom buttons you'd like really. something like..

Code:
	<Set Name="transmute">
		<Set Name="Code">
			<Setting Name="One">ogre transmute</Setting>
		</Set>
		<Set Name="Description">
			<Setting Name="One">run Ogre TRANSMUTE</Setting>
		</Set>
	</Set>

	<Set Name="harvest">
		<Set Name="Code">
			<Setting Name="One">ogre harvest</Setting>
		</Set>
		<Set Name="Description">
			<Setting Name="One">run Ogre HARVEST</Setting>
		</Set>
	</Set>

	<Set Name="mapper">
		<Set Name="Code">
			<Setting Name="One">ogre map</Setting>
		</Set>
		<Set Name="Description">
			<Setting Name="One">run Ogre MAP</Setting>
		</Set>
	</Set>
.. then run MCP, right-click a handy empty button, and scroll down the "select command" list to find the buttons created by the code above.
 

chaosrune

Member
Took me a few minutes and a few tries to figure out placement in the file since i know nothing of scripting but with your help and looking through the other command files i figured it out.

Thank You
 

Kannkor

Ogre
it's very possible! off the top of my head, you can edit Scripts\EQ2OgreBot\MCP\MCPCommandsCustom.xml to create any custom buttons you'd like really. something like..

Code:
	<Set Name="transmute">
		<Set Name="Code">
			<Setting Name="One">ogre transmute</Setting>
		</Set>
		<Set Name="Description">
			<Setting Name="One">run Ogre TRANSMUTE</Setting>
		</Set>
	</Set>

	<Set Name="harvest">
		<Set Name="Code">
			<Setting Name="One">ogre harvest</Setting>
		</Set>
		<Set Name="Description">
			<Setting Name="One">run Ogre HARVEST</Setting>
		</Set>
	</Set>

	<Set Name="mapper">
		<Set Name="Code">
			<Setting Name="One">ogre map</Setting>
		</Set>
		<Set Name="Description">
			<Setting Name="One">run Ogre MAP</Setting>
		</Set>
	</Set>
.. then run MCP, right-click a handy empty button, and scroll down the "select command" list to find the buttons created by the code above.
The above will work. Another way is to simply use RawCommand, then put the parameters in. IE:
RawCommand
Parameter1: ogre
Parameter2: map
 

chaosrune

Member
What would be the proper way to make a radar load and unload button for the mcp , i edited the MCPCommandsCustom.xml to get it to load using
<Set Name="radar">
<Set Name="Code">
<Setting Name="One">radar on</Setting>
</Set>
<Set Name="Description">
<Setting Name="One">run radar on.</Setting>
</Set>
</Set>

but for radar off i used this and it does not work , just reloads the radar

<Set Name="radar off">
<Set Name="Code">
<Setting Name="One">radar off</Setting>
</Set>
<Set Name="Description">
<Setting Name="One">run radar off.</Setting>
</Set>
</Set>

i tried the rawcommand setting but it gives me an error that makes me think it is not used to run the radar from the console

any help or a point in the right direction would be greatly help full, i searched the wiki help pages so i am guessing i missed the right info

thank you
 

Kannkor

Ogre
What would be the proper way to make a radar load and unload button for the mcp , i edited the MCPCommandsCustom.xml to get it to load using
<Set Name="radar">
<Set Name="Code">
<Setting Name="One">radar on</Setting>
</Set>
<Set Name="Description">
<Setting Name="One">run radar on.</Setting>
</Set>
</Set>

but for radar off i used this and it does not work , just reloads the radar

<Set Name="radar off">
<Set Name="Code">
<Setting Name="One">radar off</Setting>
</Set>
<Set Name="Description">
<Setting Name="One">run radar off.</Setting>
</Set>
</Set>

i tried the rawcommand setting but it gives me an error that makes me think it is not used to run the radar from the console

any help or a point in the right direction would be greatly help full, i searched the wiki help pages so i am guessing i missed the right info

thank you
Apparently you can't use spaces when making set names. I'm guessing I missed an escape with the lookup table.

What is happening, your "radar off" is just reading up to the first space, so it's reading "radar", which is doing the "radar on".

Just rename your "radar off" to "radar_off" and it'll work (I tested it).

I'm getting some really odd behaviour with rawcommand when trying to use radar... But other commands seem to work fine... I'll have to look at that later...
 
Top Bottom