Jump to content

ProconRulz V44j1 - weapon limits and other event-triggered admin actions


ColColonCleaner

Recommended Posts

Originally Posted by GR101*:

 

Try this:

Code:

On Init
  If %ymd% contains _01_;Set %server_month% Jan
  If %ymd% contains _02_;Set %server_month% Feb
  If %ymd% contains _03_;Set %server_month% Mar
  If %ymd% contains _04_;Set %server_month% Apr
  If %ymd% contains _05_;Set %server_month% May
  If %ymd% contains _06_;Set %server_month% Jun
  If %ymd% contains _07_;Set %server_month% Jul
  If %ymd% contains _08_;Set %server_month% Aug
  If %ymd% contains _09_;Set %server_month% Sep
  If %ymd% contains _10_;Set %server_month% Oct
  If %ymd% contains _11_;Set %server_month% Nov
  If %ymd% contains _12_;Set %server_month% Dec

  If %ini_vars_month% != %server_month%;Set %ini_vars_month% %server_month%;Set %ini_kill_melee% 0
  #(or %ini_kill% 0 if u dont have any other kill vars)

On Kill;Weapon Melee
  Incr %ini_kill_melee[%p%]%
    If %ini_kill_melee[%p%]% >= 55;Set %ini_kill_melee[%p%]% 0
    If %ini_kill_melee[%p%]% == 55;Yell 3 %p% Message
    If %ini_kill_melee[%p%]% == 50;Yell 3 %p% Message
    If %ini_kill_melee[%p%]% == 49;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 48;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 47;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 46;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 45;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 40;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 35;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 30;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 25;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 20;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 15;Say 3 %p% Message
    If %ini_kill_melee[%p%]% == 10;Say 3 %p% Message
    If %ini_kill_melee[%p%]% ==  5;Say 3 %p% Message
Cheers Chilace i'll give that ago, thanks.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Beton*:

 

Dear All,

 

I am right now scratching my head if following would be possible with ProconRulz.

 

Make an automatic change after every round as follows:

 

Round 1: Conquest large - Vehicles spawn normally

Round 2: Conquest larger - No Vehicles

 

It would be even better if there was an automatic message announcing vehicles on or off.

Could that be included into the "!Rules" text thats already implemented?

 

Help on that matter would be much appreciated!

 

Thanks!

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

Originally Posted by spatieman*:

 

some can tell me what this message is..

ProconRulz: Unrecognised rule

 

all rules are working, checked all, no errors.

i know this is a old one, but i always forgot to ask it.

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

Originally Posted by spatieman*:

 

Dear All,

 

I am right now scratching my head if following would be possible with ProconRulz.

 

Make an automatic change after every round as follows:

 

Round 1: Conquest large - Vehicles spawn normally

Round 2: Conquest larger - No Vehicles

 

It would be even better if there was an automatic message announcing vehicles on or off.

Could that be included into the "!Rules" text thats already implemented?

 

Help on that matter would be much appreciated!

 

Thanks!

try ultimate mapmanager for that.

infantery mode it was.

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

Originally Posted by spatieman*:

 

u have to set it up as alt for the map rotation.

dunno how many maps u have.

we had 15 maps or so, on conquest bazaar i set infantery only ,so NO vehicle at all.

 

u need to toy a bit with it ,it is prety complex ,but once running it does some serious magic.

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

Originally Posted by RAZOR_HD*:

 

hi hope someone can help me please.can anyone tell me if this is done right.what it does is after 20 !revolver kills you can unlock phantom bow.its hard for me to test as iam on my own.thankyou

 

 

########################BOWSTART################## ######

 

On KIll;If %wk% contains U_SW40;Incr %revolver%

On KIll;If %wk% contains U_Taurus44;Incr %revolver%

On KIll;If %wk% contains U_Unica6;Incr %revolver%

On KIll;If %wk% contains U_MP412Rex;Incr %revolver%

On KIll;If %revolver% == 20;Yell %p% UNLOCKED PHANTOM BOW !REVOLVER

On Kill;If %revolver%

 

On Kill;If %nbow% > 1;PlayerSay %P% YOU NEED 20 !REVOLVER KILLS TO UNLOCK !BOW WARNING [%c%/2];Kick 20 !REVOLVER KILLS TO UNLOCK BOW

On Kill;If %nbow% > 0;PlayerSay %P% YOU NEED 20 !REVOLVER KILLS TO UNLOCK !BOW WARNING [%c%/2];Kill 100

 

