Jump to content

ProconRulz - player !challenge event to win a VIP Slot - BF4 - working code


Recommended Posts

Originally Posted by maxdralle*:

 

Hi thanks for the help. I have had a look around & I find that you created 'BONUS CHALLENGE - kill the viper noob' could you help me change this so it that anyone player from a team with more than x kills triggers the challenge? Instead of it just for vipers?

ANTI KILL STREAK CHALLENGE - stop the kill streak from player xy

 

this script is for proconrulz. the challenge start automatically after a player got an kill steak of 30 kills. the next player (enemy) who kills the player with the high kill streak will win a vip slot for 1 day.

 

REQUIRES: VIP Slot Manager Plugin , min. 16 players on the server

 

 

Code:

#### ANTI KILL STREAK CHALLENGE
# stop the 30+ kill streak to win a vip for 1 day
# req. vip slot manager plugin   ,  min. 16 players on the server

# count streak
On Kill;Incr %server_anti_streak_challenge[%p%]%;Set %server_anti_streak_challenge[%v%]% 0

# start anti kill streak challenge
On Kill; if %ts1% + %ts2% >= 16;
    if %server_anti_streak_challenge[%p%]% == 30; if %server_team_score[2]% > 50; if %server_team_score[1]% > 50; if %server_anti_streak_challenge_playername% == 0; Say ####   ANTI KILL STREAK CHALLENGE   ####; Say Next player who kill's the player %p% to stop his kill streak win's a !VIP SLOT for 1 day!; Yell 15 ANTI KILL STREAK CHALLENGE: Kill the player %p% to win a !VIP SLOT; Set %server_anti_streak_challenge_playername% %p%
    if %server_anti_streak_challenge[%p%]% >= 30; if %server_anti_streak_challenge_playername% == %p%; Incr %anti_streak_rem%; if %anti_streak_rem% >= 4; Yell 5 ANTI KILL STREAK CHALLENGE: Kill the player %p% to win a !VIP SLOT; Set %anti_streak_rem% 0

# set winner
On Kill; if %server_anti_streak_challenge_playername% == %v%; if %pt% != %vt%;
    Yell 10 ANTI KILL STREAK CHALLENGE ENDED: %p% has won a !VIP SLOT; Say ##  ANTI KILL STREAK CHALLENGE ENDED   ##; Say ##  %p% has won a !VIP SLOT for 1 day for stopping the kill streak of %server_anti_streak_challenge_playername%
    Log ^b^2ANTI KILL STREAK CHALLENGE: %p% has won a !VIP SLOT for 1 day (target: %server_anti_streak_challenge_playername%)^0^n; Say /vsm-addvip %p% +1; Set %tmp_anti_streak_challenge_winner% 1; Set %server_anti_streak_challenge_playername% 0 
 
# winner reminder
On Spawn; if %tmp_anti_streak_challenge_winner% == 1; PlayerSay %p% You have won a !VIP SLOT for 1 day!; PlayerYell %p% you have won a !VIP SLOT; Set %tmp_anti_streak_challenge_winner% 2;
On Leave; Set %server_anti_streak_challenge[%p%]% 0; if %server_anti_streak_challenge_playername% == %p%; Say ANTI KILL STREAK CHALLENGE %p% canceled (player left the server); Set %server_anti_streak_challenge_playername% 0


#### ANTI KILL STREAK CHALLENGE - END
script customization:

RED: # of players to enable the challenge

GREEN: kill streak min. kills

BLUE: # of days for the vip slot (1 days)

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

Top Posters In This Topic

Originally Posted by serialkillerz82*:

 

Yes it is messy.

But this works great for BF3 TDM servers, shall work on BF4 to.

objective: use !target to set a kill bounty on him.

kill target 5 time without getting killed your self.

reward: 1 week vip slot.

failsafe for picking a nother player.

failsafe for picking next target on objective complete.

 

Code:

# Challenge system for targets
# VIP manager required !
# R1
On Spawn; ServerFirst; if %ts1% + %ts2% >= 4;say Target system active;say !target for more;set %targetsystem% 1
On Spawn; ServerFirst; if %ts1% + %ts2% < 4;say target system inactive;say need 4 or more players;set %targetsystem% 0

on say;if %targetsystem% = 0;if %text% = !target;playersay Target system disabled, need 4 players
on say;if %targetsystem% = 0;text !target status;playersay Target system disabled, need 4 players
On Say;if %targetsystem% = 0;Text !target;TargetPlayer;playersay Target system disabled, need 4 players

