#cooldown on menu?

1 messages · Page 1 of 1 (latest)

tiny sedge
#

So after a long all nighter, i finally almost have my first "shrine" setup for my boss fights, however the last thing which i didnt think about was a cool down. Is there anyway i can go about that? For example after a player spawns in the Prime Lich King (code below), they can't click it for 4 hours?


  'Summon-Prime':
    material: PAPER
    model_data: 1246
    data: 1
    slots: 
      - 6
      - 7
      - 8
      - 15
      - 16
      - 17
      - 24
      - 25
      - 26
    display_name: "&c&lPrime Lich King"
    lore:
      - "&7Difficulty: &r&fꑧ &6&lPrime &r&fꑧ"
      - ""
      - "&7Loot Drops:"
      - "&a+500 EXP &7(To the final blow user)"
      - "&7-&a 0-32 Rotten Flesh &7(100%)"
      - "&7-&a 0-16 Bones &7(100%)"
      - "&7-&a 8-32 Gold Ingots &7(100%)"
      - "&7-&a 0-3 Enchanted Red Mushroom &7(50%)"
      - "&7-&a 0-3 Enchanted Green Mushroom &7(50%)"
      - "&7-&a 1 Enraged Crux &7(50%)"
      - "&7-&b 1 Lich King's Scythe &7(15%)"
      - ""
      - "&e&l(!) Level 25 is required to start! (!)"
    click_requirement:
      requirements:
        meets_requirements:
          type: ">="
          input: "%mmocore_level%"
          output: 25
          deny_commands:
            - "[message] &c&l(!) &cYou don't have access! (!)"
            - '[close]'
    click_commands:
      - "[console] mm mobs spawn -s Prime_Lich_King:1 1 Eldritch_World,347,24,246<delay=55>"
      - "[console] mm mobs spawn -s Skeleton_Warrior:30 9 Eldritch_World,348,25,227<delay=205>"
      - "[console] mm mobs spawn -s Skeleton_Archer:30 9 Eldritch_World,356,24,259<delay=205>"
      - "[console] mm mobs spawn -s Skeleton_Shaman:30 9 Eldritch_World,333,23,252<delay=205>"
      - '[close]'
tiny sedge
#

so i did a wholeeee bunch of searching here on cooldowns and i got kinda somewhere, but still not;
Using Master Cooldowns (As ive seen others using here) ive got this setup; however even if the cooldown is at 0, it still runs the "your on a cool down!" deny command.


  'Summon-Base':
    material: PAPER
    model_data: 1246
    data: 1
    slots: 
      - 0
      - 1
      - 2
      - 9
      - 10
      - 11
      - 18
      - 19
      - 20
    display_name: "&c&lBase Lich King"
    lore:
      - "&7Difficulty: &aNormal"
      - ""
      - "&7Loot Drops:"
      - "&a+250 EXP &7(To the final blow user)"
      - "&7-&a 0-32 Rotten Flesh &7(100%)"
      - "&7-&a 0-16 Bones &7(100%)"
      - "&7-&a 0-16 Gold Ingots &7(50%)"
      - "&7-&b 1 Lich King's Scythe &7(0.1%)"
      - ""
      - "&e&l(!) Level 15 is required to start! (!)"
    click_requirement:
      minimum_requirements: 2
      stop_at_success: true
      requirements:
        mmocore_level:
          type: ">="
          input: "%mmocore_level%"
          output: 15
          deny_commands:
            - "[message] &c&l(!) &cYou don't have access! (!)"
            - '[close]'
        cooldown:
          type: string equals
          input: "%mcd_isinactive_BaseLichKing%"
          output: "yes"
          deny_commands:
            - "[message] &c&l(!) &cYour on a cool down! %mcd_left_BaseLichKing% (!)"
            - '[close]'
    click_commands:
      - "[console] mm mobs spawn -s Lich_King:1 1 Eldritch_World,347,24,246<delay=55>"
      - "[console] mm mobs spawn -s Skeleton_Warrior:1 3 Eldritch_World,348,25,227<delay=205>"
      - "[console] mm mobs spawn -s Skeleton_Archer:1 3 Eldritch_World,356,24,259<delay=205>"
      - "[console] mm mobs spawn -s Skeleton_Shaman:1 3 Eldritch_World,333,23,252<delay=205>"
      - "[console] mcd add %cmi_user_name% BaseLichKing 30m"
      - '[close]'

#

Ahhh i figured it out lmao

for anyone else who is running into difficulty with cooldowns, here's what i did;


    click_requirement:
      minimum_requirements: 2
      stop_at_success: true
      requirements:
        mmocore_level:
          type: ">="
          input: "%mmocore_level%"
          output: 15
          deny_commands:
            - "[message] &c&l(!) &cYou don't have access! (!)"
            - '[close]'
        cooldown:
          type: '=='
          input: "%mcd_left_BaseLichKing%"
          output: '0'
          deny_commands:
            - "[message] &c&l(!) &cYour on a cool down! %mcd_left_formatted_BaseLichKing% (!)"
            - '[close]'
    click_commands:
      - "[console] mm mobs spawn -s Lich_King:1 1 Eldritch_World,347,24,246<delay=55>"

#

there is a difference between using mcd_isinactive and mcd_left_yourcooldownplaceholder

as per i run mcd_left_BaseLichKing

it checks if the cooldown is at 0 seconds, which is the output, and the type "==" means equal to