On Say;Text !BOW;PlayerSay %p% YOU NEED 20 !REVOLVER KILLS TO UNLOCK BOW! YOUR KILLS! [%revolver%/20]

 

On Say;Text !REVOLVER;

PlayerSay .................!REVOLVER....................

PlayerSay SW40 UNICA 6 M412 REX

PlayerSay 44 MAGNUM

PlayerSay .................................................. ........

 

########################BOWEND#################### #########

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

Originally Posted by GR101*:

 

Just need some assistance with resetting this script every round.

 

Code:

On Round; Set %melee_kills% 0
On Round; If %ts1% + %ts2% >= 40;Set %server_global_melee_challenge% 1
On Round; Set %server_global_melee_completed% 0

If %server_global_melee_challenge% == 1;If %server_global_melee_completed% == 0
	On Kill;Weapon Melee,U_Knife
     		Incr %melee_kills%
			If %melee_kills% >= 55;Set %melee_kills% 0;Set %server_global_melee_completed% 1
			If %melee_kills% == 55;Yell 20 !KNIFE - %p% has won 1 MONTH VIP SLOT!;Log ^b^2!KNIFE - KNIFE CHALLENGE COMPLETED! - %p% has won 1 MONTH VIP SLOT ^0^n;Set %ini_MeleeChallengeCompleted_%p%-DATE%ymd%-TIME%hms%% [%p%] %melee_kills%/55_completed__%p%_has_won_a_MONTH_VIP_SLOT____DEBUG_timestamp_%seconds%_/_86400_+31_
			If %melee_kills% == 54;Say %p% made 54 melee kills (1 more needed)
			If %melee_kills% == 53;Say %p% made 53 melee kills (2 more needed)
			If %melee_kills% == 52;Say %p% made 52 melee kills (3 more needed)
			If %melee_kills% == 51;Say %p% made 51 melee kills (4 more needed)
			If %melee_kills% == 50;Say %p% made 50 melee kills (5 more needed)
			If %melee_kills% == 40;Say %p% made 40 melee kills (15 more needed)
			If %melee_kills% == 30;Say %p% made 30 melee kills (25 more needed)
			If %melee_kills% == 20;Say %p% made 20 melee kills (35 more needed)
			If %melee_kills% == 10;Say %p% made 10 melee kills (45 more needed)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by maxdralle*:

 

hi hope someone can help me please.can anyone tell me if this is done right.what it does is after 20 !revolver kills you can unlock phantom bow.its hard for me to test as iam on my own.thankyou

 

 

########################BOWSTART################## ######

 

On KIll;If %wk% contains U_SW40;Incr %revolver%

On KIll;If %wk% contains U_Taurus44;Incr %revolver%

On KIll;If %wk% contains U_Unica6;Incr %revolver%

On KIll;If %wk% contains U_MP412Rex;Incr %revolver%

On KIll;If %revolver% == 20;Yell %p% UNLOCKED PHANTOM BOW !REVOLVER

On Kill;If %revolver%

 

On Kill;If %nbow% > 1;PlayerSay %P% YOU NEED 20 !REVOLVER KILLS TO UNLOCK !BOW WARNING [%c%/2];Kick 20 !REVOLVER KILLS TO UNLOCK BOW

On Kill;If %nbow% > 0;PlayerSay %P% YOU NEED 20 !REVOLVER KILLS TO UNLOCK !BOW WARNING [%c%/2];Kill 100

 

On Say;Text !BOW;PlayerSay %p% YOU NEED 20 !REVOLVER KILLS TO UNLOCK BOW! YOUR KILLS! [%revolver%/20]

 

On Say;Text !REVOLVER;

PlayerSay .................!REVOLVER....................

PlayerSay SW40 UNICA 6 M412 REX

PlayerSay 44 MAGNUM

PlayerSay .................................................. ........

 

########################BOWEND#################### #########

Code:
########################BOWSTART################## ######

On Kill; Weapon U_SW40,U_Taurus44,U_Unica6,U_MP412Rex;
    Incr %revolver%;
    if %revolver% == 20;Yell %p% UNLOCKED PHANTOM BOW !REVOLVER

On Kill;Weapon dlSHTR; If %revolver% < 20;
    if %c% >= 2; Kick 20 !REVOLVER KILLS TO UNLOCK BOW
    PlayerSay %P% YOU NEED 20 !REVOLVER KILLS TO UNLOCK !BOW WARNING [%c%/2];Kill 100

On Say;Text !BOW;PlayerSay %p% YOU NEED 20 !REVOLVER KILLS TO UNLOCK BOW! YOUR KILLS! [%revolver%/20]