on say;if %targetsystem% = 1;if %text% = !target;if %[%p%]challenge% = 0;playerSay use: !target <part of name>;playersay kill target 5 time without getting killed;playersay WEAPONS ONLY!;End
on say;if %targetsystem% = 1;if %text% = !target;if %[%p%]challenge% = 1;playerSay U have a running target challenge -> !target status
on say;if %targetsystem% = 1;text !target status ; if %[%p%]target% = 0;playersay No running challenge.
on say;if %targetsystem% = 1;text !target status ; if %[%p%]target% = 1;playersay STATUS:;playersay U killed target %[%p%]victim% %[%p%]challenge_target% times

On Say;if %targetsystem% = 1;Text !target;TargetPlayer;if %[%p%]challenge_reward% = 0;if %[%p%]challenge% = 0;playersay accepted:Kill %t% 5 times;playersay without getting killed;set %[%p%]challenge% 1;set %[%p%]target% 1;set %[%p%]victim% %t%
On Say;if %targetsystem% = 1;Text !target;TargetPlayer;if %[%p%]challenge_reward% = 1;playersay Sorry, one challenge each round only
On Say;if %targetsystem% = 1;Text !target;TargetPlayer;if %[%p%]target% = 1;playersay %[%p%]victim% is already your target

# checking if target challenge is complete, and add reward
on kill;damage handgun,lmg,smg,shotgun,assaultrifle,sniperrifle,melee;if %[%p%]target% = 1 ;incr %[%p%]challenge_target% ;playersay killed %[%p%]victim%:%[%p%]challenge_target%/5
on kill;damage handgun,lmg,smg,shotgun,assaultrifle,sniperrifle,melee;if %[%p%]target% = 1 ;if %[%p%]challenge_target% => 5;if %[%p%]challenge_death% = 0;playersay congratz, target challenge complete;say /vsm-addvip %p% +7;set %[%p%]target% 0;set %[%p%]challenge_death% 0;set %[%p%]challenge_target% 0;set %[%p%]challenge% 0;set %[%p%]challenge_reward% 1

# checking for max death
on spawn  ;if %[%p%]target% = 1    ;incr %[%p%]challenge_death%;if %[%p%]challenge_death% => 1;playersay Sorry, challenge cancelled, you died, try again;set %[%p%]target% 0;set %[%p%]challenge_death% 0;set %[%p%]challenge_target% 0;set %[%p%]challenge% 0
Hi Spatieman I have put this on my server (BF4) server had 56 players & im still getting error message "Target system disabled, need 4 players"

 

Any ideas?

 

Thanks

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

Originally Posted by serialkillerz82*:

 

ANTI KILL STREAK CHALLENGE - stop the kill streak from player xy

 

this script is for proconrulz. the challenge start automatically after a player got an kill steak of 30 kills. the next player (enemy) who kills the player with the high kill streak will win a vip slot for 1 day.

 

REQUIRES: VIP Slot Manager Plugin , min. 16 players on the server

 

 

Code:

#### ANTI KILL STREAK CHALLENGE
# stop the 30+ kill streak to win a vip for 1 day
# req. vip slot manager plugin   ,  min. 16 players on the server

# count streak
On Kill;Incr %server_anti_streak_challenge[%p%]%;Set %server_anti_streak_challenge[%v%]% 0

# start anti kill streak challenge
On Kill; if %ts1% + %ts2% >= 16;
    if %server_anti_streak_challenge[%p%]% == 30; if %server_team_score[2]% > 50; if %server_team_score[1]% > 50; if %server_anti_streak_challenge_playername% == 0; Say ####   ANTI KILL STREAK CHALLENGE   ####; Say Next player who kill's the player %p% to stop his kill streak win's a !VIP SLOT for 1 day!; Yell 15 ANTI KILL STREAK CHALLENGE: Kill the player %p% to win a !VIP SLOT; Set %server_anti_streak_challenge_playername% %p%
    if %server_anti_streak_challenge[%p%]% >= 30; if %server_anti_streak_challenge_playername% == %p%; Incr %anti_streak_rem%; if %anti_streak_rem% >= 4; Yell 5 ANTI KILL STREAK CHALLENGE: Kill the player %p% to win a !VIP SLOT; Set %anti_streak_rem% 0

# set winner
On Kill; if %server_anti_streak_challenge_playername% == %v%; if %pt% != %vt%;
    Yell 10 ANTI KILL STREAK CHALLENGE ENDED: %p% has won a !VIP SLOT; Say ##  ANTI KILL STREAK CHALLENGE ENDED   ##; Say ##  %p% has won a !VIP SLOT for 1 day for stopping the kill streak of %server_anti_streak_challenge_playername%
    Log ^b^2ANTI KILL STREAK CHALLENGE: %p% has won a !VIP SLOT for 1 day (target: %server_anti_streak_challenge_playername%)^0^n; Say /vsm-addvip %p% +1; Set %tmp_anti_streak_challenge_winner% 1; Set %server_anti_streak_challenge_playername% 0 
 
