#alias track {#action $prey is here.} {murder $prey}
#alias untrack {#unaction $prey is here.}
Something along those lines... Basically, it's supposed to make it so when I type 'track' or 'untrack' it will autoattack the person set as the prey (With 'prey [person]') with the sent 'murder' command.
This was sent to me by a user of JMC, but I don't really like JMC, so I was wondering if the same sort of thing could be done with Mush...
Copy <aliases> to </aliases> and paste in alias menu, triggers to /triggers paste in trigger menu and variables /variables paste in the variable menu.
(click the paste button on the respective pages).
You need to have scripting enabled, and set to VBScript.
Maybe (Obviously) I'm confused. When I try to paste from <aliases> to </aliases> in the Alias line (Above the send line), it says that it won't allow line breaks there. Am I pasting in the right area/pasting the right thing?
Don't use "Add" or "Edit" in the alias dialog. There should be a button labelled "Paste", which becomes active when you have copied XML code for aliases into the clipboard. Basically, this button lets you copy or paste an entire alias, as it would appear in a world file or plugin, directly from or into the client, instead of using 'Add' and having to enter each item seperately.
I had it in the wrong format, and it won't lock onto [name] is here, because generally there's a class title there:
'[name] the Dragon Slayer is here.' so, what I need, is it to lock onto JUST the name. So, when it recognizes [name], it will do 'murder [name]'.
Change the alias to match on just the variable (thats the @ then the variable name, with expand variables checked) and then regexp (regular expression) checked.
Although, you will try and murder them whenever. And you might might easily get into a nice loop, which wouldnt be good. (It will match on the name, anywhere, in conversation, or if you get an echo about it, or whatever)
You MIGHT be better matching on ^@prey (regexp) which will match whenever the variable is at the beginning of the line. But of course, if you have a leading space or whatever, you wont match (you could account for that though).
What trigger is best for you depends on your situation, and how often you see it, and where, and whats around it.