Useitem

Kiech

Active Member
Hi trying to set a button up in MCP to use a item that has a different name on each char ie.. the new cloak from access quest.I have made a button for each char with cloak that works fine just be nice to have one button to click and each char will use item tried this but didn't work,
<Set Name="UseItem..">
<Set Name="Code">
<Setting Name="One">relay all OgreBotAtom a_QueueCommand UseItemFromUplink ${Parameter1} ${Parameter2} ${Parameter3} ${Parameter4} ${Parameter5} ${Parameter6}</Setting>
</Set>
<Set Name="Description">
<Setting Name="One">Tells [Bots] to Use a specific [Item].</Setting>
<Setting Name="two">Parameter 1 = Who should use. Example All</Setting>
<Setting Name="three">Parameter 2 = Item to be used.</Setting>
<Setting Name="four">Parameter 3 = Item to be used.</Setting>
<Setting Name="five">Parameter 4 = Item to be used.</Setting>
<Setting Name="six">Parameter 5 = Item to be used.</Setting>
<Setting Name="seven">Note - Item names must be exact.</Setting>
</Set>
 

Kannkor

Ogre
Hi trying to set a button up in MCP to use a item that has a different name on each char ie.. the new cloak from access quest.I have made a button for each char with cloak that works fine just be nice to have one button to click and each char will use item tried this but didn't work,
<Set Name="UseItem..">
<Set Name="Code">
<Setting Name="One">relay all OgreBotAtom a_QueueCommand UseItemFromUplink ${Parameter1} ${Parameter2} ${Parameter3} ${Parameter4} ${Parameter5} ${Parameter6}</Setting>
</Set>
<Set Name="Description">
<Setting Name="One">Tells [Bots] to Use a specific [Item].</Setting>
<Setting Name="two">Parameter 1 = Who should use. Example All</Setting>
<Setting Name="three">Parameter 2 = Item to be used.</Setting>
<Setting Name="four">Parameter 3 = Item to be used.</Setting>
<Setting Name="five">Parameter 4 = Item to be used.</Setting>
<Setting Name="six">Parameter 5 = Item to be used.</Setting>
<Setting Name="seven">Note - Item names must be exact.</Setting>
</Set>
It doesn't work like that.
You can't just add more parameters to a function call.
What you can do, is call the function more than once, using different parameters.
If you look at...
Cast..
Castx2..
and/or
CastOn..
CastOnx2..
those should give examples to do what you want.
 

pz

Active Member
Scripts\EQ2OgreBot\MCP\MCPCommandsCustom.xml:

Code:
	<Set Name="Cloaks">
		<Set Name="Code">
			<Setting Name="One">relay all OgreBotAtom a_QueueCommand UseItemFromUplink "fighter" "Steward's Cloak of Eternity"</Setting>
			<Setting Name="Two">relay all OgreBotAtom a_QueueCommand UseItemFromUplink "priest" "Steward's Mantle of Eternity"</Setting>
			<Setting Name="Three">relay all OgreBotAtom a_QueueCommand UseItemFromUplink "mage" "Steward's Cape of Eternity"</Setting>
			<Setting Name="Four">relay all OgreBotAtom a_QueueCommand UseItemFromUplink "scout" "Steward's Shroud of Eternity"</Setting>
		</Set>
		<Set Name="Description">
			<Setting Name="One">Use CoE quest cloaks, everyone.</Setting>
		</Set>
	</Set>
 
Top Bottom