Responds by chat, HUD, barney/scientist/vox/fvox/hgrunt/misc sounds, slap, flash, ban, anything!
More ways to respond than you can shake a stick at
This plugin comes with any auto response you can dream of and for the more technical, a macro system that allows easy customization. It's so powerful, I've been able to emulate other plugins with it (see below).
By default this plugin also has lots of fun autoresponses your clients can play around with, mine love it. Read on for the details
File format:
____________
powerautoresponder.ini
The first line should be a regex expression or a simple phrase followed immediately by
action lines, then separate the next block by a blank line. The file is created in your configs directory, there is nothing to download, and you can feel out the syntax by looking at it. Each
action line has this syntax:
<phrase>;<action type>;<audience>
If the syntax is not followed, alerts will appear on the console.
Make sure your regex lines are lower case.
phrase: Text, name of sound, or a number (depending on type)
action types: chat chatnoecho hud barney scientist vox fvox hgrunt misc directspeak
motd conmotd emit emitnoecho say sayback
slap slay* kick* ban* exec stealthexec flash shake
inlineconsole* servercmd* macro
audience: player** all immunity
* means audience is always player for these types and is always ignored, can leave blank
** player is the default audience - you do not need to specify ;player in the action line
powermacros.ini
If you want more than one thing to happen, macros is how you do it.
Each macro has a header with its name in square brackets [
macroname], followed by
action lines or macro statements. Make sure blank lines separate macro blocks.
Commands:
_________
amx_macro <view>|<stop>|<nick or #userid> <macro>
view macros loaded
stop all running macros
execute a macro upon someone
amx_par Multiple syntax
view - View all triggers
viewblock <number> - View a trigger and all its' action lines
The following require ADMIN_RCON access
push <"regexline"> <"actionline1"> <"actionline2"> <etc..> - Load a new autoresponse block into memory")
appendfile - Writes to file any autoresponses you loaded into memory by push
<nick or #userid> <trigger #> - Fake a response on a player
reloadfile - Rereads into memory powerautoresponder.ini
Cvars:
_____
par_onlywhenalive [0|1|2]
0 responds reguardless of status (default for non-CS mods)
1 responds only when player is alive
2 if player is dead, responses are routed to player only (default for CS)
par_autoprecache [0|1]
0 turns this off, incase it goes psycho
1 precaches the sound phrase encountered in emit and emitnoecho (default)
2 verbose
par_spamguard [integer]
spamguard works as a limiter to how many times ppl can trigger responses that will be
seen/heard by everyone. When it kicks in they are ingored.
0 off (default)
Action Type documentation:
____________________________
chat hud: phrase is text displayed
chatnoecho: phrase is text displayed. noecho means whatever the player said disappears
motd conmotd: phrase is a filename (looks for file in mod folder and configs directory). otherwise display phrase
barney scientist vox fvox hgrunt misc:
phrase is a sound
directspeak emit emitnoecho:
phrase is a direct path to a sound, with sound directory as root
say: player says this phrase instead
sayback: makes player say phrase 1/2 a second later
slap: phrase is slap power
slay: phrase appears in chat to audience
kick ban: phrase appears on client's console
exec: phrase is command executed. With this you can autobind clients, connect them to another server, etc.
stealthexec: same as exec, except the command executed on them is not reported
inlineconsole: phrase is message after execution, %s is command executed
servercmd: phrase is executed from server console
flash shake: phrase is a centered HUD message for shake. phrase for flash is fadetime
macro: phrase is macro name to execute
Action line examples:
_______________________
How are you, %s? Do you like pizza?;chat;all
17;slap
amx_gag "%s";servercmd
bind h +hook;exec;player
Regex tutorial:
_______________
http://www.english.uga.edu/humcomp/perl/regex2a.html (offline)
http://marvin.cs.uidaho.edu/~heckend...F07/regex.html
Perl Regular Expression Quick Reference 1.04
http://www.mnlab.cs.depaul.edu/~ehab...rlQuickRef.pdf
Macro Programming:
__________________
PAR features a macro system that allows you to execute more than one action line. Complete with variables, conditionals and comparators.
See the PAR/PM 2007 Macro Handbook for details (PARPM.pdf inside the zip file PARPM.zip - it won't let me attach the PDF itself because it's "too big"). The Book of Macros is also a good example guide.
Built-In Plugins
don't say ip's (
http://forums.alliedmods.net/showthread.php?p=86620)
toggle console (
http://forums.alliedmods.net/showthread.php?p=37354). Can bring con on others by using amx_par
slap me (
http://forums.alliedmods.net/showthread.php?p=55543) although, mine will sometimes slap u silly. Quit hittin yourself!
A new "Execme" command is built in. Players can say execme bind h +hook or whatnot and it is sent right to their console.
Plugins that PAR/PM can emulate
connect announce (Book of Macros)
swear replacement (PAR)
country kicker (
http://forums.alliedmods.net/showthread.php?p=97613)
(Book of Macros)
Welcome Message (Book of Macros, from AMX)
Say HAX (from AMX)
Macro statement issue: lsv
For some reason Vault does not like keys that start with a non-alpha character for vaultdata_exists/get_vaultdata calls. So you cannot read from these keys.
Feature Requests:
I will be taking feature requests for version 2008 of this plugin. I will have to ignore your request if it is
-not within the scope of this plugin
-not detailed. Do not leave room for vagueness
I will be here to offer help with macro development questions and take bug reports.