Jump to content

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


ImportBot

Recommended Posts

Originally Posted by Sp0rAdiC*:

 

here it is. each player can win one time per day:

Code:

#Sample Code for ProconRulz + VIP Slot Manager Plugin (perform 20 Knife kills = VIP Slot for 2 days. each player can win max. 1x in 24 hours):

On Kill; Damage Melee; PlayerFirst; if %seconds% / 3600 >= %ini_challengeknife_%p%%; Set %tmp_challenge_knife% 1;
On Kill; Damage Melee; if %c% == 1; if %tmp_challenge_knife% == 1; Say Get 20 Knife kills in 1 round for a 2 day VIP SLOT; Say Knife Challenge Progress: %p% (1/20)
On Kill; Damage Melee; if %c% == 5; if %tmp_challenge_knife% == 1; Say Knife Challenge Progress: %p% (5/20)
On Kill; Damage Melee; if %c% == 10; if %tmp_challenge_knife% == 1;Say Knife Challenge Progress: %p% (10/20)
On Kill; Damage Melee; if %c% == 20; if %tmp_challenge_knife% == 1; Say Knife Challenge Complete! %p% (20/20); Yell Knife Challenge: %p% has won a VIP SLOT for 2 days; Say /vsm-addvip %p% +2; Set %ini_challengeknife_%p%% %seconds% / 3600 + 24; Set %server_challenge_knife_winners% %server_challenge_knife_winners%  %p%
On RoundOver; if %server_challenge_knife_winners% != 0;  if %server_challenge_knife_winners% != none; Say Knife Challenge Winners:  %server_challenge_knife_winners%
Awesome! thank you.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 70
  • Created
  • Last Reply

Originally Posted by GR101*:

 

Thanks Sp0rAdiC and maxdralle for the suggestions however, maxdralle I like your code below because it works really well for weapon challenge which I use, also it has 20 players to start, got the in-game messages "!CHALLENGE disabled - need more players, maybe next round", "!CHALLENGE: Make kills with each ~ to win a VIP SLOT.", logs completed challenge to proconrulz ini file and more importantly it resets after each, my version of this script (posted elsewhere here in the forums) will not reset after each round and I don't know why.

 

Anyway could you do a cut down version of the code below with all the feature present below e.g.

20 players to stat,in-game messages e.g. need more players, win a VIP SLOT, !CHALLENGE enable, Each round new challenge, has won a VIP SLOT_)

 

just for one weapon without weapon rotation and log winner to proconrulz ini file, plus one addition feature one winner per round and command could be !knife

 

 

Code:

####       !CHALLENGE        #########
# win vip slot
# req. min. 20 players on round start to enable the weapon challenge
# store winners in proconrulz.ini (ftp: /configs/serverip_proconrulz.ini). SERVER-ADMIN must add and remove VIP slots manual!
#
# Preset 1: Shotgun (10x10 kills -> 10 kills with each shotgun)
# Preset 2: Handgun (10x10 kills)
# Preset 3: Sniper/DMR (10x10 kills)
# Preset 4: LMG (10x10 kills)
# Preset 5: PDW (10x10 kills)

On Say; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 20; Set %server_global_challenge_preset% %ini_challenge_preset%; Incr %server_global_challenge_preset%; Set %ini_challenge_preset% %server_global_challenge_preset%; Say ***   !CHALLENGE enable   ***; If %server_global_challenge_preset% > 5; Set %server_global_challenge_preset% 1; Set %ini_challenge_preset% 1
On Spawn; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 20; Set %server_global_challenge_preset% %ini_challenge_preset%; Incr %server_global_challenge_preset%; Set %ini_challenge_preset% %server_global_challenge_preset%; Say ***   !CHALLENGE enable   ***; If %server_global_challenge_preset% > 5; Set %server_global_challenge_preset% 1; Set %ini_challenge_preset% 1

# count kills and points
On Kill; If %server_global_challenge_preset% != 0;
    Set %tmp_challenge_step2% 0
    If %server_global_challenge_preset% == 1; Damage Shotgun; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% Shotgun; Set %tmp_challenge_step2% 1
    If %server_global_challenge_preset% == 2; Damage Handgun; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% Handgun; Set %tmp_challenge_step2% 1
    If %server_global_challenge_preset% == 3; Damage SniperRifle,DMR; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% Sniper/DMR; Set %tmp_challenge_step2% 1
    If %server_global_challenge_preset% == 4; Damage LMG; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% LMG; Set %tmp_challenge_step2% 1
    If %server_global_challenge_preset% == 5; Damage SMG; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% PDW; Set %tmp_challenge_step2% 1
    If %tmp_challenge_step2% == 1; Incr %challenge_player_weapon_kills[%wk%]%; If %challenge_player_weapon_kills[%wk%]% == %challenge_kills_needed%; Incr %challenge_player_points[%p%]%; Set %challenge_player_weapon_mastered[%p%][%challenge_player_points[%p%]%]% %w%; Say %p% !CHALLENGE: %tmp_msg_weapon_typ% [%challenge_player_points[%p%]%/10]; PlayerSay %p%: %w% completed - change your %tmp_msg_weapon_typ% to win a VIP SLOT; PlayerYell 5 %p% ! CHALLENGE: [%challenge_player_points[%p%]%/10] - %w% completed; If %challenge_player_points[%p%]% == 10; Say !CHALLENGE: %tmp_msg_weapon_typ% [%challenge_player_points[%p%]%/10] completed! - %p% has won a VIP SLOT !!!; Yell 20 ! CHALLENGE - %p% has won a VIP SLOT!; Log ^b^2!CHALLENGE %tmp_msg_weapon_typ% [%challenge_player_points[%p%]%/10] completed! - %p% has won a VIP SLOT ^0^n; Set %ini_challengeCompleted_%p%-DATE%ymd%-TIME%hms%% CHALLENGE_%tmp_msg_weapon_typ%_%challenge_player_points[%p%]%/10_completed__%p%_has_won_a_VIP_SLOT____DEBUG_timestamp_%seconds%_/_86400_+31_+_%tmp_rem_vip_days%; 