On Say;Text !REVOLVER;
    PlayerSay .................!REVOLVER....................
    PlayerSay SW40 UNICA 6 M412 REX
    PlayerSay 44 MAGNUM
    PlayerSay .................................................. ........

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

Originally Posted by maxdralle*:

 

Just need some assistance with resetting this script every round.

 

Code:

On Round; Set %melee_kills% 0
On Round; If %ts1% + %ts2% >= 40;Set %server_global_melee_challenge% 1
On Round; Set %server_global_melee_completed% 0

If %server_global_melee_challenge% == 1;If %server_global_melee_completed% == 0
	On Kill;Weapon Melee,U_Knife
     		Incr %melee_kills%
			If %melee_kills% >= 55;Set %melee_kills% 0;Set %server_global_melee_completed% 1
			If %melee_kills% == 55;Yell 20 !KNIFE - %p% has won 1 MONTH VIP SLOT!;Log ^b^2!KNIFE - KNIFE CHALLENGE COMPLETED! - %p% has won 1 MONTH VIP SLOT ^0^n;Set %ini_MeleeChallengeCompleted_%p%-DATE%ymd%-TIME%hms%% [%p%] %melee_kills%/55_completed__%p%_has_won_a_MONTH_VIP_SLOT____DEBUG_timestamp_%seconds%_/_86400_+31_
			If %melee_kills% == 54;Say %p% made 54 melee kills (1 more needed)
			If %melee_kills% == 53;Say %p% made 53 melee kills (2 more needed)
			If %melee_kills% == 52;Say %p% made 52 melee kills (3 more needed)
			If %melee_kills% == 51;Say %p% made 51 melee kills (4 more needed)
			If %melee_kills% == 50;Say %p% made 50 melee kills (5 more needed)
			If %melee_kills% == 40;Say %p% made 40 melee kills (15 more needed)
			If %melee_kills% == 30;Say %p% made 30 melee kills (25 more needed)
			If %melee_kills% == 20;Say %p% made 20 melee kills (35 more needed)
			If %melee_kills% == 10;Say %p% made 10 melee kills (45 more needed)
it reset automaticlly
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GR101*:

 

it reset automaticlly

It should reset after each round but doesn't and i don't know why.

 

Tried On RoundOver;Set %melee_kills% 0 but that doesn't appear to work also.

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

Originally Posted by jcu3113*:

 

hello!

I have a girlfriend player, when he enters the server, I want him to show in the middle of the game screen: 'beautiful player XXXX into the server, please applaud! 'How should this code be written?

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

Originally Posted by ty_ger07*:

 

hello!

I have a girlfriend player, when he enters the server, I want him to show in the middle of the game screen: 'beautiful player XXXX into the server, please applaud! 'How should this code be written?

I suggest that you read the ProconRulz documentation.

http://www.forsterlewis.com/proconrulz.pdf

The link is also in the first post of this thread.

 

 

On Join;If %p% == XXXX;Yell Beautiful player XXXX joined into the server. Please applaud!

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

Originally Posted by leibhold*:

 

I suggest that you read the ProconRulz documentation.

http://www.forsterlewis.com/proconrulz.pdf

The link is also in the first post of this thread.

 

 

On Join;If %p% == XXXX;Yell Beautiful player XXXX joined into the server. Please applaud!

I was going to say that, but then saw in documentation so lost interest. 8-)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

I want to set the time in the middle of the screen for 10 seconds

Perfect. Well, you can set that in this plugin's settings in your Procon, or you can set different duration values for each rule in the rule itself. Read the documentation linked above. Page 36, item "Yell" provides an explanation. And then again, on page 47, is the following example: "On Say;Text !yell;Yell 5 %targettext%".
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by jcu3113*:

 

hi bro!

I am from China, I found that I am obsessed with procon, but my English is very bad, I need to use translation software, PDF file I will not translate! I need a teacher to guide me to learn proconrulz, can you be my teacher?

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

Originally Posted by XaosBr*:

 

Can someone tell me, If plugin offers killstreak function by weapon?

example: A message that shows how many deaths with a defibrillator when you type !desfib, Which at the end of the game shows the message in the chat how many deaths per weapon configured.

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

Originally Posted by spatieman*:

 

Can someone tell me, If plugin offers killstreak function by weapon?

example: A message that shows how many deaths with a defibrillator when you type !desfib, Which at the end of the game shows the message in the chat how many deaths per weapon configured.

oi, it is posible, but than u have to define each wepon as a own rule set.

adapting the killstreak script could do the trick, but i think it gonne be huge.

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

