Adding Toggle Buttons to eq2botcommander

sumoslim

Well-Known Member
I am looking to add a toggle button on eq2botcommander that would toggle the "no scripted movement whatsoever" botton on and off on in eq2botcommander.

How would i do that?

Also, how could I change one of the current buttons on eq2commander (invite) to this function.
 

bob_the_builder

Well-Known Member
In the eq2botcommander.iss file add these:

Code:
variable bool NoMove=FALSE
Code:
function NoMove()
{
	if ${NoMove} == FALSE
	{
		NoMove:Set[TRUE]
		UIElement[EQ2Bot Commander].FindChild[GUITabs].FindChild[Main].FindChild[NoMove].Font:SetColor[FF32CD32]
		Relay all Script[EQ2Bot].VariableScope.NoAutoMovement:Set[TRUE]
		Relay all Script[EQ2Bot].VariableScope.NoAutoMovementInCombat:Set[TRUE]
	}
	else
	{
		NoMove:Set[FALSE]
		UIElement[EQ2Bot Commander].FindChild[GUITabs].FindChild[Main].FindChild[NoMove].Font:SetColor[FFFF0000]
		Relay all Script[EQ2Bot].VariableScope.NoAutoMovement:Set[FALSE]
		Relay all Script[EQ2Bot].VariableScope.NoAutoMovementInCombat:Set[FALSE]		
	}
}
Then in the eq2botcommander.xml file add this button (probably need to change the loc of it)

Code:
<Button Name='NoMove'>
<X>5%</X>
<Y>50</Y>
<Width>90</Width>
<Height>20</Height>
<Text>NoMove</Text>
<AutoTooltip>Tell all bots no movement what so ever!</AutoTooltip>
<OnLeftClick>Script[EQ2BotCommander]:QueueCommand[call NoMove]</OnLeftClick>
<Font><Color>FFFF0000</Color></Font>
</Button>
Basically you can just copy the button in the UI and change its loc and make a function to call in the xml file. Then in the xml make a variable and then change the function. Very easy to add new buttons and functions.
 

sonatartica

Member
a "back off of the mob ! Ae is comming !" would be so useful on fight like the fish before pera celtis :x

but i don't think eq2bot permit that so :/
 

sumoslim

Well-Known Member
How could I make this so it only broadcasted it to healers and casters - or maybe sessions.

Right now it turns my tank to movement on - when i turn the rest to nomove. I guess its the T/F toggle since the tank is already set to nomovement.

Is there a variable in eq2bot that knows the class of each bot? Could access that and have it broadcast to only those classes.
 
Top Bottom