# in-game-commands
On Say; Text !challenge,!chal,!chel; If %server_global_challenge_preset% != 0;
    PlayerFirst; Set %tmp_space% ", "
    if %challenge_player_points[%p%]% >= 1; Set %tmp_mastered_line1% %challenge_player_weapon_mastered[%p%][1]%; If %challenge_player_points[%p%]% >= 2; Set %tmp_mastered_line1% %tmp_mastered_line1% %tmp_space% %challenge_player_weapon_mastered[%p%][2]%; If %challenge_player_points[%p%]% >= 3; Set %tmp_mastered_line1% %tmp_mastered_line1% %tmp_space% %challenge_player_weapon_mastered[%p%][3]%
    If %challenge_player_points[%p%]% >= 4; Set %tmp_mastered_line2% %challenge_player_weapon_mastered[%p%][4]%; If %challenge_player_points[%p%]% >= 5; Set %tmp_mastered_line2% %tmp_mastered_line2% %tmp_space% %challenge_player_weapon_mastered[%p%][5]%; If %challenge_player_points[%p%]% >= 6; Set %tmp_mastered_line2% %tmp_mastered_line2% %tmp_space% %challenge_player_weapon_mastered[%p%][6]%
    If %challenge_player_points[%p%]% >= 7; Set %tmp_mastered_line3% %challenge_player_weapon_mastered[%p%][7]%; If %challenge_player_points[%p%]% >= 8; Set %tmp_mastered_line3% %tmp_mastered_line3% %tmp_space% %challenge_player_weapon_mastered[%p%][8]%; If %challenge_player_points[%p%]% >= 9; Set %tmp_mastered_line3% %tmp_mastered_line3% %tmp_space% %challenge_player_weapon_mastered[%p%][9]%; If %challenge_player_points[%p%]% >= 10; Set %tmp_mastered_line3% %tmp_mastered_line3 %tmp_space% %challenge_player_weapon_mastered[%p%][10]%
    If %server_global_challenge_preset% == 1; PlayerSay %p% !CHALLENGE: Shotgun [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Shotgun"; Set %challenge_kills_needed% 10
    If %server_global_challenge_preset% == 2; PlayerSay %p% !CHALLENGE: Handgun [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Handgun"; Set %challenge_kills_needed% 10
    If %server_global_challenge_preset% == 3; PlayerSay %p% !CHALLENGE: Sniper/DMR [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Sniper/DMR"; Set %challenge_kills_needed% 10
    If %server_global_challenge_preset% == 4; PlayerSay %p% !CHALLENGE: LMG [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "LMG"; Set %challenge_kills_needed% 10
    If %server_global_challenge_preset% == 5; PlayerSay %p% !CHALLENGE: PDW [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "PDW"; Set %challenge_kills_needed% 10
    If %challenge_player_points[%p%]% >= 1; PlayerSay Completed: %tmp_mastered_line1%; If %challenge_player_points[%p%]% >= 4; PlayerSay %tmp_mastered_line2%; If %challenge_player_points[%p%]% >= 7; PlayerSay %tmp_mastered_line3%
    Say !CHALLENGE: Make %challenge_kills_needed% kills with each %tmp_msg_weapon_typ% to win a VIP SLOT. Each round new challenge
On Say; Text !challenge,!chal,!chel; If %server_global_challenge_preset% == 0; Say !CHALLENGE disabled - need more players, maybe next round
I was looking at your 'VIP Slot Manager', I like it but don't want another database (I have a database problem as it is and don't want another). If the functionality can be assigned to different VIP lists then I would be interested. Also, would your 'VIP Slot Manager' integrate into other plugins e.g. MULTIbalancer, Vote Ban, Latency Manager, SquadManager etc...? Now that would be a 'VIP Slot Manager'.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by maxdralle*:

 

Thanks Sp0rAdiC and maxdralle for the suggestions however, maxdralle I like your code below because it works really well for weapon challenge which I use, also it has 20 players to start, got the in-game messages "!CHALLENGE disabled - need more players, maybe next round", "!CHALLENGE: Make kills with each ~ to win a VIP SLOT.", logs completed challenge to proconrulz ini file and more importantly it resets after each, my version of this script (posted elsewhere here in the forums) will not reset after each round and I don't know why.

 

Anyway could you do a cut down version of the code below with all the feature present below e.g.

20 players to stat,in-game messages e.g. need more players, win a VIP SLOT, !CHALLENGE enable, Each round new challenge, has won a VIP SLOT_)

 

just for one weapon without weapon rotation and log winner to proconrulz ini file, plus one addition feature one winner per round and command could be !knife

 

 

Code:

####       !CHALLENGE        #########
# win vip slot
# req. min. 20 players on round start to enable the weapon challenge
# store winners in proconrulz.ini (ftp: /configs/serverip_proconrulz.ini). SERVER-ADMIN must add and remove VIP slots manual!
#
# Preset 1: Shotgun (10x10 kills -> 10 kills with each shotgun)
# Preset 2: Handgun (10x10 kills)
# Preset 3: Sniper/DMR (10x10 kills)
# Preset 4: LMG (10x10 kills)
# Preset 5: PDW (10x10 kills)

On Say; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 20; Set %server_global_challenge_preset% %ini_challenge_preset%; Incr %server_global_challenge_preset%; Set %ini_challenge_preset% %server_global_challenge_preset%; Say ***   !CHALLENGE enable   ***; If %server_global_challenge_preset% > 5; Set %server_global_challenge_preset% 1; Set %ini_challenge_preset% 1
On Spawn; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 20; Set %server_global_challenge_preset% %ini_challenge_preset%; Incr %server_global_challenge_preset%; Set %ini_challenge_preset% %server_global_challenge_preset%; Say ***   !CHALLENGE enable   ***; If %server_global_challenge_preset% > 5; Set %server_global_challenge_preset% 1; Set %ini_challenge_preset% 1

# count kills and points
On Kill; If %server_global_challenge_preset% != 0;
    Set %tmp_challenge_step2% 0
    If %server_global_challenge_preset% == 1; Damage Shotgun; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% Shotgun; Set %tmp_challenge_step2% 1
    If %server_global_challenge_preset% == 2; Damage Handgun; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% Handgun; Set %tmp_challenge_step2% 1
    If %server_global_challenge_preset% == 3; Damage SniperRifle,DMR; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% Sniper/DMR; Set %tmp_challenge_step2% 1
    If %server_global_challenge_preset% == 4; Damage LMG; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% LMG; Set %tmp_challenge_step2% 1
    If %server_global_challenge_preset% == 5; Damage SMG; Set %challenge_kills_needed% 10; Set %tmp_msg_weapon_typ% PDW; Set %tmp_challenge_step2% 1
    If %tmp_challenge_step2% == 1; Incr %challenge_player_weapon_kills[%wk%]%; If %challenge_player_weapon_kills[%wk%]% == %challenge_kills_needed%; Incr %challenge_player_points[%p%]%; Set %challenge_player_weapon_mastered[%p%][%challenge_player_points[%p%]%]% %w%; Say %p% !CHALLENGE: %tmp_msg_weapon_typ% [%challenge_player_points[%p%]%/10]; PlayerSay %p%: %w% completed - change your %tmp_msg_weapon_typ% to win a VIP SLOT; PlayerYell 5 %p% ! CHALLENGE: [%challenge_player_points[%p%]%/10] - %w% completed; If %challenge_player_points[%p%]% == 10; Say !CHALLENGE: %tmp_msg_weapon_typ% [%challenge_player_points[%p%]%/10] completed! - %p% has won a VIP SLOT !!!; Yell 20 ! CHALLENGE - %p% has won a VIP SLOT!; Log ^b^2!CHALLENGE %tmp_msg_weapon_typ% [%challenge_player_points[%p%]%/10] completed! - %p% has won a VIP SLOT ^0^n; Set %ini_challengeCompleted_%p%-DATE%ymd%-TIME%hms%% CHALLENGE_%tmp_msg_weapon_typ%_%challenge_player_points[%p%]%/10_completed__%p%_has_won_a_VIP_SLOT____DEBUG_timestamp_%seconds%_/_86400_+31_+_%tmp_rem_vip_days%; 

# in-game-commands
On Say; Text !challenge,!chal,!chel; If %server_global_challenge_preset% != 0;
    PlayerFirst; Set %tmp_space% ", "
    if %challenge_player_points[%p%]% >= 1; Set %tmp_mastered_line1% %challenge_player_weapon_mastered[%p%][1]%; If %challenge_player_points[%p%]% >= 2; Set %tmp_mastered_line1% %tmp_mastered_line1% %tmp_space% %challenge_player_weapon_mastered[%p%][2]%; If %challenge_player_points[%p%]% >= 3; Set %tmp_mastered_line1% %tmp_mastered_line1% %tmp_space% %challenge_player_weapon_mastered[%p%][3]%
    If %challenge_player_points[%p%]% >= 4; Set %tmp_mastered_line2% %challenge_player_weapon_mastered[%p%][4]%; If %challenge_player_points[%p%]% >= 5; Set %tmp_mastered_line2% %tmp_mastered_line2% %tmp_space% %challenge_player_weapon_mastered[%p%][5]%; If %challenge_player_points[%p%]% >= 6; Set %tmp_mastered_line2% %tmp_mastered_line2% %tmp_space% %challenge_player_weapon_mastered[%p%][6]%
    If %challenge_player_points[%p%]% >= 7; Set %tmp_mastered_line3% %challenge_player_weapon_mastered[%p%][7]%; If %challenge_player_points[%p%]% >= 8; Set %tmp_mastered_line3% %tmp_mastered_line3% %tmp_space% %challenge_player_weapon_mastered[%p%][8]%; If %challenge_player_points[%p%]% >= 9; Set %tmp_mastered_line3% %tmp_mastered_line3% %tmp_space% %challenge_player_weapon_mastered[%p%][9]%; If %challenge_player_points[%p%]% >= 10; Set %tmp_mastered_line3% %tmp_mastered_line3 %tmp_space% %challenge_player_weapon_mastered[%p%][10]%
    If %server_global_challenge_preset% == 1; PlayerSay %p% !CHALLENGE: Shotgun [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Shotgun"; Set %challenge_kills_needed% 10
    If %server_global_challenge_preset% == 2; PlayerSay %p% !CHALLENGE: Handgun [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Handgun"; Set %challenge_kills_needed% 10
    If %server_global_challenge_preset% == 3; PlayerSay %p% !CHALLENGE: Sniper/DMR [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Sniper/DMR"; Set %challenge_kills_needed% 10
    If %server_global_challenge_preset% == 4; PlayerSay %p% !CHALLENGE: LMG [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "LMG"; Set %challenge_kills_needed% 10
    If %server_global_challenge_preset% == 5; PlayerSay %p% !CHALLENGE: PDW [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "PDW"; Set %challenge_kills_needed% 10
    If %challenge_player_points[%p%]% >= 1; PlayerSay Completed: %tmp_mastered_line1%; If %challenge_player_points[%p%]% >= 4; PlayerSay %tmp_mastered_line2%; If %challenge_player_points[%p%]% >= 7; PlayerSay %tmp_mastered_line3%
    Say !CHALLENGE: Make %challenge_kills_needed% kills with each %tmp_msg_weapon_typ% to win a VIP SLOT. Each round new challenge
On Say; Text !challenge,!chal,!chel; If %server_global_challenge_preset% == 0; Say !CHALLENGE disabled - need more players, maybe next round
I was looking at your 'VIP Slot Manager', I like it but don't want another database (I have a database problem as it is and don't want another). If the functionality can be assigned to different VIP lists then I would be interested. Also, would your 'VIP Slot Manager' integrate into other plugins e.g. MULTIbalancer, Vote Ban, Latency Manager, SquadManager etc...? Now that would be a 'VIP Slot Manager'.
your challenge script looks good. i dont know why it will not reset after each round, it does not make sense. can you tell me the your procon layer version and your proconrulz plugin version?

procon_version.png

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

Originally Posted by GR101*:

 

your challenge script looks good. i dont know why it will not reset after each round, it does not make sense. can you tell me the your procon layer version and your proconrulz plugin version?

procon_version.png

Thanks maxdralle, I am running the same version as you, see attached screenshot.

 

I know this is the wrong place to post this but I just can't get it to reset after each round, this script is work in progress:

 

Code:

# Accumulate the Melee count for each player in a var %melee_kills%
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
on spawn;serverfirst;set %melee_kills% 0

## Announce player Melee kills
if %server_global_melee_challenge% == 1;if %server_global_melee_completed% == 0
	on kill;Weapon Melee
     		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 TEST ONLY 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)

# in-game-commands !knife
On Say; Text !knife;If %server_global_melee_challenge% != 0;Say !KNIFE: Make 55 melee kills win one round VIP SLOT. One per round only T&C apply.
On Say; Text !knife;If %server_global_melee_challenge% != 0;If %server_global_melee_completed% != 0;Say !KNIFE: KNIFE CHALLENGE COMPLETED! maybe next round.
On Say; Text !knife;If %server_global_melee_challenge% == 0;Say !KNIFE challenge disabled - need more players, maybe next round.
On Say; Text !knife;playeryell 5 %p% = %melee_kills%/55 melee kills

# debug
On Say; Text !knifed;playeryell 10 Kills =%melee_kills% Challenge set(40) = %server_global_melee_challenge% Challenge completed = %server_global_melee_completed%

Attached Files:

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

Originally Posted by maxdralle*:

 

Thanks maxdralle, I am running the same version as you, see attached screenshot.

 

I know this is the wrong place to post this but I just can't get it to reset after each round, this script is work in progress:

 

Code:

# Accumulate the Melee count for each player in a var %melee_kills%
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
on spawn;serverfirst;set %melee_kills% 0

## Announce player Melee kills
if %server_global_melee_challenge% == 1;if %server_global_melee_completed% == 0
	on kill;Weapon Melee
     		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 TEST ONLY 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)

# in-game-commands !knife
On Say; Text !knife;If %server_global_melee_challenge% != 0;Say !KNIFE: Make 55 melee kills win one round VIP SLOT. One per round only T&C apply.
On Say; Text !knife;If %server_global_melee_challenge% != 0;If %server_global_melee_completed% != 0;Say !KNIFE: KNIFE CHALLENGE COMPLETED! maybe next round.
On Say; Text !knife;If %server_global_melee_challenge% == 0;Say !KNIFE challenge disabled - need more players, maybe next round.
On Say; Text !knife;playeryell 5 %p% = %melee_kills%/55 melee kills

# debug
On Say; Text !knifed;playeryell 10 Kills =%melee_kills% Challenge set(40) = %server_global_melee_challenge% Challenge completed = %server_global_melee_completed%
okay, your script is different. i changed your version a little bit:

 

Code:

# !knife challenge - max. 1 winner per round - vip slot for winners must set manuell by hand

# Accumulate the Melee count for each player in a var %melee_kills%
On Say; ServerFirst; If %server_global_melee_challenge% == 0; if %ts1% + %ts2% >= 40; Say    ***   KNIFE CHALLENGE ENABLED   ***; Set %server_global_melee_challenge% 1
On Spawn; ServerFirst; If %server_global_melee_challenge% == 0; if %ts1% + %ts2% >= 40; Say    ***   KNIFE CHALLENGE ENABLED   ***; Set %server_global_melee_challenge% 1

## Announce player Melee kills
On Kill; Damage Melee; if %server_global_melee_challenge% == 1;if %server_global_melee_completed% == 0
    incr %melee_kills%
    if %melee_kills% == 55;yell 20 !KNIFE - %p% has won a VIP SLOT for 1 Month; Say !KNIFE - KNIFE CHALLENGE COMPLETED! - %p% has won a VIP SLOT for 1 Month; Log ^b^2!KNIFE - KNIFE CHALLENGE COMPLETED! - %p% has won a VIP SLOT for 1 Month^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; ;set %server_global_melee_completed% 1; 
    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)

# in-game-commands !knife
On Say; Text !knife;If %server_global_melee_challenge% != 0;Say !KNIFE: Make 55 melee kills in one round to win a VIP SLOT for 1 Month. Maximal one winner per round!
On Say; Text !knife;If %server_global_melee_challenge% == 1;If %server_global_melee_completed% == 1;Say !KNIFE: KNIFE CHALLENGE COMPLETED! Maximal one winner per round!
On Say; Text !knife;If %server_global_melee_challenge% == 0;Say !KNIFE CHALLENGE disabled - need more players, maybe next round.
On Say; Text !knife;playeryell 5 %p% = %melee_kills%/55 melee kills

# debug _______
#On Say; Text !knifed;playeryell 10 Kills =%melee_kills% Challenge set(40) = %server_global_melee_challenge% Challenge completed = %server_global_melee_completed%
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GR101*:

 

okay, your script is different. i changed your version a little bit:

 

Code:

# !knife challenge - max. 1 winner per round - vip slot for winners must set manuell by hand

# Accumulate the Melee count for each player in a var %melee_kills%
On Say; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 40; Say    ***   KNIFE CHALLENGE ENABLED   ***; Set %server_global_melee_challenge% 1
On Spawn; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 40; Say    ***   KNIFE CHALLENGE ENABLED   ***; Set %server_global_melee_challenge% 1

## Announce player Melee kills
On Kill; Damage Melee; if %server_global_melee_challenge% == 1;if %server_global_melee_completed% == 0
    incr %melee_kills%
    if %melee_kills% == 55;yell 20 !KNIFE - %p% has won a VIP SLOT for 1 Month; Say !KNIFE - KNIFE CHALLENGE COMPLETED! - %p% has won a VIP SLOT for 1 Month; Log ^b^2!KNIFE - KNIFE CHALLENGE COMPLETED! - %p% has won a VIP SLOT for 1 Month^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; ;set %server_global_melee_completed% 1; 
    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)

# in-game-commands !knife
On Say; Text !knife;If %server_global_melee_challenge% != 0;Say !KNIFE: Make 55 melee kills in one round to win a VIP SLOT for 1 Month. Maximal one winner per round!
On Say; Text !knife;If %server_global_melee_challenge% == 1;If %server_global_melee_completed% == 1;Say !KNIFE: KNIFE CHALLENGE COMPLETED! Maximal one winner per round!
On Say; Text !knife;If %server_global_melee_challenge% == 0;Say !KNIFE CHALLENGE disabled - need more players, maybe next round.
On Say; Text !knife;playeryell 5 %p% = %melee_kills%/55 melee kills
Awesome maxdralle, thank you for the changes.

 

Code:

# debug _______
This was used for development purposes only, it can be removed now.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by GR101*:

 

Should the two %server_global_challenge_preset% variables shown in RED be the same as %server_global_melee_challenge% shown in GREEN ?

 

Or do I have this wrong?

 

I use this %server_global_challenge_preset% in your !CHALLENGE script.

 

Code:

# Accumulate the Melee count for each player in a var %melee_kills%
On Say; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 40; Say    ***   KNIFE CHALLENGE ENABLED   ***; Set %server_global_melee_challenge% 1
On Spawn; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 40; Say    ***   KNIFE CHALLENGE ENABLED   ***; Set %server_global_melee_challenge% 1
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by maxdralle*:

 

Should the two %server_global_challenge_preset% variables shown in RED be the same as %server_global_melee_challenge% shown in GREEN ?

 

...

holly! it is a copy paste misstake...

this is the correct part:

Code:

# Accumulate the Melee count for each player in a var %melee_kills%
On Say; ServerFirst; If %server_global_melee_challenge% == 0; if %ts1% + %ts2% >= 40; Say    ***   KNIFE CHALLENGE ENABLED   ***; Set %server_global_melee_challenge% 1
On Spawn; ServerFirst; If %server_global_melee_challenge% == 0; if %ts1% + %ts2% >= 40; Say    ***   KNIFE CHALLENGE ENABLED   ***; Set %server_global_melee_challenge% 1
* Restored post. It could be that the author is no longer active.
Link to comment
  • 10 months later...

Originally Posted by mambochambo*:

 

hello, thanks for the script-

may iask, is it possible to adjust this script for a special weapon like mares leg or phantom bow, and the one who gets like 30 kills receives a vip slot. i tried to modify your script but its not working.

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

Originally Posted by ColColonCleaner*:

 

hello, thanks for the script-

may iask, is it possible to adjust this script for a special weapon like mares leg or phantom bow, and the one who gets like 30 kills receives a vip slot. i tried to modify your script but its not working.

A system for this is being built into AdKats right now. It's not finished yet, but it will be part of that plugin soon. You'll be able to set up your own custom challenges with rewards. I would suggest setting up that plugin if you haven't already.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

hehe, i was working a BF3 version last week, but as usual i got borred, and start looking in the forum and found this.

Geeh, i am trying to invent the weel,,,,again.....

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

Originally Posted by ColColonCleaner*:

 

hehe, i was working a BF3 version last week, but as usual i got borred, and start looking in the forum and found this.

Geeh, i am trying to invent the weel,,,,again.....

Glad you'll be trying it out, I haven't done any testing on BF3, not done with the BF4 testing yet and don't have a BF3 server. Once it's done and you're trying it let me know how it works.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

modded the version a bit for BF3 ,reduced the count from 20 to 6 for testing.

if it works, i can intergrate it in my project.

 

i made a one player challenge to, object was simpel for it, make 20 claymore kills with less as 5 deaths.

or any other various weapon. (depending on the settings, claymore,c4,rpg,crossbow)

 

as for crossbow.

i made the following challenge, make 15 headshots, with a max of 5 deads....

THAT is harder as aspectected..

 

killing is easy, and a vip slots is easy earned.

making it a more challenge is to keep alive with a death limit ^^

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

Originally Posted by mambochambo*:

 

i did a workaround, since im not so familiar with proconrulez scripting:

On Kill; Weapon dlSHTR;PlayerCount 29; Log %p% received a Vip Slot; PlayerOnce; Exec reservedSlotsList.add/reserved 1w %p%; Exec reservedSlotsList.save; say # %p% received a Vip Slot for 1 Week for 30 Kills with Phantom Bow#;;yell %p% received a 1 Week VIP Slot for 30 Kills with Phantom Bow

 

Any sugguestions?

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

Originally Posted by ColColonCleaner*:

 

modded the version a bit for BF3 ,reduced the count from 20 to 6 for testing.

if it works, i can intergrate it in my project.

 

i made a one player challenge to, object was simpel for it, make 20 claymore kills with less as 5 deaths.

or any other various weapon. (depending on the settings, claymore,c4,rpg,crossbow)

 

as for crossbow.

i made the following challenge, make 15 headshots, with a max of 5 deads....

THAT is harder as aspectected..

 

killing is easy, and a vip slots is easy earned.

making it a more challenge is to keep alive with a death limit ^^

Ooo, that's a cool idea, i'll also log headshot and death events while they are playing the challenges.

There is no way you'll be able to integrate what i'm doing with a proconrulz script, right now it's 5000 lines in AdKats and only getting larger, lol.

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

Originally Posted by ColColonCleaner*:

 

i did a workaround, since im not so familiar with proconrulez scripting:

On Kill; Weapon dlSHTR;PlayerCount 29; Log %p% received a Vip Slot; PlayerOnce; Exec reservedSlotsList.add %p%; Exec reservedSlotsList.save; say # %p% received a Vip Slot for 1 Week for 30 Kills with Phantom Bow#;;yell %p% received a 1 Week VIP Slot for 30 Kills with Phantom Bow

 

but i have to ammend the vip slot saving for limited time.... Any sugguestions?

There is no expiration date for reserved slots in either procon or the base game, you need to manually remove the slots if you are going that route.

But if you're running AdKats you can make it issue the

/reserved 1w playername

command which will add a 1 week long reserved slot, and you can adjust that to your needs.

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

Originally Posted by mambochambo*:

 

Thank you!

would the command look like this? Exec reservedSlotsList.add/reserved 1w %p%;

its somehow not working, its adding me permanent and not limited....

its showing my name in verbose reserved slot list not in reserved slot display (where u can see the time)

in Adkats...

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

Originally Posted by ColColonCleaner*:

 

Thank you!

would the command look like this? Exec reservedSlotsList.add/reserved 1w %p%;

its somehow not working, its adding me permanent and not limited....

its showing my name in verbose reserved slot list not in reserved slot display (where u can see the time)

in Adkats...

no. /reserved is an AdKats chat command.

 

On Kill; Weapon dlSHTR;PlayerCount 29; Log %p% received a Vip Slot; PlayerOnce; say /reserved 1w %p%; say # %p% received a 1 week VIP slot for 30 Kills with Phantom Bow#; yell %p% received a 1 Week VIP Slot for 30 Kills with Phantom Bow

 

I'm not sure why it's PlayerCount 29 instead of 30, but there might be some nuance to this that i'm unaware of.

 

Also, /reserved will not work if they already have a reserved slot. It won't extend their reserved slot, it will just cancel out. Probably should look into that at some point.

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

Originally Posted by spatieman*:

 

Simplyfied version of my personal challenge xD

(litle revamped version nnow))

 

Code:

# Challenge system for VIP
# VIP manager required !
# R2
On Say;text !challenge-help;playersay !challenge-claymore = 1 week VIP;playersay !challenge-c4 = 1 week VIP;playersay !challenge-xbow = 1 month VIP;playersay ONLY ONE CHALLENGE ALLOWED,!cha-info for more

on say;text challenge- ;if %[%p%]challenge% = 1;playersay Sorry, only one challenge allowed
on say;if %text% contains !challenge- ;if %[%p%]challenge% = 1;if %[%p%]xbow% = 1;playersay Crossbow challenge is active
on say;if %text% contains !challenge- ;if %[%p%]challenge% = 1;if %[%p%]claymore% = 1;playersay Claymore challenge is active
on say;if %text% contains !challenge- ;if %[%p%]challenge% = 1;if %[%p%]c4% = 1;playersay C4 challenge is active
#
on say;if %text% contains !challenge-xbow    ;if %[%p%]challenge% = 0;playersay accepted! Make 15 headshots, max 5 deaths;playersay and earn 1 month VIP status;set %[%p%]xbow% 1;set %[%p%]challenge% 1
on say;if %text% contains !challenge-claymore;if %[%p%]challenge% = 0;playersay accepted! Make 5 kills, ZERO deaths!;playersay and earn 1 week VIP status;set %[%p%]claymore% 1;set %[%p%]challenge% 1
on say;if %text% contains !challenge-c4      ;if %[%p%]challenge% = 0;playersay accepted! Make 15 kills, max 5 deaths;playersay and earn 1 week VIP status;set %[%p%]c4% 1;set %[%p%]challenge% 1

on say;text !cha-info;playersay Challenge requirements;playersay C4: 15 kills max 5 deaths;playersay crossbow: 15 kills max 5 deaths;playersay claymore: 5 kills 0 deaths

# spamming active status on challenge
on spawn;if %[%p%]xbow% = 1;incr %[%p%]challenge_death%;playersay Xbow challenge: deaths: %[%p%]challenge_death% counted / %[%p%]challenge_xbow% Xbow kills
on spawn;if %[%p%]claymore% = 1;incr %[%p%]challenge_death%

# checking if claymore challenge is complete, and add reward
On Kill;Weapon Weapons/Gadgets/Claymore/Claymore;if %[%p%]claymore% = 1 ;incr %[%p%]challenge_claymore% ;playersay claymore:%[%p%]challenge_claymore% : [death] %[%p%]challenge_death%
On Kill;Weapon Weapons/Gadgets/Claymore/Claymore;if %[%p%]claymore% = 1 ;if %[%p%]challenge_claymore% => 5;if %[%p%]challenge_death% = 0;playersay congratz, claymore challenge complete;say /vsm-addvip %p% +7;set %[%p%]claymore% 0;set %[%p%]challenge_death% 0;set %[%p%]challenge_claymore% 0;set %[%p%]challenge% 0

# checking if c4 challenge is complete, and add reward
On Kill;Weapon Weapons/Gadgets/C4/C4;if %[%p%]c4% = 1 ;incr %[%p%]challenge_c4% ;playersay c4:%[%p%]challenge_c4% : [death] %[%p%]challenge_death%
On Kill;Weapon Weapons/Gadgets/C4/C4;if %[%p%]c4% = 1 ;if %[%p%]challenge_c4% => 15;if %[%p%]challenge_death% <= 5;playersay congratz, c4 challenge complete;say /vsm-addvip %p% +7;set %[%p%]c4% 0      ;set %[%p%]challenge_death% 0;set %[%p%]challenge_c4% 0;set %[%p%]challenge% 0

# checking if Xbow challenge is complete, and add reward
on kill;weapon crossbow       ;headshot;if %[%p%]xbow% = 1;incr %[%p%]challenge_xbow%;playersay xbow:%[%p%]challenge_xbow% / %[%p%]challenge_death% : [death] %[%p%]challenge_death%
on kill;weapon crossbow       ;headshot;if %[%p%]xbow% = 1;if %[%p%]challenge_xbow% => 15;if %[%p%]challenge_death% <= 5;playersay congratz, Crossbow challenge complete;say /vsm-addvip %p% +30;set %[%p%]xbow% 0    ;set %[%p%]challenge_death% 0;set %[%p%]challenge_xbow% 0;set %[%p%]challenge% 0

# checking for max death
on spawn  ;if %[%p%]xbow% = 1    ;if %[%p%]challenge_death% => 5;playersay Sorry, challenge cancelled, exeeding 5 death, try again;set %[%p%]xbow% 0    ;set %[%p%]challenge_death% 0;set %[%p%]challenge_xbow% 0;set %[%p%]challenge% 0
on spawn  ;if %[%p%]claymore% = 1;if %[%p%]challenge_death% => 1;playersay Sorry, challenge cancelled, exeeding 1 death, try again;set %[%p%]claymore% 0;set %[%p%]challenge_death% 0;set %[%p%]challenge_claymore% 0;set %[%p%]challenge% 0
on spawn  ;if %[%p%]c4% = 1      ;if %[%p%]challenge_death% => 5;playersay Sorry, challenge cancelled, exeeding 5 death, try again;set %[%p%]c4% 0      ;set %[%p%]challenge_death% 0;set %[%p%]challenge_c4% 0;set %[%p%]challenge% 0

# check challenge status
on say;if %text% contains /__; if %[%p%]c4% = 1;playersay STATUS:c4 challenge on: [c4]:%[%p%]challenge_c4% : [death] %[%p%]challenge_death%
on say;if %text% contains /__; if %[%p%]claymore% = 1;playersay STATUS:claymore challenge on: [claymore]:%[%p%]challenge_claymore% : [death] %[%p%]challenge_death%
on say;if %text% contains /__;if %[%p%]xbow% = 1;playersay STATUS:Crossbow challenge on: [xbow]:%[%p%]challenge_xbow% : [death] %[%p%]challenge_death%

on say;if %text% contains /__;if %[%p%]xbow% = 0;if %[%p%]claymore% = 0;if %[%p%]c4% = 0;playersay NO challenge active
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

More kinky C4/claymore/crossbow challenge system

Players needed 4 or more.

system checks players

system checks if a player earned the reward the current round

UNTESTED, server is a ugly empty here, hehe

 

check if player is not cheating to start a 2nd challenge.

and yes, Code still ugly as hell.

 

Code:

# BF3 Challenge system for VIP
# VIP manager required !
# R4
On Spawn; ServerFirst; if %ts1% + %ts2% >= 4;say Challenge system active;say !challenge-help for more
On Spawn; ServerFirst; if %ts1% + %ts2% < 4;say Challenge system inactive;say need 4 or more players

# help system
On Say;text !challenge-help;playersay !challenge-claymore = 1 week VIP;playersay !challenge-c4 = 1 week VIP;playersay !challenge-xbow = 1 month VIP;playersay ONLY ONE CHALLENGE ALLOWED,!cha-info for more
On Say;text !challenge-help;if %ts1% + %ts2% < 3;playersay currently inactive, 4 players needed

# check if it is posible to start challenge system
on say;text challenge- ;if %[%p%]challenge% = 1;playersay Sorry, only one challenge allowed
on say;text challenge- ;if %[%p%]challenge_reward% = 1;playersay one reward each round only

on say;if %text% contains !challenge- ;if %[%p%]challenge% = 1;if %[%p%]xbow% = 1;playersay Crossbow challenge is active
on say;if %text% contains !challenge- ;if %[%p%]challenge% = 1;if %[%p%]claymore% = 1;playersay Claymore challenge is active
on say;if %text% contains !challenge- ;if %[%p%]challenge% = 1;if %[%p%]c4% = 1;playersay C4 challenge is active
#
on say;if %text% contains !challenge-xbow    ;if %ts1% + %ts2% => 4;if %[%p%]challenge_reward% = 0;if %[%p%]challenge% = 0;playersay accepted! Make 15 headshots, max 5 deaths;playersay and earn 1 month VIP status;set %[%p%]xbow% 1;set %[%p%]challenge% 1
on say;if %text% contains !challenge-claymore;if %ts1% + %ts2% => 4;if %[%p%]challenge_reward% = 0;if %[%p%]challenge% = 0;playersay accepted! Make 5 kills, ZERO deaths!;playersay and earn 1 week VIP status;set %[%p%]claymore% 1;set %[%p%]challenge% 1
on say;if %text% contains !challenge-c4      ;if %ts1% + %ts2% => 4;if %[%p%]challenge_reward% = 0;if %[%p%]challenge% = 0;playersay accepted! Make 15 kills, max 5 deaths;playersay and earn 1 week VIP status;set %[%p%]c4% 1;set %[%p%]challenge% 1

on say;text !cha-info;if %ts1% + %ts2% => 4;playersay Challenge requirements;playersay C4: 15 kills max 5 deaths;playersay crossbow: 15 kills max 5 deaths;playersay claymore: 5 kills 0 deaths
on say;text !cha-info;if %ts1% + %ts2% < 3;playersay currently inactive, 4 players needed

# spamming active status on challenge
on spawn;if %[%p%]xbow% = 1;incr %[%p%]challenge_death%;playersay Xbow challenge: deaths: %[%p%]challenge_death%/5 counted / %[%p%]challenge_xbow%/15 Xbow kills
on spawn;if %[%p%]claymore% = 1;incr %[%p%]challenge_death%;playersay claymore challenge: deaths: %[%p%]challenge_death% counted / %[%p%]challenge_claymore%/5 claymore kills
on spawn;if %[%p%]c4% = 1;incr %[%p%]challenge_death%;playersay c4 challenge: deaths: %[%p%]challenge_death%/5 counted / %[%p%]challenge_c4%/15 c4 kills

# checking if claymore challenge is complete, and add reward
On Kill;Weapon Weapons/Gadgets/Claymore/Claymore;if %[%p%]claymore% = 1 ;incr %[%p%]challenge_claymore% ;playersay claymore:%[%p%]challenge_claymore% : [death] %[%p%]challenge_death%
On Kill;Weapon Weapons/Gadgets/Claymore/Claymore;if %[%p%]claymore% = 1 ;if %[%p%]challenge_claymore% => 5;if %[%p%]challenge_death% = 0;playersay congratz, claymore challenge complete;say /vsm-addvip %p% +7;set %[%p%]claymore% 0;set %[%p%]challenge_death% 0;set %[%p%]challenge_claymore% 0;set %[%p%]challenge% 0;set %[%p%]challenge_reward% 1

# checking if c4 challenge is complete, and add reward
On Kill;Weapon Weapons/Gadgets/C4/C4;if %[%p%]c4% = 1 ;incr %[%p%]challenge_c4% ;playersay c4:%[%p%]challenge_c4% : [death] %[%p%]challenge_death%
On Kill;Weapon Weapons/Gadgets/C4/C4;if %[%p%]c4% = 1 ;if %[%p%]challenge_c4% => 15;if %[%p%]challenge_death% <= 5;playersay congratz, c4 challenge complete;say /vsm-addvip %p% +7;set %[%p%]c4% 0      ;set %[%p%]challenge_death% 0;set %[%p%]challenge_c4% 0;set %[%p%]challenge% 0;set %[%p%]challenge_reward% 1

# checking if Xbow challenge is complete, and add reward
on kill;weapon crossbow       ;headshot;if %[%p%]xbow% = 1;incr %[%p%]challenge_xbow%;playersay xbow:%[%p%]challenge_xbow% / %[%p%]challenge_death% : [death] %[%p%]challenge_death%
on kill;weapon crossbow       ;headshot;if %[%p%]xbow% = 1;if %[%p%]challenge_xbow% => 15;if %[%p%]challenge_death% <= 5;playersay congratz, Crossbow challenge complete;say /vsm-addvip %p% +30;set %[%p%]xbow% 0    ;set %[%p%]challenge_death% 0;set %[%p%]challenge_xbow% 0;set %[%p%]challenge% 0;set %[%p%]challenge_reward% 1

# checking for max death
on spawn  ;if %[%p%]xbow% = 1    ;if %[%p%]challenge_death% => 5;playersay Sorry, challenge cancelled, exeeding 5 death, try again;set %[%p%]xbow% 0    ;set %[%p%]challenge_death% 0;set %[%p%]challenge_xbow% 0;set %[%p%]challenge% 0
on spawn  ;if %[%p%]claymore% = 1;if %[%p%]challenge_death% => 1;playersay Sorry, challenge cancelled, exeeding 1 death, try again;set %[%p%]claymore% 0;set %[%p%]challenge_death% 0;set %[%p%]challenge_claymore% 0;set %[%p%]challenge% 0
on spawn  ;if %[%p%]c4% = 1      ;if %[%p%]challenge_death% => 5;playersay Sorry, challenge cancelled, exeeding 5 death, try again;set %[%p%]c4% 0      ;set %[%p%]challenge_death% 0;set %[%p%]challenge_c4% 0;set %[%p%]challenge% 0

# check challenge status
on say;if %text% contains /__; if %[%p%]c4% = 1;playersay STATUS:c4 challenge on: [c4]:%[%p%]challenge_c4% : [death] %[%p%]challenge_death%
on say;if %text% contains /__; if %[%p%]claymore% = 1;playersay STATUS:claymore challenge on: [claymore]:%[%p%]challenge_claymore% : [death] %[%p%]challenge_death%
on say;if %text% contains /__;if %[%p%]xbow% = 1;playersay STATUS:Crossbow challenge on: [xbow]:%[%p%]challenge_xbow% : [death] %[%p%]challenge_death%

on say;if %text% contains /__;if %[%p%]xbow% = 0;if %[%p%]claymore% = 0;if %[%p%]c4% = 0;playersay NO challenge active
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mambochambo*:

 

@maxdralle

Hello,

can you tell me how to ammend this line for my needs:

; Set %ini_challengeCompleted_%p%-DATE%ymd%-TIME%hms%% CHALLENGE_%tmp_msg_weapon_typ%_%challenge_player_p oints[%p%]%/10_completed__%p%_has_won_a_VIP_SLOT_for_1_month? __DEBUG_timestamp_%seconds%_/_86400_+31_+_%tmp_rem_vip_days%; Set %ini_challengeVipSlotEnd_%p%% %seconds% / 86400 + 31 + %tmp_rem_vip_days%; Set %server_challenge_winners% %p%; Exec reservedSlotsList.add %p%; Exec reservedSlotsList.save

 

i want to add a command line, to add a reserved slot for one week.

Can you tell me how to do that in proconrulez?

thats my commandline:

On Kill; Weapon dlSHTR;PlayerCount 29; Log %p% received a Vip Slot; PlayerOnce; Exec reservedSlotsList.add/reserved 1w %p%; Exec reservedSlotsList.save; say # %p% received a Vip Slot for 1 Week for 30 Kills with Phantom Bow#;;yell %p% received a 1 Week VIP Slot for 30 Kills with Phantom Bow

 

with this version its permanent, if you can tell me the command for adding it?

 

Sincerely

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

Originally Posted by spatieman*:

 

Glad you'll be trying it out, I haven't done any testing on BF3, not done with the BF4 testing yet and don't have a BF3 server. Once it's done and you're trying it let me know how it works.

well, it seems to work on BF after some mod.

but making 40 kills with each stage is hard, hehe

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

Originally Posted by spatieman*:

 

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
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by maxdralle*:

 

@maxdralle

Hello,

can you tell me how to ammend this line for my needs:

; Set %ini_challengeCompleted_%p%-DATE%ymd%-TIME%hms%% CHALLENGE_%tmp_msg_weapon_typ%_%challenge_player_p oints[%p%]%/10_completed__%p%_has_won_a_VIP_SLOT_for_1_month? __DEBUG_timestamp_%seconds%_/_86400_+31_+_%tmp_rem_vip_days%; Set %ini_challengeVipSlotEnd_%p%% %seconds% / 86400 + 31 + %tmp_rem_vip_days%; Set %server_challenge_winners% %p%; Exec reservedSlotsList.add %p%; Exec reservedSlotsList.save

 

i want to add a command line, to add a reserved slot for one week.

Can you tell me how to do that in proconrulez?

thats my commandline:

On Kill; Weapon dlSHTR;PlayerCount 29; Log %p% received a Vip Slot; PlayerOnce; Exec reservedSlotsList.add/reserved 1w %p%; Exec reservedSlotsList.save; say # %p% received a Vip Slot for 1 Week for 30 Kills with Phantom Bow#;;yell %p% received a 1 Week VIP Slot for 30 Kills with Phantom Bow

 

with this version its permanent, if you can tell me the command for adding it?

 

Sincerely

use the version 2 from the first post: myrcon.net/...proconrulz-player-challenge-event-to-win-a-vip-slot-bf4-working-code#entry51960

and the plugin vip slot manager: myrcon.net/.../vip-slot-manager

then you can use ingame command to add a vip slot.

also you can create your challenge via proconrulz:

Code:

On Kill; Weapon U_dlSHTR,dlSHTR; if %c% == 30; Say /vsm-addvip %p% +7
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by mambochambo*:

 

@Maxdralle: SOLVED!

 

Thank you for your Advice,

after searching in the tutorial of proconrulez and some googling, i tried / amount of duration in minutes, by myself and voila, its working!

The code now looks like this:

Exec reservedSlotsList.add %p%/ 604800; Exec reservedSlotsList.save;

for adding the Challangewinner for 1 week. Its actually a nice Challange, i noticed, when my Server is on low Population, People actually doing the Mission XD

 

Thank you Guys for helping

 

Sincerely

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

Originally Posted by ColColonCleaner*:

 

The challenge system in AdKats is ready, bar rewards. I'm swamped with stuff at the moment so I won't be able to complete rewards for a little while, but the base system is ready.

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

Originally Posted by EntraVenuS*:

 

Just a question can i connect a bf3 server to the adkats database which already has a bf4 server connected to it .. and if the answer is yes what should i be aware of

 

thanks in advance

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

Originally Posted by ty_ger07*:

 

Just a question can i connect a bf3 server to the adkats database which already has a bf4 server connected to it .. and if the answer is yes what should i be aware of

 

thanks in advance

This is a Proconrulz question? Seems that this discussion has progressed in the wrong forum thread.
* Restored post. It could be that the author is no longer active.
Link to comment

Archived

This topic is now archived and is closed to further 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.