Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 60
  1. #11
    I might get a bf4 server again soon. Along with a smaller server for plugin/scripts testing purposes. These challenges definitely gonna be in the big servers default map cycle for sure (may be changed a bit to fit any possible maplist changes.). Very nice work maxdralle.

  2. #12
    Senior Member
    Join Date
    Jan 2012
    Location
    The Kingdom of England
    Posts
    129
    Season's Greetings.

    Thank you for sharing this, could you make another version of this “ProconRulz - weapon !challenge for players to win a VIP Slot - working code BF4” without automatically giving VIP slots, e.g. remove automatic VIP slot and expired VIP slot.

    Add and expired VIP slots will be a manual process.

  3. #13
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    286
    Quote Originally Posted by GR101 View Post
    Season's Greetings.

    Thank you for sharing this, could you make another version of this “ProconRulz - weapon !challenge for players to win a VIP Slot - working code BF4” without automatically giving VIP slots, e.g. remove automatic VIP slot and expired VIP slot.

    Add and expired VIP slots will be a manual process.

    here it is the version WITHOUT auto vip slot management. admin must add and remove the vip slots manual.
    the playernames of the winners will be stored in the proconrulz.ini file on your proconlayer ftp.

    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 %tmp_msg_weapon_typ% Shotgun; Set %tmp_challenge_step2% 1
        If %server_global_challenge_preset% == 2; Damage Handgun; Set %tmp_msg_weapon_typ% Handgun; Set %tmp_challenge_step2% 1
        If %server_global_challenge_preset% == 3; Damage SniperRifle,DMR; Set %tmp_msg_weapon_typ% Sniper/DMR; Set %tmp_challenge_step2% 1
        If %server_global_challenge_preset% == 4; Damage LMG; Set %tmp_msg_weapon_typ% LMG; Set %tmp_challenge_step2% 1
        If %server_global_challenge_preset% == 5; Damage SMG; 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%]% == 10; 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"
        If %server_global_challenge_preset% == 2; PlayerSay %p% !CHALLENGE: Handgun [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Handgun"
        If %server_global_challenge_preset% == 3; PlayerSay %p% !CHALLENGE: Sniper/DMR [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Sniper/DMR"
        If %server_global_challenge_preset% == 4; PlayerSay %p% !CHALLENGE: LMG [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "LMG"
        If %server_global_challenge_preset% == 5; PlayerSay %p% !CHALLENGE: PDW [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "PDW"
        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 10 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

  4. #14
    Senior Member
    Join Date
    Jan 2012
    Location
    The Kingdom of England
    Posts
    129
    Thank you maxdralle it’s much appreciated.

    The reason for this version is I didn’t want to give a cheater a free VIP slot.

  5. #15
    Senior Member
    Join Date
    Jan 2012
    Location
    The Kingdom of England
    Posts
    129
    Quote Originally Posted by maxdralle View Post
    here it is the version WITHOUT auto vip slot management. admin must add and remove the vip slots manual.
    the playernames of the winners will be stored in the proconrulz.ini file on your proconlayer ftp.

    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 %tmp_msg_weapon_typ% Shotgun; Set %tmp_challenge_step2% 1
        If %server_global_challenge_preset% == 2; Damage Handgun; Set %tmp_msg_weapon_typ% Handgun; Set %tmp_challenge_step2% 1
        If %server_global_challenge_preset% == 3; Damage SniperRifle,DMR; Set %tmp_msg_weapon_typ% Sniper/DMR; Set %tmp_challenge_step2% 1
        If %server_global_challenge_preset% == 4; Damage LMG; Set %tmp_msg_weapon_typ% LMG; Set %tmp_challenge_step2% 1
        If %server_global_challenge_preset% == 5; Damage SMG; 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%]% == 10; 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"
        If %server_global_challenge_preset% == 2; PlayerSay %p% !CHALLENGE: Handgun [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Handgun"
        If %server_global_challenge_preset% == 3; PlayerSay %p% !CHALLENGE: Sniper/DMR [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "Sniper/DMR"
        If %server_global_challenge_preset% == 4; PlayerSay %p% !CHALLENGE: LMG [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "LMG"
        If %server_global_challenge_preset% == 5; PlayerSay %p% !CHALLENGE: PDW [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "PDW"
        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 10 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
    How would I add another Preset (6) for Melee with 4 kills per knife, 10 different knifes?

  6. #16
    Senior Member
    Join Date
    Jan 2012
    Location
    The Kingdom of England
    Posts
    129
    Quote Originally Posted by maxdralle View Post
    here the version with knife as preset #6. 4 kills per knife, 10 diffrent knifes.
    BLUE colored code: # of kill per weapon

    remember: in this version you have to add and remove vip slots manual...


    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)
    # Preset 6: KNIFE (4x10 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% > 6; 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% > 6; 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 %server_global_challenge_preset% == 6; Damage Melee; Set %challenge_kills_needed% 4; Set %tmp_msg_weapon_typ% KNIFE; 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 %server_global_challenge_preset% == 6; PlayerSay %p% !CHALLENGE: KNIFE [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "KNIFE"; Set %challenge_kills_needed% 4
        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
    Happy New Year and thank you for the support.

    I’ll give this new version ago but I need to adjust the number of kills for different weapon types because some are too easy e.g. Shotguns and LMG’s are now 14 kills they need to increase to 16 kills.

  7. #17
    Senior Member
    Join Date
    Jan 2012
    Location
    The Kingdom of England
    Posts
    129
    Quote Originally Posted by maxdralle View Post
    here the version with knife as preset #6. 4 kills per knife, 10 diffrent knifes.
    BLUE colored code: # of kill per weapon

    remember: in this version you have to add and remove vip slots manual...


    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)
    # Preset 6: KNIFE (4x10 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% > 6; 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% > 6; 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 %server_global_challenge_preset% == 6; Damage Melee; Set %challenge_kills_needed% 4; Set %tmp_msg_weapon_typ% KNIFE; 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 %server_global_challenge_preset% == 6; PlayerSay %p% !CHALLENGE: KNIFE [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "KNIFE"; Set %challenge_kills_needed% 4
        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
    Found a problem with the additional Melee challenge, the first 4 Melee kills count correctly (1/10) but thereafter it doesn’t count any new Melee kills so the challenge cannot be completed.

    Also some of the weapons don’t count towards some of the challenges, is that just a Procon update that i am missing?
    Last edited by GR101; 11-01-2017 at 14:05.

  8. #18
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    286
    Quote Originally Posted by GR101 View Post
    Found a problem with the additional Melee challenge, the first 4 Melee kills count correctly (1/10) but thereafter it doesn’t count any new Melee kills so the challenge cannot be completed.

    Also some of the weapons don’t count towards some of the challenges, is that just a Procon update that i am missing?

    yes. this is problem. the weaponkey for knife kills is everytime equal. all knives have the same weaponkey (%wk% = "Melee").

    it is not possible to include the knife as a challenge. sorry
    i delete the post #16

  9. #19
    Senior Member
    Join Date
    Jan 2012
    Location
    The Kingdom of England
    Posts
    129
    Quote Originally Posted by maxdralle View Post
    yes. this is problem. the weaponkey for knife kills is everytime equal. all knives have the same weaponkey (%wk% = "Melee").

    it is not possible to include the knife as a challenge. sorry
    i delete the post #16
    That’s disappointing but thanks for helping.

  10. #20
    Senior Member
    Join Date
    Jan 2012
    Location
    The Kingdom of England
    Posts
    129
    Can somebody remove Melee from this code (below), I need this version because you can set different number of kills per weapon type, and I’ve tried just to comment out Melee code but it shows a blank challenge. Cheers.

    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)
    # Preset 6: KNIFE (4x10 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% > 6; 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% > 6; 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 %server_global_challenge_preset% == 6; Damage Melee; Set %challenge_kills_needed% 4; Set %tmp_msg_weapon_typ% KNIFE; 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 %server_global_challenge_preset% == 6; PlayerSay %p% !CHALLENGE: KNIFE [%challenge_player_points[%p%]%/10]; Set %tmp_msg_weapon_typ% "KNIFE"; Set %challenge_kills_needed% 4
        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

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •