MCP Custmize

Kevinshp

Well-Known Member
I know I could just try it and see if it works but what da hay I'll ask here first. When you set a button up that sends out a cast ability say to mystic for spirit tap. Could you make the button also tell another toon to cast a spell at the same time.
 

Kannkor

Ogre
I know I could just try it and see if it works but what da hay I'll ask here first. When you set a button up that sends out a cast ability say to mystic for spirit tap. Could you make the button also tell another toon to cast a spell at the same time.
uhh... what?

You want 1 button that tells two different people to cast 2 different spells?

If so, you either need 2 buttons, or make a custom MCP button based on Cast.. and just put 2 lines in the CODE set.
 

Kevinshp

Well-Known Member
uhh... what?

You want 1 button that tells two different people to cast 2 different spells?

If so, you either need 2 buttons, or make a custom MCP button based on Cast.. and just put 2 lines in the CODE set.
Yes I was thinking it would be good for some temp buff so I can get them all up at the same time like stampede and the coercer dps buff. I can send those then tell my dirge to cast RO I don't like using the chain for RO because many times the chain goes off and then I have to move out or something and then RO gets wasted.

so would i put "all" then two lines withe the spells i want cast below?
 

Kevinshp

Well-Known Member
One more thing is it possible using MCP custom buttons to have a toon cast something on another toon. So I would be able to hit a button to cast bolister on x toon or cast gravitous on x toon?

Yes I know you want to slap me.
 

Kannkor

Ogre
Yes I was thinking it would be good for some temp buff so I can get them all up at the same time like stampede and the coercer dps buff. I can send those then tell my dirge to cast RO I don't like using the chain for RO because many times the chain goes off and then I have to move out or something and then RO gets wasted.

so would i put "all" then two lines withe the spells i want cast below?
No...
You need too... Open MCPCommands.xml (Code name MC)
You need to edit MCPCommandsCustom.xml (Code name MCC)

In MC, find Cast.. (or CastOn..). Copy it and paste it into MCC.
Give it a new name that does not have spaces.
Duplicate the code portion. Keep in mind the settings need to have different names.

You may have to wait until someone does a write up of how to add commands to MCC.
 

pelly

Active Member
I'm loving the new MCP and the simple way to add spells and scripts to the interface. I do have 1 question I haven't been able to figure out yet using the custom commands section. I made a custom command for my pre-combat spells and I can see it in the drop down when I want to add it to a button using MCP, but I cannot figure out how to translate the old logic to the new logic. Here is what I was currently using in my pre-cast sequence.

<CommandButton Name="Button-Start-Cbt" template='OgreMCPButton'>
<Text>Start-Cbt</Text>
<OnLeftClick>
relay all "Script[\${OgreBotScriptName}]:QueueCommand[Call CastFromUplink All \"Divine Guidance\"]"
relay all "Script[\${OgreBotScriptName}]:QueueCommand[Call CastFromUplink All \"Ancient Shroud\"]"
relay all "Script[\${OgreBotScriptName}]:QueueCommand[Call CastFromUplink All \"Ancestral Ward\"]"
relay all "Script[\${OgreBotScriptName}]:QueueCommand[Call CastFromUplink All \"Demonstration of Faith\"]"
relay all "Script[\${OgreBotScriptName}]:QueueCommand[Call CastFromUplink All \"Carrion Warding\"]"
relay all "Script[\${OgreBotScriptName}]:QueueCommand[Call CastFromUplink All \"Umbral Warding\"]"
relay all "Script[\${OgreBotScriptName}]:QueueCommand[Call CastFromUplink All \"Repent\"]"
relay all "Script[\${OgreBotScriptName}]:QueueCommand[Call CastFromUplink All \"Chi\"]"
</OnLeftClick>
</CommandButton>

I am assuming i need to change the relay all...portion of the above line to something else for each spell I want to include?

<Setting Name="One">relay all "Script[\${OgreBotScriptName}]:QueueCommand[Call CastFromUplink All \"Divine Guidance\"]"</Setting>

Any hints on the new format?

Thanks!
 

Kannkor

Ogre
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>
 

Kannkor

Ogre
On a related note.. IMO, you should use the Priority tab - Combat, instead of making a button for it. Then to 'activate' it, you can target yourself on your tank, and turn your auto attack on, thus putting you in combat. But, to each their own.
 
Top Bottom