Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 60
  1. #21
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    Quote Originally Posted by GR101 View Post
    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)
    
    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
    Last edited by maxdralle; 28-01-2017 at 11:12.

  2. #22
    Senior Member
    Join Date
    Jan 2012
    Location
    The Kingdom of England
    Posts
    129
    Quote Originally Posted by maxdralle View Post
    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

    Cheers maxdralle, that works great, would you be up for this?

    https://forum.myrcon.com/showthread....l=1#post137853

  3. #23
    Hi could this be made for just pistols only.thankyou

  4. #24
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    Quote Originally Posted by RAZOR_HD View Post
    Hi could this be made for just pistols only.thankyou
    each round pistol challenge:

    Code:
    ####       !CHALLENGE        #########
    # win vip slot for 1 month
    # req. min. 10 players on round start to enable the weapon challenge
    #
    # Preset 1: Shotgun (10x5 kills -> 5 kills with each shotgun)
    # Preset 2: Handgun (10x5 kills)
    # Preset 3: Sniper/DMR (10x5 kills)
    # Preset 4: LMG (10x5 kills)
    # Preset 5: PDW (10x5 kills)
    
    # DISABLED  -  change preset each round 
    #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
    
    # each round same preset (preset 2 handgun)
    On Say; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 10; Say ***   !CHALLENGE enable   ***; Set %ini_challenge_preset% 2
    On Spawn; ServerFirst; If %server_global_challenge_preset% == 0; if %ts1% + %ts2% >= 10; Say ***   !CHALLENGE enable   ***; Set %ini_challenge_preset% 2
    
    # count kills and points, add vip slot (31 days)
    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%]% == 5; 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 for 1 month !!!; 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 for 1 month^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_for_1_month____DEBUG_timestamp_%seconds%_/_86400_+31_+_%tmp_rem_vip_days%; Set %ini_challengeVipSlotEnd_%p%% %seconds% / 86400 + 31 + %tmp_rem_vip_days%; Exec reservedSlotsList.add %p%; Exec reservedSlotsList.save
    
    # 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: Perform 5 kills with each %tmp_msg_weapon_typ% to win a VIP SLOT for 1 month. 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
    
    # remove vip slot after 31 days...
    On Spawn; PlayerFirst; If %ini_challengeVipSlotEnd_%p%% != 0; 
        If %seconds% / 86400 < %ini_challengeVipSlotEnd_%p%%; Set %tmp_rem_vip_days% %ini_challengeVipSlotEnd_%p%% - %seconds% / 86400; Say %p% welcome !CHALLENGE winner with VIP Slot; PlayerSay VIP Slot days remaining: %tmp_rem_vip_days%
        If %seconds% / 86400 > %ini_challengeVipSlotEnd_%p%%; Set %ini_challengeVipSlotEnd_%p%% 0; PlayerSay %p% your !CHALLENGE VIP Slot has expired; PlayerSay Win a new !CHALLENGE or buy a VIP Slot; Log ^b^2!CHALLENGE^0^n VIP Slot for %p% removed; Exec reservedSlotsList.remove %p%; Exec reservedSlotsList.save
    On RoundOver; If %server_global_challenge_preset% != 0; If %challenge_player_points[%p%]% >= 10; Say %p% has won the !CHALLENGE and a VIP SLOT!
    ####       !CHALLENGE - END       #########

  5. #25
    Senior Member
    Join Date
    Jan 2012
    Location
    The Kingdom of England
    Posts
    129
    Could somebody modify this code (below)? I just need Melee only without the option of changing knifes. Basically get so many Melee kills with any knife to win a VIP slot. 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)
    
    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

  6. #26
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    Quote Originally Posted by GR101 View Post
    Could somebody modify this code (below)? I just need Melee only without the option of changing knifes. Basically get so many Melee kills with any knife to win a VIP slot. Cheers.
    ...


    if you use the 'vip slot manager' plugin then you can use this code:
    Code:
    #Sample Code for ProconRulz (perform 5 knife kills = VIP Slot for 7 days):
    On Kill; Damage Melee; if %c% == 5; Yell %p% has won a VIP SLOT; Say /vsm-addvip %p% +7

    without the 'vip slot manager' plugin use this code:
    Code:
    #Sample Code for ProconRulz (perform 5 knife kills = VIP Slot):
    On Kill; Damage Melee; if %c% == 5; Yell %p% has won a VIP SLOT; Exec reservedSlotsList.add %p%; Exec reservedSlotsList.save
    Developer of the VIP Slot Manager Plugin

  7. #27
    Would something like this work? And can you cut off the challenge if the player has already won?

    Code:
    #Sample Code for ProconRulz (perform 20 Knife kills = VIP Slot for 2 days):
    
    On Kill; Damage Melee; if %c% == 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; Say Knife Challenge Progress: %p% (5/20)
    On Kill; Damage Melee; if %c% == 10; Say Knife Challenge Progress: %p% (10/20)
    On Kill; Damage Melee; if %c% == 20; Say Knife Challenge Complete! %p% (20/20); Yell Knife Challenge: %p% has won a VIP SLOT for 2 days; Say /vsm-addvip %p% +2

  8. #28
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    Quote Originally Posted by Sp0rAdiC View Post
    Would something like this work? And can you cut off the challenge if the player has already won?

    ...

    what did you mean with "cut off the challenge"???
    each player can win max. one time?
    or each player can win max. one time per day?
    Last edited by maxdralle; 12-05-2017 at 06:23.
    Developer of the VIP Slot Manager Plugin

  9. #29
    Quote Originally Posted by maxdralle View Post
    what did you mean with "cut off the challenge"???
    Sorry, I wasn't clear on my question. I think the one time per day code would work. Just didn't want players racking up VIP days.

  10. #30
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    276
    Quote Originally Posted by Sp0rAdiC View Post
    Sorry, I wasn't clear on my question. I think the one time per day code would work. Just didn't want players racking up VIP days.
    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%
    Developer of the VIP Slot Manager Plugin

 

 

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
  •