|
Morpheus666 Beginner
Joined: 11 Aug 2010 Posts: 22
|
Posted: Tue Dec 28, 2010 5:44 pm
simple script help please |
I have a buff-up script that works just fine. It is very simple really.
Pattern:
^(%w) says 'I could really use a buff'$
Script text is
cast haste %1, (and then a bunch more like strength, etc)
That's all well and good, but somone abused it a few days ago, and I would like to add something that will skip this person and maybe say something to them, like bugger off.
Whats the simplest way to do this?
Thanks very much! |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Tue Dec 28, 2010 9:23 pm |
This should work. Add the users name to the reject variable.
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger priority="150" copy="yes">
<pattern>^(%w) says 'I could really use a buff'$</pattern>
<value>#IF (!%ismember(%1,@rejectList))
{
cast haste %1
}</value>
</trigger>
</cmud> |
|
|
_________________ Asati di tempari! |
|
|
|
Morpheus666 Beginner
Joined: 11 Aug 2010 Posts: 22
|
Posted: Tue Dec 28, 2010 9:59 pm |
Thanks Tech, that looks great! I don't know how to add something to the reject variable. I am looking in the help files now.
~Thanks! |
|
_________________ Windows 10 64BIT Intel Core i7-4770K
CMUD 3.34 Pro |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Wed Dec 29, 2010 12:44 am |
#additem rejectlist BadPerson
|
|
|
|
Morpheus666 Beginner
Joined: 11 Aug 2010 Posts: 22
|
Posted: Wed Dec 29, 2010 6:02 am |
Thanks Rahab!
|
|
_________________ Windows 10 64BIT Intel Core i7-4770K
CMUD 3.34 Pro |
|
|
|
|
|