NOTE: For anyone viewing this, this is an advanced topic. It's creating custom MCP buttons with custom commands. Keep that in mind.
Note: The below code will only work with Patch 106, OgreBot version 15.024 (or later).
Here's how the new MCP does it (can look in MCPCommands.XML).
Code:
<Set Name="Cast..">
<Set Name="Code">
<Setting Name="One">relay all OgreBotAtom a_QueueCommand CastFromUplink ${Parameter1} ${Parameter2}</Setting>
</Set>
<Set Name="Description">
<Setting Name="One">Tells [Bots] to cast a specific [ability].</Setting>
<Setting Name="two">Parameter 1 = Who should cast. Example All</Setting>
<Setting Name="three">Parameter 2 = Spell to be cast.</Setting>
</Set>
</Set>
<Set Name="CastOn..">
<Set Name="Code">
<Setting Name="One">relay all OgreBotAtom a_QueueCommand CastFromUplinkOnPlayer ${Parameter1} ${Parameter2} ${Parameter3}</Setting>
</Set>
<Set Name="Description">
<Setting Name="One">Tells [Bots] to cast a specific [ability].</Setting>
<Setting Name="two">Parameter 1 = Who should cast. Example All</Setting>
<Setting Name="three">Parameter 2 = Spell to be cast.</Setting>
<Setting Name="Four">Parameter 3 = Cast spell on this person.</Setting>
</Set>
</Set>
Using the Cast.. as my example:
Code:
<Setting Name="One">relay all OgreBotAtom a_QueueCommand CastFromUplink ${Parameter1} ${Parameter2}</Setting>
Parameter1 is who should cast, and parameter 2 is the spell.
Parameter1 could easily be replaced with all. So now we're at...
Code:
<Setting Name="One">relay all OgreBotAtom a_QueueCommand CastFromUplink All ${Parameter1}</Setting>
Parameter1 in game is the spell. IMO, you shouldn't take it any further than this, because this allows you to enter multiple spells in game without editting a file.
However.. if you wish you can enter abilities in also.
Which brings us here...
Code:
<Setting Name="One">relay all OgreBotAtom a_QueueCommand CastFromUplink All "Feign Death"</Setting>
Now simply duplicate the line, just make sure you keep your setting names different. Such as...
Code:
<Setting Name="One">relay all OgreBotAtom a_QueueCommand CastFromUplink All ${Parameter1}</Setting>
<Setting Name="Two">relay all OgreBotAtom a_QueueCommand CastFromUplink All ${Parameter2}</Setting>
<Setting Name="Three">relay all OgreBotAtom a_QueueCommand CastFromUplink All ${Parameter3}</Setting>
Or, if you want to hardcode the abilities..
Code:
<Setting Name="One">relay all OgreBotAtom a_QueueCommand CastFromUplink All "Feign Death"</Setting>
<Setting Name="Two">relay all OgreBotAtom a_QueueCommand CastFromUplink All "Some other spell"</Setting>
<Setting Name="Three">relay all OgreBotAtom a_QueueCommand CastFromUplink All "Kaboom"</Setting>