# winner reminder
On Spawn; if %tmp_anti_streak_challenge_winner% == 1; PlayerSay %p% You have won a !VIP SLOT for 1 day!; PlayerYell %p% you have won a !VIP SLOT; Set %tmp_anti_streak_challenge_winner% 2;
On Leave; Set %server_anti_streak_challenge[%p%]% 0; if %server_anti_streak_challenge_playername% == %p%; Say ANTI KILL STREAK CHALLENGE %p% canceled (player left the server); Set %server_anti_streak_challenge_playername% 0


#### ANTI KILL STREAK CHALLENGE - END
script customization:

RED: # of players to enable the challenge

GREEN: kill streak min. kills

BLUE: # of days for the vip slot (1 days)

Been testing this for a while now & works perfect! Again thanks for the great work :smile:
* Restored post. It could be that the author is no longer active.
Link to post
  • 1 month later...
  • 11 months later...
On 12/4/2018 at 12:49 AM, ImportBot said:

Originally Posted by serialkillerz82*:

 

Hi Spatieman I have put this on my server (BF4) server had 56 players & im still getting error message "Target system disabled, need 4 players"

 

Any ideas?

 

Thanks

late respons but place this in the first lines # Challenge system for targets
# VIP manager required !
# R1
On Say; ServerFirst; if %targetsystem% == 0; if %ts1% + %ts2% >= 4; say Target system active; say !target for more; set %targetsystem% 1
On Spawn; ServerFirst; if %targetsystem% == 0; if %ts1% + %ts2% < 4; say target system inactive; say need 4 or more players; set %targetsystem% 0

on my server it work finaly ;)

Link to post
  • 1 month later...

Target Challenge!!! working on bf4!!
# Challenge system for targets
# VIP manager required !
# R1

On Say; ServerFirst; if %server_global_target_challenge% = 0; if %ts1% + %ts2% >= 6; Say *** TARGET SYSTEM ACTIVE ***; Say !TARGET FOR MORE INFO; set %server_global_target_challenge% 1
On Spawn; ServerFirst; if %server_global_target_challenge% = 0; if %ts1% + %ts2% < 6; Say *** TARGET SYSTEM INACTIVE ***; Say NEED 6 OR MORE PLAYERS; set %server_global_target_challenge% 0

On Say; if %server_global_target_challenge% = 0; if %text% = !target; playerSay Target system disabled, need 6 players
On Say; if %server_global_target_challenge% = 0; text !target status; playerSay Target system disabled, need 6 players
On Say; if %server_global_target_challenge% = 0; text !target; TargetPlayer; playerSay Target system disabled, need 6 players

On Say; if %server_global_target_challenge% = 1; if %text% = !target; if %[%p%]challenge% = 0; PlayerSay use: !target <part of name>;PlayerSay kill target 4 time without getting killed; PlayerSay To win Vip for 7 DAYS; PlayerSay WEAPONS ONLY!; End
On Say; if %server_global_target_challenge% = 1; if %text% = !target; if %[%p%]challenge% = 1; PlayerSay U have a running target challenge -> !target status
On Say; if %server_global_target_challenge% = 1; text !target status ; if %[%p%]target% = 0; PlayerSay No running challenge.
On Say; if %server_global_target_challenge% = 1; text !target status ; if %[%p%]target% = 1; PlayerSay STATUS:; PlayerSay U killed target %[%p%]victim% %[%p%]challenge_target% times

On Say; if %server_global_target_challenge% = 1; Text !target; TargetPlayer; if %[%p%]challenge_reward% = 0; if %[%p%]challenge% = 0; PlayerYell accepted:Kill %t% 4 times; PlayerSay without getting killed; set %[%p%]challenge% 1; set %[%p%]target% 1; set %[%p%]victim% %t%
On Say; if %server_global_target_challenge% = 1; Text !target; TargetPlayer; if %[%p%]challenge_reward% = 1; PlayerSay Sorry, one challenge each round only
On Say; if %server_global_target_challenge% = 1; Text !target; TargetPlayer; if %[%p%]target% = 1; PlayerSay %[%p%]victim% is already your target

