banditquest: type: assignment actions: on assignment: - trigger name:click state:true - trigger name:chat state:true interact scripts: - npc_killquest_interact cchat: type: format format: "<&b> <&f>to you<&co> <&2>" npc_killquest_interact: type: interact steps: 1: click trigger: script: - if : - stop - if : - narrate "You can repeat this quest in " - stop - flag player npc_engaged - if == 10: - narrate format:cchat "Great! You've completed the quest! Here is your reward." - give 1@diamond - flag player kill_witherskeleton_quest_count:! - flag player kill_witherskeleton_quest_cooldown duration:168h - disengage - stop - engage - narrate format:cchat "Psst. Hey, you! Would you like to risk your life and in return get rich!?!" - wait 5t - narrate format:cchat "This challenge will be very difficult, but with the right person, it'll be easy!" - wait 5t - narrate format:cchat "Do you accept this challenge??" - narrate "[<&o>Type <&b><&o>Yes<&f><&o> or <&b>No<&7>]" - disengage - flag player npc_engaged:! chat trigger: 1: trigger: /Yes/ I accept the quest script: - if : - narrate "You can repeat this quest in " - stop - if : - stop - engage - narrate "Okay, great!" format:cchat - wait 5t - flag player kill_witherskeleton_quest - flag player kill_witherskeleton_quest_count:0 - narrate "[Kill 10 Wither Skeletons!]" - disengage - + 2: trigger: /No/ I don't script: - if : - stop - random: - narrate format:cchat "Okay, suit yourself!" - narrate format:cchat "Okay then." - narrate format:cchat "Screw you then!" killquest_witherskeleton_world: type: world events: on player kills wither_skeleton: - if !: - stop - flag player kill_witherskeleton_quest_count:++ - if == 10: - narrate "[Return to the Bandit for more information.]" - flag player kill_witherskeleton_quest:!