Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Morpheus666
Beginner


Joined: 11 Aug 2010
Posts: 22

PostPosted: 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!
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
Morpheus666
Beginner


Joined: 11 Aug 2010
Posts: 22

PostPosted: 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
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Wed Dec 29, 2010 12:44 am   
 
#additem rejectlist BadPerson
Reply with quote
Morpheus666
Beginner


Joined: 11 Aug 2010
Posts: 22

PostPosted: Wed Dec 29, 2010 6:02 am   
 
Thanks Rahab!
_________________
Windows 10 64BIT Intel Core i7-4770K
CMUD 3.34 Pro
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net