|
diehard2k0 Beginner
Joined: 17 Aug 2008 Posts: 25
|
Posted: Mon Dec 06, 2010 5:13 am
Capture every command sent? |
Is there a way i can capture the first word of every command i send?
Like if it 'tell BLAH this or that' it will store 'tell' into a variable
then if i 'mount horse' it will replace 'tell' with 'mount' for everything i send that is. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Mon Dec 06, 2010 9:37 am |
Code: |
<trigger type="Command Input" priority="10" id="319">
<pattern>^((%w)*)$</pattern>
<value>$lastCommand=%1
$firstWord=%2
myCommandList=%additem($lastCommand, @myCommandList)
</value>
</trigger> |
That will store the entire command to a list, you can change the $localVar used in the %additem function if you really only want the first word. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
diehard2k0 Beginner
Joined: 17 Aug 2008 Posts: 25
|
Posted: Mon Dec 06, 2010 10:23 am Re: Capture every command sent? |
Thanks a million.
|
|
|
|
diehard2k0 Beginner
Joined: 17 Aug 2008 Posts: 25
|
Posted: Tue Dec 07, 2010 4:52 am |
Is there a way this can be redone to only take commands i send the mud, and not triggers?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Tue Dec 07, 2010 8:10 am |
Not that I can think of. There is no way currently to differentiate the source of the entered command.
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|