qchat: type: format format: "<&c>[] <&f>" Reward: type: task script: - random { - give LB_LuckyBlock_Item qty:2 - give LB_LuckyBlock_Item qty:2 - give LB_LuckyBlock_Item qty:3 - give LB_LuckyBlock_Item qty:3 - give LB_LuckyBlock_Item qty:1 } Bakery_Quest: Type: assignment actions: on assignment: - trigger name:click state:true - trigger name:chat state:true interact scripts: - 10 Bakery_quest_start Bakery_quest_start: type: interact steps: 1: Click trigger: script: - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player bakery_bread_quest_complete:! - flag player bakery_cake_quest_complete:! - flag player bakery_pie_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^narrate format:qchat "Hey! Would you like to do a daily quest for me?" - ^narrate "[Type <&c><&o>Yes <&r>or <&c><&o>No <&r>]" Chat trigger: 1: trigger: /Yes/, I will help you. Script: - engage - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player bakery_bread_quest_complete:! - flag player bakery_cake_quest_complete:! - flag player bakery_pie_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^flag player quest - ^flag player npcname: - ^random { - if ! { - if queue clear - ^flag player bakery_bread_quest - ^flag bakery_bread_quest_count:20 - ^narrate format:qchat "Bake <&c>20 bread<&r>. Reward<&co> <&c>$300 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>15 minutes <&r>to complete the quest." - flag player bakery_bread_quest_timer duration:15m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Bread" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Bread" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player bakery_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player bakery_bread_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player bakery_cake_quest - ^flag bakery_cake_quest_count:6 - ^narrate format:qchat "Bake <&c>6 Cakes<&r>. Reward<&co> <&c>$450 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>25 minutes <&r>to complete the quest." - flag player bakery_cake_quest_timer duration:25m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Cake" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Cake" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player bakery_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player bakery_cake_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player bakery_pie_quest - ^flag bakery_pie_quest_count:10 - ^narrate format:qchat "Bake <&c>10 Pumpkin Pies<&r>. Reward<&co> <&c>$450 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>25 minutes <&r>to complete the quest." - flag player bakery_pie_quest_timer duration:25m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Pumpkin Pie" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Pumpkin Pie" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player bakery_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player bakery_pie_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } } 2: trigger: /No/, Maybe another time. Script: - narrate format:qchat "Ok, come back soon!" bakery_quest_world: Type: World events: on player clicks i@bread in workbench with i@air: - if = towny { - if = 1 { - if { - if { - determine CANCELLED - queue clear } - flag player bakery_bread_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Bread" score: viewers: id:2_ - if == 0 { - flag player bakery_bread_quest:! - flag player quest:! - flag player bakery_bread_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:300 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player bakery_quest_cooldown duration:24h } } } } on player clicks i@bread in workbench with i@bread: - if = towny { - if = 1 { - if { - if { - determine CANCELLED - queue clear } - if == i@bread[quantity=64] { - queue clear } - flag player bakery_bread_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Bread" score: viewers: id:2_ - if == 0 { - flag player bakery_bread_quest:! - flag player quest:! - flag player bakery_bread_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:300 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player bakery_quest_cooldown duration:24h } } } } on player clicks i@cake in workbench with i@air: - if = towny { - if = 1 { - if { - if { - determine CANCELLED - queue clear } - flag player bakery_cake_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Cake" score: viewers: id:2_ - if == 0 { - flag player bakery_cake_quest:! - flag player quest:! - flag player bakery_cake_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:450 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player bakery_quest_cooldown duration:24h } } } } on player clicks i@pumpkin_pie in workbench with i@air: - if = towny { - if = 1 { - if { - if { - determine CANCELLED - queue clear } - flag player bakery_pie_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Pumpkin Pie" score: viewers: id:2_ - if == 0 { - flag player bakery_pie_quest:! - flag player quest:! - flag player bakery_pie_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:450 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player bakery_quest_cooldown duration:24h } } } } on player clicks i@pumpkin_pie in workbench with i@pumpkin_pie: - if = towny { - if = 1 { - if { - if { - determine CANCELLED - queue clear } - if == i@pumpkin_pie[quantity=64] { - queue clear } - flag player bakery_pie_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Pumpkin Pie" score: viewers: id:2_ - if == 0 { - flag player bakery_pie_quest:! - flag player quest:! - flag player bakery_pie_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:450 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player bakery_quest_cooldown duration:24h } } } } Fishing_Quest: Type: assignment actions: on assignment: - trigger name:click state:true - trigger name:chat state:true interact scripts: - 10 Fishing_quest_start Fishing_quest_start: type: interact steps: 1: Click trigger: script: - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player fishing_fish_quest_complete:! - flag player fishing_puffer_quest_complete:! - flag player fishing_salmon_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^narrate format:qchat "Hey! Would you like to do a daily quest for me?" - ^narrate "[Type <&c><&o>Yes <&r>or <&c><&o>No <&r>]" Chat trigger: 1: trigger: /Yes/, I will help you. Script: - engage - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player fishing_fish_quest_complete:! - flag player fishing_puffer_quest_complete:! - flag player fishing_salmon_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^flag player quest - ^flag player npcname: - ^random { - if ! { - if queue clear - ^flag player fishing_fish_quest - ^flag fishing_fish_quest_count:6 - ^narrate format:qchat "Catch <&c>6 Regular Fish<&r>. Reward<&co> <&c>$300 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>25 minutes <&r>to complete the quest." - flag player fishing_fish_quest_timer duration:25m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Fish" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Fish" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player fishing_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player fishing_fish_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player fishing_puffer_quest - ^flag fishing_puffer_quest_count:3 - ^narrate format:qchat "Catch <&c>3 Pufferfish<&r>. Reward<&co> <&c>$400 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>30 minutes <&r>to complete the quest." - flag player fishing_puffer_quest_timer duration:30m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Pufferfish" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Pufferfish" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player fishing_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player fishing_puffer_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player fishing_puffer_quest - ^flag fishing_puffer_quest_count:4 - ^narrate format:qchat "Catch <&c>4 Salmon<&r>. Reward<&co> <&c>$400 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>30 minutes <&r>to complete the quest." - flag player fishing_puffer_quest_timer duration:30m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Salmon" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Salmon" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player fishing_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player fishing_puffer_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } } 2: trigger: /No/, Maybe another time. Script: - narrate format:qchat "Ok, come back soon!" fishing_quest_world: Type: World events: on player fishes while CAUGHT_FISH: - if = towny { - if = i@raw_fish { - if { - flag player fishing_fish_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Fish" score: viewers: id:2_ - if == 0 { - flag player fishing_fish_quest:! - flag player quest:! - flag player fishing_fish_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:300 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player fishing_quest_cooldown duration:24h } } } } - if = towny { - if = i@raw_pufferfish { - if { - flag player fishing_puffer_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Pufferfish" score: viewers: id:2_ - if == 0 { - flag player fishing_puffer_quest:! - flag player quest:! - flag player fishing_puffer_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:400 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player fishing_quest_cooldown duration:24h } } } } - if = towny { - if = i@raw_salmon { - if { - flag player fishing_puffer_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Salmon" score: viewers: id:2_ - if == 0 { - flag player fishing_puffer_quest:! - flag player quest:! - flag player fishing_puffer_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:400 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player fishing_quest_cooldown duration:24h } } } } on player drops item: - narrate "" blacksmith_Quest: Type: assignment actions: on assignment: - trigger name:click state:true - trigger name:chat state:true interact scripts: - 10 blacksmith_quest_start blacksmith_quest_start: type: interact steps: 1: Click trigger: script: - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player blacksmith_iron_quest_complete:! - flag player blacksmith_coal_quest_complete:! - flag player blacksmith_stone_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^narrate format:qchat "Hey! Would you like to do a daily quest for me?" - ^narrate "[Type <&c><&o>Yes <&r>or <&c><&o>No <&r>]" Chat trigger: 1: trigger: /Yes/, I will help you. Script: - engage - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player blacksmith_iron_quest_complete:! - flag player blacksmith_coal_quest_complete:! - flag player blacksmith_stone_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^flag player quest - ^flag player npcname: - ^random { - if ! { - if queue clear - ^flag player blacksmith_iron_quest - ^flag blacksmith_iron_quest_count:20 - ^narrate format:qchat "Mine <&c>20 Iron Ore<&r>. Reward<&co> <&c>$350 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>25 minutes <&r>to complete the quest." - flag player blacksmith_iron_quest_timer duration:25m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Iron Ore" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Iron Ore" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player blacksmith_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player blacksmith_iron_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player blacksmith_stone_quest - ^flag blacksmith_stone_quest_count:128 - ^narrate format:qchat "Mine <&c>128 Stone<&r>. Reward<&co> <&c>$200 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>15 minutes <&r>to complete the quest." - flag player blacksmith_stone_quest_timer duration:15m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Stone" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Stone" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player blacksmith_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player blacksmith_stone_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player blacksmith_coal_quest - ^flag blacksmith_coal_quest_count:40 - ^narrate format:qchat "Mine <&c>40 Coal Ore<&r>. Reward<&co> <&c>$400 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>25 minutes <&r>to complete the quest." - flag player blacksmith_coal_quest_timer duration:25m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Coal Ore" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Coal Ore" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player blacksmith_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player blacksmith_coal_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } } blacksmith_quest_world: Type: World events: on player breaks iron_ore: - if = towny { - if { - flag player blacksmith_iron_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Iron Ore" score: viewers: id:2_ - if == 0 { - flag player blacksmith_iron_quest:! - flag player quest:! - flag player blacksmith_iron_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ id:2_ - give money qty:350 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player blacksmith_quest_cooldown duration:24h } } } on player breaks stone: - if = towny { - if { - flag player blacksmith_stone_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Stone" score: viewers: id:2_ - if == 0 { - flag player blacksmith_stone_quest:! - flag player quest:! - flag player blacksmith_stone_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:200 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player blacksmith_quest_cooldown duration:24h } } } on player breaks coal_ore: - if = towny { - if { - flag player blacksmith_coal_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Coal Ore" score: viewers: id:2_ - if == 0 { - flag player blacksmith_coal_quest:! - flag player quest:! - flag player blacksmith_coal_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:400 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player blacksmith_quest_cooldown duration:24h } } } blacksmith_quest_world_determine: Type: World events: on player breaks iron_ore: - if = towny { - if { - determine nothing } } on player breaks stone: - if = towny { - if { - determine nothing } } on player breaks coal_ore: - if = towny { - if { - determine nothing } } fight_Quest: Type: assignment actions: on assignment: - trigger name:click state:true - trigger name:chat state:true interact scripts: - 10 fight_quest_start fight_quest_start: type: interact steps: 1: Click trigger: script: - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player fight_zombie_quest_complete:! - flag player fight_spider_quest_complete:! - flag player fight_skeleton_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^narrate format:qchat "Hey! Would you like to do a daily quest for me?" - ^narrate "[Type <&c><&o>Yes <&r>or <&c><&o>No <&r>]" Chat trigger: 1: trigger: /Yes/, I will help you. Script: - engage - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player fight_zombie_quest_complete:! - flag player fight_spider_quest_complete:! - flag player fight_skeleton_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^flag player quest - ^flag player npcname: - ^random { - if ! { - if queue clear - ^flag player fight_zombie_quest - ^flag fight_zombie_quest_count:10 - ^narrate format:qchat "Kill <&c>10 Zombies<&r>. Reward<&co> <&c>$350 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>25 minutes <&r>to complete the quest." - flag player fight_zombie_quest_timer duration:25m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Zombie" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Zombie" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player fight_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player fight_zombie_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player fight_spider_quest - ^flag fight_spider_quest_count:10 - ^narrate format:qchat "Kill <&c>10 Spiders<&r>. Reward<&co> <&c>$400 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>35 minutes <&r>to complete the quest." - flag player fight_spider_quest_timer duration:35m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Spider" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Spider" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player fight_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player fight_spider_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player fight_skeleton_quest - ^flag fight_skeleton_quest_count:6 - ^narrate format:qchat "Kill <&c>6 Skeletons<&r>. Reward<&co> <&c>$400 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>30 minutes <&r>to complete the quest." - flag player fight_skeleton_quest_timer duration:30m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Skeleton" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Skeleton" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player fight_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player fight_skeleton_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } } fight_quest_world: Type: World events: on zombie killed: - if = towny { - if { - flag player fight_zombie_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Zombie" score: viewers: id:2_ - if == 0 { - flag player fight_zombie_quest:! - flag player quest:! - flag player fight_zombie_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:350 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player fight_quest_cooldown duration:24h } } } on spider killed: - if = towny { - if { - flag player fight_spider_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Spider" score: viewers: id:2_ - if == 0 { - flag player fight_spider_quest:! - flag player quest:! - flag player fight_spider_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:400 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player fight_quest_cooldown duration:24h } } } on skeleton killed: - if = towny { - if { - flag player fight_skeleton_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Skeleton" score: viewers: id:2_ - if == 0 { - flag player fight_skeleton_quest:! - flag player quest:! - flag player fight_skeleton_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:400 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player fight_quest_cooldown duration:24h } } } tailor_Quest: Type: assignment actions: on assignment: - trigger name:click state:true - trigger name:chat state:true interact scripts: - 10 tailor_quest_start tailor_quest_start: type: interact steps: 1: Click trigger: script: - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player tailor_cow_quest_complete:! - flag player tailor_pig_quest_complete:! - flag player tailor_lapis_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^narrate format:qchat "Hey! Would you like to do a daily quest for me?" - ^narrate "[Type <&c><&o>Yes <&r>or <&c><&o>No <&r>]" Chat trigger: 1: trigger: /Yes/, I will help you. Script: - engage - if { - narrate "[<&c>You can complete more quests from this NPC in <&r>]" - queue clear } else { - flag player tailor_cow_quest_complete:! - flag player tailor_pig_quest_complete:! - flag player tailor_lapis_quest_complete:! } - ^if { - narrate "[<&c>Come back when you have completed your other quest<&r>]" - queue clear } - ^if queue clear - ^flag player quest - ^flag player npcname: - ^random { - if ! { - if queue clear - ^flag player tailor_cow_quest - ^flag tailor_cow_quest_count:10 - ^narrate format:qchat "Kill <&c>10 Cows<&r>. Reward<&co> <&c>$350 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>25 minutes <&r>to complete the quest." - flag player tailor_cow_quest_timer duration:25m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Cow" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Cow" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player tailor_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player tailor_cow_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player tailor_pig_quest - ^flag tailor_pig_quest_count:10 - ^narrate format:qchat "Kill <&c>10 Pigs<&r>. Reward<&co> <&c>$350 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>25 minutes <&r>to complete the quest." - flag player tailor_pig_quest_timer duration:25m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Pig" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Pig" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player tailor_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player tailor_pig_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } - if ! { - if queue clear - ^flag player tailor_lapis_quest - ^flag tailor_lapis_quest_count:10 - ^narrate format:qchat "Mine <&c>10 Lapis Ore<&r>. Reward<&co> <&c>$300 & Lucky Blocks<&r>." - ^narrate format:qchat "You have <&c>20 minutes <&r>to complete the quest." - flag player tailor_lapis_quest_timer duration:20m - ^scoreboard add "obj:<&6>Daily Quest" "lines:Lapis Ore" score: viewers: id:2_ - ^scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ - disengage - repeat 300 { - if { - ^scoreboard remove id:2_ - ^scoreboard add "obj:<&6>Daily Quest" "lines:Lapis Ore" score: viewers: id:2_ - repeat stop } else { - if = towny { - scoreboard add "obj:<&6>Daily Quest" "lines:Lapis Ore" score: viewers: id:2_ - scoreboard add "obj:<&6>Daily Quest" lines:Time score: viewers: id:2_ } else { - scoreboard remove id:2_ - ^scoreboard remove id:2_ } - if { - ^scoreboard remove id:2_ - ^scoreboard remove id:2_ - flag player tailor_quest_cooldown duration:24h - narrate format:qchat "You have ran out of time! You can try again in 24 hours" - flag player tailor_lapis_quest:! - flag player quest:! - repeat stop } - if ! { - scoreboard remove id:2_ - repeat stop } } - wait 30s } } } tailor_quest_world: Type: World events: on cow killed: - if = towny { - if { - flag player tailor_cow_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Cow" score: viewers: id:2_ - if == 0 { - flag player tailor_cow_quest:! - flag player quest:! - flag player tailor_cow_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:350 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player tailor_quest_cooldown duration:24h } } } on pig killed: - if = towny { - if { - flag player tailor_pig_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Pig" score: viewers: id:2_ - if == 0 { - flag player tailor_pig_quest:! - flag player quest:! - flag player tailor_pig_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:350 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player tailor_quest_cooldown duration:24h } } } on player breaks lapis_ore: - if = towny { - if { - flag player tailor_lapis_quest_count:-- - ^scoreboard add "obj:<&6>Daily Quest" "lines:Lapis Ore" score: viewers: id:2_ - if == 0 { - flag player tailor_lapis_quest:! - flag player quest:! - flag player tailor_lapis_quest_complete - narrate "<&c>[] <&f>You have completed the quest!" - firework random - wait 5t - firework random - ^scoreboard remove id:2_ - give money qty:300 - give xp qty:400 - run reward - narrate "<&c>[] <&f>You can come back tomorrow for more quests." - flag player tailor_quest_cooldown duration:24h } } } tailor_quest_world_determine: Type: World events: on player breaks lapis_ore: - if = towny { - if { - determine nothing } } test_world: Type: World events: on reload scripts: - midi file:denizen - note cu@-89.0,84.0,127.0,towny|-89.0,85.0,127.0,towny as:townhall - note cu@-33.0,64.0,170.0,towny|33.0,65.0,170.0,towny as:pond - note cu@-98.0,83.0,151.0,towny|98.0,84.0,151.0,towny as:wool - note cu@-89.0,70.0,198.0,towny|89.0,70.0,198.0,towny as:spawn - note cu@-119.0,65.0,104.0,towny|-119.0,66.0,104.0,towny as:basement - note cu@-122.0,64.0,101.0,towny|-128.0,69.0,90.0,towny as:bouncer - narrate "<&c>Erebus Quests has reloaded successfully." - scoreboard remove id:2_ - scoreboard remove id:2_ - if = true { - narrate "<&c>An error has occurred! Please check your logs." } achievements: type: world events: on player enters townhall: - if { - narrate "<&c>You have already earned this achievement!" - queue clear } - flag player ach_townhall - flag ach:++ - narrate "<&c>You have earned the 'Back to the Future' achievement! (/5)" on player enters pond: - if { - narrate "<&c>You have already earned this achievement!" - queue clear } - flag player ach_pond - flag ach:++ - narrate "<&c>You have earned the 'Down the pond' achievement! (/5)" on player enters wool: - if { - narrate "<&c>You have already earned this achievement!" - queue clear } - flag player ach_wool - flag ach:++ - narrate "<&c>You have earned the 'Top shelf wool' achievement! (/5)" on player enters spawn: - if { - queue clear } - flag player ach_spawn - flag ach:++ - narrate "<&c>You have earned the 'Welcome to spawn' achievement! (/5)" - wait 15s - give 272 qty:1 - give 273 qty:1 - give 274 qty:1 - give 275 qty:1 - give 424 qty:20 on player enters basement: - if { - narrate "<&c>You have already earned this achievement!" - queue clear } - flag player ach_basement - flag ach:++ - narrate "<&c>You have earned the 'Town secret' achievement! (/5)" on player enters bouncer: - if == 5 { - queue clear } else { - narrate "<&e>[The Bouncer] <&f>Oi! Get out of there!" - teleport l@-122,66,103,towny } Command_world: type: world events: on questcancel command: - if ].or[]> { - flag player bakery_quest_cooldown duration:24h - scoreboard remove id:2_ - flag player bakery_bread_quest:! - flag player bakery_cake_quest:! - flag player bakery_pie_quest:! - flag player quest:! - narrate "<&c>Your quest has been successfully canceled!" - determine FULFILLED - queue clear } - if ].or[]> { - flag player fishing_quest_cooldown duration:24h - scoreboard remove id:2_ - flag player fishing_fish_quest:! - flag player fishing_puffer_quest:! - flag player fishing_salmon_quest:! - flag player quest:! - narrate "<&c>Your quest has been successfully canceled!" - determine FULFILLED - queue clear } - if ].or[]> { - flag player blacksmith_quest_cooldown duration:24h - scoreboard remove id:2_ - flag player blacksmith_iron_quest:! - flag player blacksmith_coal_quest:! - flag player blacksmith_stone_quest:! - flag player quest:! - narrate "<&c>Your quest has been successfully canceled!" - determine FULFILLED - queue clear } - if ].or[]> { - flag player fight_quest_cooldown duration:24h - scoreboard remove id:2_ - flag player fight_zombie_quest:! - flag player fight_spider_quest:! - flag player fight_skeleton_quest:! - flag player quest:! - narrate "<&c>Your quest has been successfully canceled!" - determine FULFILLED - queue clear } - if ].or[]> { - flag player tailor_quest_cooldown duration:24h - scoreboard remove id:2_ - flag player tailor_cow_quest:! - flag player tailor_pig_quest:! - flag player tailor_lapis_quest:! - flag player quest:! - narrate "<&c>Your quest has been successfully canceled!" - determine FULFILLED - queue clear } - narrate "<&c>No current quest." - determine FULFILLED on quest command: - narrate "<&c>Erebus Quest Commands:" - narrate "/questcancel <&3>Cancels any current quest" - determine FULFILLED on server start: - foreach { - flag %value% bakery_bread_quest:! - flag %value% bakery_cake_quest:! - flag %value% bakery_pie_quest:! - flag %value% fishing_fish_quest:! - flag %value% fishing_puffer_quest:! - flag %value% fishing_salmon_quest:! - flag %value% blacksmith_iron_quest:! - flag %value% blacksmith_coal_quest:! - flag %value% blacksmith_stone_quest:! - flag %value% fight_zombie_quest:! - flag %value% fight_spider_quest:! - flag %value% fight_skeleton_quest:! - flag %value% tailor_cow_quest:! - flag %value% tailor_pig_quest:! - flag %value% tailor_lapis_quest:! - flag %value% quest:! - scoreboard remove id:2_%value% } Headshot Monitor: type: world debug: false events: on entity damaged by arrow: - ^if { - ^if >= && <= { - ^playeffect effect:CRIT qty:5 offset:0.3 data:0.4 - ^narrate t: "<&f><&l>Headshot! <&a>(+].as_int> damage)" - ^determine - midi file:HIP_HOP - playsound player sound:ARROW_HIT } }