Moderator: MacroQuest Developers
and then you command the bot:sov=snt Speed of Vallon on NameS
Then the bot will cast Speed of Vallon on Zzekik./t bot sov Zzekik
And that should change the bot to only talk out to a channel named "MyPrivateChannel". Lemme know if that doesn't work.ChatIn=Channel
ChatInChannel=MyPrivateChannel
Code: Select all
/varset cmds-SHORTCUTS ${cmds-SHORTCUTS} ${VarName.Lower} Code: Select all
Sub LoadSetting(string VarName,string VarType,string SectionName,string KeyName,string DefaultValue)
/if (${VarType.Equal[string]}) {
/if (!${Defined[${VarName}-DefaultValue]}) /declare ${VarName}-DefaultValue ${VarType} outer
/vardata ${VarName}-DefaultValue DefaultValue
}
/if (!${Defined[LoadFrom]}) {
/declare LoadFrom string outer ini
}
/if (${LoadFrom.Equal[ini]}) {
/declare IniValue string local
/if (!${Defined[IniFile]}) {
|setup ini File Reference
/declare IniFile string outer genbot_${Me.CleanName}.ini
}
/varset IniValue ${Ini[${IniFile},${SectionName},${KeyName},NOTFOUND]}
/if (!${Defined[${VarName}]} && ${VarType.NotEqual[shortcut]}) /declare ${VarName} ${VarType} outer
/if (${IniValue.Equal[NOTFOUND]}) {
/ini ${IniFile} "${SectionName}" "${KeyName}" "${DefaultValue}"
/if (${VarType.NotEqual[shortcut]}) /varset ${VarName} ${DefaultValue}
} else /if (${VarType.Equal[shortcut]}) {
/if (!${IniValue.Lower.Equal[none]}) {
/if (!${Defined[ShortCuts-${VarName.Lower}-Text]}) /declare ShortCuts-${VarName.Lower}-Text string outer
/varset ShortCuts-${VarName.Lower}-Text ${Ini[${IniFile},${SectionName},${VarName},NA]}
/varset cmds-SHORTCUTS ${cmds-SHORTCUTS} ${VarName.Lower}
}
} else {
/varset ${VarName} ${IniValue}
}
}
/return
Code: Select all
Sub PersonalMain
/if (${Me.Combat} && !${Me.Stunned} && !${Me.Casting.ID} && ${Me.Class.Name.Equal[Monk]} && !${Me.Buff[Celestial Tranquility].ID}) {
/cast item "Celestial Fists"
}
/return 
