So, I've been playing around with trying to add a Move Behind toggle on the MCP using the "UplinkOptionChange" on the MCP edit, and I can't find out what the name is for the uplink option. I've checked the file "UplinkContollerXML" but I don't know enough about the language to know what the name of the object is.
If someone could help me out, I'd greatly appreciate it.
I basically just want to have an MCP button that would make everyone move behind the mob and into melee range that I can toggle real quick to get them positioned (casters always moving behind mobs in big groups gets annoying). It'll be nice since my inquis likes to port up to a mob and it makes positioning a pain. If there's a better way to do that, let me know.
I won't comment on the 'better way', because if you're trying to do that at all, we have very different play styles
There's two ways of finding out the 'name' that goes along with UplinkOptionchange on the MCP edit. They are nearly identical, just in different files.
Way 1: Using UplinkcontrollerXML.xml
Find the 'option' you are after. You should be able to do this by reading what is between the <Text> and </Text>. In this case, it's 'Ranged Attack'.
Code:
<checkbox name='checkbox_settings_rangedattack' template='chkbox'>
<X>165</X>
<Y>30</Y>
<Text>Ranged Attack</Text>
<OnLeftClick>
This:RightClick
</OnLeftClick>
<OnRightClick>
relay all "Script[\${OgreBotScriptName}]:QueueCommand[call UplinkControllerFunction ${This.Type} checkbox_settings_rangedattack ${This.Checked}]"
</OnRightClick>
</checkbox>
Here, you can see do something with in code..
Code:
relay all "Script[\${OgreBotScriptName}]:QueueCommand[call UplinkControllerFunction ${This.Type} checkbox_settings_rangedattack ${This.Checked}]"
The part we care about, is the name parameter we're going to pass. Which is.. checkbox_settings_rangedattack
So, anything on the UplinkController screen, you can obtain the same way.
Now, how did I come up with that name inside the UplinkController? Well, it's Way 2!
Way 2: Using OgreUIXML.XML (this is the actual UI of OgreBot).
This file is MUCH more complicated than UplinkControllerXML.XML. Nearly everything is templated, so a lot of things are much smaller (which may be easier, or more difficult to read).
The easist way to find the area of what you're after, is using a text search. In Ogrebot, pick an option you want to search for. In this example, lets use 'Accept Res'. (It's in the 2nd row, 5th one down, incase you were looking for it.)
So, control+f, type in "Accept Res" (no quotes) and hit enter.
You should come to this section:
Code:
<checkbox name='checkbox_settings_acceptres' template='EQ2OB_Checkbox_Settings'>
<Text>Accept Res</Text>
</checkbox>
Or more specifically:
Code:
checkbox [COLOR="#FF0000"]name='checkbox_settings_acceptres' [/COLOR]
Therefore, we have the NAME of the checkbox.
checkbox_settings_acceptres
Worth mentioning, as it mentions in the button, TRUE is not the same as true. It has to be all caps. So use TRUE or FALSE.