Jump to content

Chat Trigger Auto-Responder (v1.1 - 2014-03-15)


ImportBot

Recommended Posts

Originally Posted by blactionhero*:

 

Description

Based on CServerRulesOnRequest by Lorax74.

 

Allows the creation and editing of multiple chat trigger keywords to which multi-line

responses may be associated. The responses are delivered privately to the person who

activated the trigger via admin.say or admin.yell, or to everyone if the "Send to all_"

option is enabled for that specific trigger.

 

Instructions

 

Step 1: Set the number of chat triggers you want to configure.

 

Step 2: Configure the triggers!

Chat trigger: - Sets the chat trigger to match. Ex.: @rules

Send to all? - Set to On to output to everyone, or Off to output to only the person who triggered.

Yell output? - Set to On to admin.yell the Output text, or Off to admin.say it.

Delay before sending output: - Seconds after a trigger to wait before sending the Output text. Ex.: 1

How long to show yelled output: - Seconds to display each yelled Output text. Ex.: 8

Delay between each line of output: - Seconds to wait between sending each line of Output text. Ex.: 1

Output text: - The lines of text sent when the Chat Trigger is matched. Ex.: No hacks allowed!

 

Step 3: Profit!

 

Changelog

 

v1.1 - 15/3/2014 (EBassie Edit)

- Fixed plugin not showing in Procon

- Fixed Yell to correct display time of YELLED messages for BC2, BF3 & BF4

- Added chat responses to Procon chat tab

 

v1.06 - 10/8/2010

- Added the option to output to everyone instead of just to strSpeaker per EBastard's suggestion.

- Made the trigger words case insensitive plugin-wide per EBastard's other suggestion. Might make this a per-trigger option in the future, but don't want to have too many mostly-unused options for each trigger keyword.

 

v1.05 - 10/7/2010

- Added this post's URL to a few reference points in the plugin. (;

 

v1.04 - 10/7/2010

- Plugin released.

 

Download:

Version 1.1: ChatTriggerAutoResponder-1.1.zip

Version 1.06: ChatTriggerAutoResponder-1_06.zip

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 88
  • Created
  • Last Reply

Top Posters In This Topic

Originally Posted by EBassie*:

 

Nice plugin! Thanks for making it! :smile:

 

Got a question though:

Is it possible to say or yell it to all players?

 

example:

player x says: again 40MMGL spam

Server says to all players as warning: Do not spam with 40MMGL! You will be kicked.

 

Edit:

I edited some of the code to make it possible, but it would be great if you could make it an option per trigger.

 

Here's my edit:

 

YELL

Code:

//Original CODE
this.ExecuteCommand("procon.protected.tasks.add", "ChatTriggerAutoResponder", t_delay.ToString(), "1", "1", "procon.protected.send", "admin.yell", line, t_displayTime.ToString(), "player", strSpeaker);

//New CODE
this.ExecuteCommand("procon.protected.tasks.add", "ChatTriggerAutoResponder", t_delay.ToString(), "1", "1", "procon.protected.send", "admin.yell", line, t_displayTime.ToString(), "all");
SAY

Code:

//Original CODE
this.ExecuteCommand("procon.protected.tasks.add", "ChatTriggerAutoResponder", t_delay.ToString(), "1", "1", "procon.protected.send", "admin.say", line, "player", strSpeaker);
									
//New CODE									
this.ExecuteCommand("procon.protected.tasks.add", "ChatTriggerAutoResponder", t_delay.ToString(), "1", "1", "procon.protected.send", "admin.say", line, "all");
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by EBassie*:

 

Got another question:

 

is it possible to make the trigger case INsensitive?

So we don't have to make a trigger for 40mmgl and 40MMGL?

 

EDIT

Found a way to fix it myself by altering this line:

Code:

Match mMatch;
//mMatch = Regex.Match(strMessage, t_isItATrigger);
mMatch = Regex.Match(strMessage, t_isItATrigger, RegexOptions.IgnoreCase);
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by blactionhero*:

 

Alright you EBastards, I went ahead and made your suggested changes. Very good suggestions, and thank you for posting the code too - made it much faster. ;D

 

Let me know if you'd like to see anything else or if you have any issues with the plugin.

* Restored post. It could be that the author is no longer active.
Link to comment
  • 4 weeks later...

Originally Posted by FooKaa*:

 

Hi m8...

 

Tried this on MOH and works perfectly except 1 thing.....

 

The time between messages does not work, it just spams all the messages 1 after the other at high speed lol...

 

Any chance of a fix on this possible ?

 

If you could post some code to add or change i can change it my self and let you know if it works ?

 

Thanks in advance :biggrin:

* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 weeks later...

Originally Posted by blactionhero*:

 

FooKaa: Try setting the 'Delay between each line of output:' field to whatever you currently have it set at, times 1000.

 

For instance, if you want the delay between messages to be 5 seconds then set this field to 5000. 10 seconds would be 10000.

 

I would test this myself, but I don't own a copy of MoH! There are a few annoying differences between BFBC2 and MoH, and your problem might be the effect of one of them. Please let me know if this yields the desired effect. This plugin is due for a small update anyhow. (:

* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 months later...

Originally Posted by ToM666*:

 

Hi guys, I replied to this thread earlier and it seems to have been deleted?

If it has becuase I am breaking some forum rules, please let me know so I don't keep having to type the same thing over and over. If it is a forum bug then sorry if I was jumping to assumptions :biggrin:

 

My original post simply asked if anyone had found a fix for the message delay not working in this plugin.

 

At the moment I have 6 lines of text that are triggerred by the command "@rules" and they appear all at once.

I'd like them to appear with a 6 second delay between each line.

 

I have tried putting in 6000 but it didn't work.

 

Thanks Guys

 

ToM

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Phogue*:

 

Hi guys, I replied to this thread earlier and it seems to have been deleted?

If it has becuase I am breaking some forum rules, please let me know so I don't keep having to type the same thing over and over. If it is a forum bug then sorry if I was jumping to assumptions :biggrin:

Migration to new host phogue.net/forum/viewtopic.php_f=11&t=2061*
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Phil_K*:

 

Hi.

 

At the moment I have 6 lines of text that are triggerred by the command "@rules" and they appear all at once.

I'd like them to appear with a 6 second delay between each line.

 

I have tried putting in 6000 but it didn't work.

The time between lines is is only used with yell, because if not you only see the last line.

Using say ignores time between lines and display time because you can resize your chat window.

 

Well, one feature request:

- add custom commands to the help function of the BasicInGameInfo plugin

 

Greets

Phil.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ToM666*:

 

Hi.

 

 

 

The time between lines is is only used with yell, because if not you only see the last line.

Using say ignores time between lines and display time because you can resize your chat window.

 

Well, one feature request:

- add custom commands to the help function of the BasicInGameInfo plugin

 

Greets

Phil.

Okay mate, thanks for letting me know.

 

Regards

 

Tom

* Restored post. It could be that the author is no longer active.
Link to comment
  • 11 months later...
  • 4 months later...

Originally Posted by Zycho*:

 

Hello Guys,

i have a bf3 server and want to use this plugin, but there is no way to display anything i paste...

In Console the plugin is enabled, but nothing...

 

Settings:

Chat Trigger : @slots

yell output: NO

send to all: NO

delay output : 2000

how long yell: 4000

delay line: 2000

 

Output Text:

[0] fbdggg

[1] hrhrthrtj

 

I try:

@slots, !say @slots what i am doing wrong_?

* Restored post. It could be that the author is no longer active.
Link to comment
  • 5 weeks later...

Originally Posted by purebattlefield*:

 

I was wondering if anyone is still working on this plugin. If so, or if anyone knows about code, is there a way to put in a line break into the message? In insane limits you can put "How are you today_/nHope everything is going well!" and it will come out in a single two line yell. We like our messages to be a single yell message that stays on the screen for 20 seconds, instead of a series of one line yells.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Wolf68k*:

 

I'm not sure if this is a BF3 thing or not but on our server there are 2 issues, 1 of them has a work-around that works. Both issues involve using the Yell option.

 

The easy one, the one with the work around is this.

We have have 7 lines to display for rules. If those are the only 7 lines then for whatever reason the last line never disappears it just stays on the screen until the round ends no matter what the display time is.

If there is another trigger set that only has 1 line then it will show and go away. I haven't tried any other number of lines between 1 and 7 to find the fewest number of lines before it won't stay on the screen.

The fix was to add a blank line after the last line so it looks like there is an 8th line.

 

The other more serious problem is the time it really shows on the screen.

We found that if we set the display time to anything more than 999 the display time double for each line after the 2nd.

So for example the display time is 1000, lines 1 and 2 are 1 second display but line 3 is 2 seconds, 4 is 4 seconds, and so on.

We originally had it set for 5000/5seconds which resulted in the 7th line being up for about 1-2minutes

* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 months later...

Originally Posted by PatPgtips*:

 

im having an issue with this plugin since the last patch

 

i noticed that i wasnt getting any chat triggered upon looking there was 16 chat triggers and they all had Trigger Word in it as the trigger looks as if it was reset somehow i tried copying the text from an old config file and replacing the chat and restarting the layer

 

once the layer restarted i was back to the same all triggers were back to Trigger Word and all other settings at default i then manualy added the triggers again and found them to be working ingame so was happy to resolve the issue

 

but after restarting the layer its back to the same again i have tried this on 2 different layer hosts with the same result and baffled now to what is happening

 

is anyone else having the same issue or can you point me to something else that will do the same job as i need this working

 

thanks in advance

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Phil_K*:

 

Hi.

 

Just change to plugin loading style Procon uses.

If you see the release notes to 1.4.0.1 you'll find the command to be placed into the procon.cfg or you can switch that using the options dialog on the "Advanced" tab.

 

Greets

Phil.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PatPgtips*:

 

thanks phil

 

i tried changing the setting in procon but after rebooting my layer the settings went back to default again

 

i had a look at the procon.cfg and ive added this command to my layer procon.cfg

procon.private.options.UsePluginOldStyleLoad True

 

i will let you know how i get on after adding the triggers again and doing a layer restart

* Restored post. It could be that the author is no longer active.
Link to comment
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.