# checking if target challenge is complete, and add reward
On Kill; damage handgun,lmg,smg,shotgun,assaultrifle,sniperrifle,melee; if %[%p%]target% = 1 ; incr %[%p%]challenge_target% ; PlayerSay killed %[%p%]victim%:%[%p%]challenge_target%/4
On Kill; damage handgun,lmg,smg,shotgun,assaultrifle,sniperrifle,melee; if %[%p%]target% = 1 ; if %[%p%]challenge_target% => 4; if %[%p%]challenge_death% = 0;PlayerSay congratz, target challenge complete; Say /vsm-addvip %p% +7; set %[%p%]target% 0; set %[%p%]challenge_death% 0; set %[%p%]challenge_target% 0; set %[%p%]challenge% 0; set %[%p%]challenge_reward% 1

# checking for max death
On Spawn  ; if %[%p%]target% = 1    ; incr %[%p%]challenge_death%; if %[%p%]challenge_death% => 1; PlayerSay Sorry, challenge cancelled, you died, try again; set %[%p%]target% 0; set %[%p%]challenge_death% 0; set %[%p%]challenge_target% 0; set %[%p%]challenge% 0
 

Edited by k3vin33
Link to post
  • 5 months later...
On 12/23/2018 at 3:01 PM, ImportBot said:

Originally Posted by serialkillerz82*:

 

Been testing this for a while now & works perfect! Again thanks for the great work :smile:

Looks great, but how do I get this code into vip slot manager??

 

#### ANTI KILL STREAK CHALLENGE
# stop the 30+ kill streak to win a vip for 1 day
# req. vip slot manager plugin   ,  min. 16 players on the server

# count streak
On Kill;Incr %server_anti_streak_challenge[%p%]%;Set %server_anti_streak_challenge[%v%]% 0

# start anti kill streak challenge
On Kill; if %ts1% + %ts2% >= 16;
    if %server_anti_streak_challenge[%p%]% == 30; if %server_team_score[2]% > 50; if %server_team_score[1]% > 50; if %server_anti_streak_challenge_playername% == 0; Say ####   ANTI KILL STREAK CHALLENGE   ####; Say Next player who kill's the player %p% to stop his kill streak win's a !VIP SLOT for 1 day!; Yell 15 ANTI KILL STREAK CHALLENGE: Kill the player %p% to win a !VIP SLOT; Set %server_anti_streak_challenge_playername% %p%
    if %server_anti_streak_challenge[%p%]% >= 30; if %server_anti_streak_challenge_playername% == %p%; Incr %anti_streak_rem%; if %anti_streak_rem% >= 4; Yell 5 ANTI KILL STREAK CHALLENGE: Kill the player %p% to win a !VIP SLOT; Set %anti_streak_rem% 0

# set winner
On Kill; if %server_anti_streak_challenge_playername% == %v%; if %pt% != %vt%;
    Yell 10 ANTI KILL STREAK CHALLENGE ENDED: %p% has won a !VIP SLOT; Say ##  ANTI KILL STREAK CHALLENGE ENDED   ##; Say ##  %p% has won a !VIP SLOT for 1 day for stopping the kill streak of %server_anti_streak_challenge_playername%
    Log ^b^2ANTI KILL STREAK CHALLENGE: %p% has won a !VIP SLOT for 1 day (target: %server_anti_streak_challenge_playername%)^0^n; Say /vsm-addvip %p% +1; Set %tmp_anti_streak_challenge_winner% 1; Set %server_anti_streak_challenge_playername% 0 
 
# winner reminder
On Spawn; if %tmp_anti_streak_challenge_winner% == 1; PlayerSay %p% You have won a !VIP SLOT for 1 day!; PlayerYell %p% you have won a !VIP SLOT; Set %tmp_anti_streak_challenge_winner% 2;
On Leave; Set %server_anti_streak_challenge[%p%]% 0; if %server_anti_streak_challenge_playername% == %p%; Say ANTI KILL STREAK CHALLENGE %p% canceled (player left the server); Set %server_anti_streak_challenge_playername% 0


#### ANTI KILL STREAK CHALLENGE - ENDscript customization:
RED: # of players to enable the challenge

GREEN: kill streak min. kills

BLUE: # of days for the vip slot (1 days)

Been testing this for a while now & works perfect! Again thanks for the great work :smile:

 

Edited by otbrave
Link to post
  • 10 months later...

Hello There,

is it Possible to make more than 1 Challenge at the Same time?
I want the First Challenge with the GUN Kills 10x10 and the Option to start a Challenge manuel with !challange kill @playername 10 times or something like this.
Greetings.

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 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.
      • 1 reply
    • 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
    • Hi All,

      So seeing as Venice Unleased is released, I'm looking into if I should offer game hosting for it. I would like some feedback on this subject.

      VU - Experience Battlefield 3 like never before! (veniceunleashed.net)
      • 3 replies
    • So as the topic title says, should EZRCON offer general web hosting services?
      • 1 reply
    • 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
×
×
  • 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.