Raised This Month: $51 Target: $400
 12% 

Power Auto Responder / Power Macros 2007


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Zenith77 (33)
[DeathTV] Sid 6.7
Member
Join Date: Oct 2007
Old 12-12-2007 , 17:59   Power Auto Responder / Power Macros 2007
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (powerautoresponder.sma - 2259 views - 48.0 KB)
File Type: zip PARPM.zip (168.6 KB, 1160 views)
File Type: ini bookofmacros.ini (4.5 KB, 923 views)
__________________
Power Votes Core << Democracy at your fingertips
Get Mortal Kombat Miscstats for CS

Last edited by [DeathTV] Sid 6.7; 12-13-2007 at 17:27.
[DeathTV] Sid 6.7 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-12-2007 , 18:26   Re: Power Auto Responder / Power Macros 2007
Reply With Quote #2

Wow ! Looks like it's a lot of work.
You should use pcvars, that's a must in order to get your plugin approuved ;)

Gj
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Tramp
Senior Member
Join Date: Aug 2005
Old 12-12-2007 , 18:56   Re: Power Auto Responder / Power Macros 2007
Reply With Quote #3

What is barney/scientist/vox/fvox/hgrunt/ ?
__________________
STER-Gaming.pl - The Best Multigaming Club, CS 1.6, CS:S, ET, COD 2 more and more ! Check forum forum.ster-gaming.pl

amxmodx - Polish support about amxx.
Tramp is offline
Checkmarks
BANNED
Join Date: Sep 2007
Location: kentucky
Old 12-12-2007 , 19:03   Re: Power Auto Responder / Power Macros 2007
Reply With Quote #4

all different voices you can use (go to "Speech Commands" on the amxmodmenu)

PS: Gj on this plugin
Checkmarks is offline
Tramp
Senior Member
Join Date: Aug 2005
Old 12-12-2007 , 19:30   Re: Power Auto Responder / Power Macros 2007
Reply With Quote #5

but thats isn't a voice maker ? this VOX that i can make voice message to player ? ^^

That would be great
__________________
STER-Gaming.pl - The Best Multigaming Club, CS 1.6, CS:S, ET, COD 2 more and more ! Check forum forum.ster-gaming.pl

amxmodx - Polish support about amxx.
Tramp is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-12-2007 , 22:05   Re: Power Auto Responder / Power Macros 2007
Reply With Quote #6

Very nicely done. Approval with use of pcvars and acknowledgment of the plugin working.

Suggestions:
- Add white space to the code, it doesn't hurt.
- Looking at the parseline function, it looks like it would be cleaner if you used an enum.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
[DeathTV] Sid 6.7
Member
Join Date: Oct 2007
Old 12-13-2007 , 17:47   Re: Power Auto Responder / Power Macros 2007
Reply With Quote #7

Thanks guys!
I think this has been my biggest victim of scope creep ever. It came a long way that's for sure

>> pcvars were a good suggestion, took less than a minute to do so the new code is uploaded now (it reset my dl count - bummer)

>> enum - I just checked the pawn lang ref and it looks doable keeping my binary returns
enum (<<= 1) {PA = 1, PB, PC} ...
so I'll put it on my plate for later, im making a list of all the stuff I'm gonna do.

tramp:
yes you can autorespond with voice statements to players with vox by editing the powerautoresponder.ini file. Check the PDF doc for all the sounds. ex:
<some regex trigger phrase>
i will arrest you;vox;player

If you are looking to talk to players with speech get Ludwig Van's Easy Speech.
__________________
Power Votes Core << Democracy at your fingertips
Get Mortal Kombat Miscstats for CS
[DeathTV] Sid 6.7 is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 12-14-2007 , 06:20   Re: Power Auto Responder / Power Macros 2007
Reply With Quote #8

Quote:
enum (<<= 1) {PA = 1, PB, PC} ...
Well that's the way I do it.

Looks a very cool plugin, really.
purple_pixie is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 12-14-2007 , 12:56   Re: Power Auto Responder / Power Macros 2007
Reply With Quote #9

I like the idea!
__________________
M249-M4A1 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 01-03-2008 , 20:28   Re: Power Auto Responder / Power Macros 2007
Reply With Quote #10

Wow, good job man Very dynamic
__________________
bmann_420 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode