I was making a plugin to automate botting in Legends of the Jedi. However, there is an alias that I'd really like for it to have two variables in it. Unfortunately, I don't know how to do this. I was wondering if someone else would be able to help out. (It's set to save_state.)
Any help would be greatly appreciated. :)
<!-- Triggers -->
<triggers>
<trigger
enabled="y"
match="You may now bot again."
name="bot"
send_to="12"
sequence="100"
>
<send>Send("afk")
botSession = botSession + 1
if bottxt == "" or bottxt == nil then
Note("You have nothing to bot.)
else
Send("bot start")
Send(bottxt)
end -- if</send>
</trigger>
</triggers>
<!-- Aliases -->
<aliases>
<alias
match="^(d|n)bot( .*?)?$"
enabled="y"
group="bot"
regexp="y"
send_to="12"
sequence="100"
>
<send>EnableTrigger ("bot", false)
if "%2" == "" then
arg = "stop"
else
arg = "cancel"
end -- if
Send ("bot ", arg)</send>
</alias>
<alias
match="^(e|y)bot( )?(.*?)?$"
enabled="y"
group="bot"
variable="bottxt" <!-- I also want `botSessions' here. -->
regexp="y"
send_to="12"
sequence="100"
>
<send>if "%3" == nil then
if bottxt == nil then
Note("What is it you want to bot?")
return
end -- if
else
bottxt = "%3"
end -- if
Send ("bot start")
EnableTrigger ("bot", true)
Note ("Botting is now automated.")
Send (bottxt)</send>
</alias>
<alias
match="cbot"
enabled="y"
group="bot"
send_to="12"
sequence="100"
>
<send>Note("You are currently botting: ", bottxt)
if botSessions == 1 then
Note("You have been botting for 1 session.")
else
Note("You have been botting for ", botSessions, " sessions.")
end -- if</send>
</alias>
</aliases>
<!-- Variables -->
<variables>
<variable name="bottxt"></variable>
<!-- botSession variable for ^(e|y)bot( )?(.*?)?$ -->
<variable name="botSession"></variable>
</variables>
</muclient>
Any help would be greatly appreciated. :)