Originally Posted by Hodor*:

 

Hi guys! Pls help :biggrin:

 

%server_team_score[1]% and %server_team_score[2]%- do not show captured flags in CTF mode BF4 :huh:

%server_team_score[1]% and %server_team_score[2]% - show destroyed objects in OBLITERATION :mad:

 

How to fix CTF mode? :huh:

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

Originally Posted by ty_ger07*:

 

It would be helpful if we could see the rest of your rules to know how you are interpretting and setting the variables %server_team_score[X]% from their parent variables %team_score%. As you may know, %server_team_score[X]% isn't a valid variable on its own and you are creating it (possibly incorrectly) somewhere in your rule code.

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

Originally Posted by Hodor*:

 

It would be helpful if we could see the rest of your rules to know how you are interpretting and setting the variables %server_team_score[X]% from their parent variables %team_score%. As you may know, %server_team_score[X]% isn't a valid variable on its own and you are creating it (possibly incorrectly) somewhere in your rule code.

My rule:

Code:

On Say;Text /xxx;
	PlayerSay %server_team_score[1]%
	PlayerSay %server_team_score[2]%
	MapMode ConquestLarge0;PlayerSay Conquest
	MapMode Capturetheflag0;PlayerSay CTF
	MapMode Obliteration;PlayerSay OB
ProconRulz.cs:

Code:

d. %team_score% aka %server_team_score[<teamid>]%

public virtual void OnServerInfo(CServerInfo serverInfo) {
            List<TeamScore> scores = new List<TeamScore>(); // number of tickets remaining per team
            // EVENT EXCEPTION BLOCK:
            try
            {
                WriteDebugInfo("ProconRulz: *******************OnServerInfo*****************************");
                current_map = this.GetMapByFilename(serverInfo.Map);
                current_map_mode = serverInfo.GameMode;
                if (serverInfo.TeamScores != null)
                {
                    // set up team score variables %server_team_score[1]%, %server_team_score[2]% ...
                    foreach (TeamScore t in serverInfo.TeamScores)
                    {
                        if (t.TeamID == null || t.Score == null)
                        {
                            WriteConsole(String.Format("ProconRulz: OnServerInfo TeamID,Score error [{0}][{1}]", t.TeamID, t.Score));
                            break;
                        }
                        string var_name = "%server_team_score[" + t.TeamID.ToString() + "]%";
                        rulz_vars.set_value(null, var_name, t.Score.ToString(), null);
                    }
                }
            }
            catch (Exception ex)
            {
                WriteConsole("ProconRulz: recoverable exception in OnServerInfo");
                PrintException(ex);
            }
        
        }
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ty_ger07*:

 

According to the ProconRulz documentation, %server_team_score[1]% and %server_team_score[2]% are not valid variables on their own and you need to set them on a trigger periodically to copy over the value of %team_score%.

 

What are the team IDs in the game mode which is giving you problems? Maybe the team ID is not 1 nor 2 in that game mode, but instead is 3 and 4 or something else.

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

Originally Posted by Hodor*:

 

According to the ProconRulz documentation, %server_team_score[1]% and %server_team_score[2]% are not valid variables on their own and you need to set them on a trigger periodically to copy over the value of %team_score%.

 

What are the team IDs in the game mode which is giving you problems? Maybe the team ID is not 1 nor 2 in that game mode, but instead is 3 and 4 or something else.

I tried 3 and 4.

btw Obliteration works fine, CTF not! :sad:

 

UPD:

%team_score% show 0 in CTF mode.

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

Originally Posted by ricky1*:

 

hey guys, i would like to set a NO FLIR/IRNV server, the plugin ProconRulz V44j1 is already installen on procon, but i am maybe to stupid to let it work. Can please someone help me?

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

Originally Posted by MaddoxxGaming*:

 

Hello guy. how can i make a country counter that list the count from player with specific country. Example:

1st Germany 10 Players

2st USA 8 Player

3st United Kingdom 4 Players

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

Originally Posted by Hodor*:

 

i can not rounding for variables..

 

Code:

On Say;Text /iii;
	Set %pervoe% 85;Set %vtoroe% 47
	Set %tretie.1% %pervoe%/%vtoroe%
	PlayerSay %tretie.1%
Displays 1.8xxxxxx in the chat but should show 1.8 . On my Linux procon it shows 1.8 as it should be but on my local procon (windows 10) it shown me 1.8xxxxxx and on G-Portal procon :sad:

 

Is it fixable? Some skilled C# guys please respond :woot:

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

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.