killquest2: type: assignment actions: on assignment: - trigger name:click state:true - trigger name:chat state:true interact scripts: - killquest2_interact cchat: type: format format: "<&e> <ยง3>to you<&co> <&e>" killquest2_interact: type: interact steps: 1: click trigger: script: - if !: - narrate format:cchat "Go talk to Sgt.Hark first" - if : - narrate format:cchat "ill give you more work when I have some, Dismissed" - wait 5t - stop - if : - stop - if == 0: - narrate format:cchat "when the job is done then we can talk, Dismissed" - if : - stop - flag player npc_engaged # - engage - if == 1: - narrate format:cchat "ill have more for you later, heres your pay and some food, Good job" - give emerald quantity:50 - give steak quantity:25 - flag player kill_zombie_quest2_count:! - flag player npc_engaged:! - flag player killquest_finished # - disengage - stop - narrate format:cchat "Sergent Hark sent you over? you might make be a good solider" - wait 8t - narrate format:cchat "We have a issue with an undead over by the mining camp" - wait 8t - narrate format:cchat "if you can kill the undead miner thats there, that should prove your worth" - wait 8t - narrate "[<&o>Type <&b><&o>Yes<&f><&o> or <&b><&o>No<&f>]" - flag player npc_engaged:! # - disengage chat trigger: 1: trigger: "/Yes/ I accept the quest" script: - if : - stop - flag player npc_engaged # - engage - narrate format:cchat "Okay great!" - wait 5t - narrate "[<&e>Kill The Grumpy miner down by the mines]" - flag player kill_zombie_quest2 - flag player kill_zombie_quest2_count:0 - flag player npc_engaged:! # - disengage 2: trigger: "/No/ I don't" script: - if : - stop - random: - narrate format:cchat "We need men like you" - narrate format:cchat "Okay then. Come back when you want to serve your empire" - narrate format:cchat "Okay well your missing out on some good oppurtunities" killquest2_zombie_world: type: world events: on player kills zombie: - if !: - stop - flag player kill_zombie_quest2_count:++ - if == 1: - narrate "[Return to the Cpl.Drumer]" - flag player kill_zombie_quest:!