# +---------------------------------- # | Quest: A Bad Initiation # +---------------------------------- # Derrick NPC Derrick_NPC: type: assignment interact scripts: - 10 Derrick_Script actions: on assignment: # These triggers enable interaction with an NPC via chatting, clicking and entering proximity - trigger name:chat state:true - trigger name:click state:true - trigger name:proximity state:true - lookclose state:false Derrick_Script: type: interact steps: 1: proximity Trigger: entry: Script: - lookclose state:true # - if { - if == null { } else { - wait 5 - narrate "[Prison Guard] -> You<&co> You’re awake." - wait 3 - narrate "[Prison Guard] -> You<&co> I have strict orders from Aris to not release you unless you agree to take the assessment." - wait 3 - narrate "[Prison Guard] -> You<&co> Look, it’s not much of a test. You’re getting yourself arrested over nothing, really." - wait 3 - narrate "[Prison Guard] -> You<&co> She’ll give you a set of armor, teach you how to use a weapon, and then send you on your way." - wait 3 - narrate "[Prison Guard] -> You<&co> It’s dangerous out there, and the city is just trying to keep its citizens safe." - wait 2 - narrate "[Prison Guard] -> You<&co> So what do you say? Will you take the assessment?”" } chat Trigger: 1: Trigger: "/regex:.*Yes.*|.*yes.*|.*Yeah.*|.*yeah.*|.*okay.*|.*Okay.*|.*sure.*|.*alright.*/" Script: - wait 1 - narrate "[Prison Guard] -> You<&co> Well alright then" - wait 1 - narrate "The Prison Guard opens the cell door." - switch l@9432,48,5649,world state:on - wait 2 - narrate "[Prison Guard] -> You<&co> Report to Aris straight away, you'll find her up the castle stairs at the Barracks." - wait 3 - narrate "Quest Started: Redemption" - narrate "Quest Objective: Report to Aris in the Barracks" - execute as_server "settarget 9445 0 5626" 2: Trigger: "/regex:.*Derrick.*|.*derrick.*|.*Derrik.*|.*derrik.*|.*derick.*|.*Derick.*|.*Drrick.*|.*Der.*/" Script: - narrate "[Derrick] -> You<&co> Are you going to complete the assessment?" 3: Trigger: "/regex:.+/" Script: - narrate "[Derrick] -> You<&co> Look, I can’t let you out, unless you agree to complete the assessment. My name is Derrick. Call me when you’re ready to leave." # Aris NPC Aris_Barracks_NPC: type: assignment interact scripts: - 10 Aris_Barracks_Script actions: on assignment: # These triggers enable interaction with an NPC via chatting, clicking and entering proximity - trigger name:chat state:true - trigger name:click state:true - trigger name:proximity state:true - lookclose state:false Aris_Barracks_Script: type: interact steps: 1: proximity Trigger: entry: Script: - if == 1 { - if { - switch l@9432,48,5649,world state:off - wait 1 - narrate "[Aris] -> You<&co> Seems you’ve finally come to your senses!" - wait 2 - narrate "[Aris] -> You<&co> Look, I’m just going to teach you a few things that might very well save your life." - wait 2 - narrate "[Aris] -> You<&co> These lands aren’t safe - especially at night. If the creatures aren’t bad enough, we’ve got bandits, too." - wait 2 - narrate "[Aris] -> You<&co> The faster we get this done, the faster you can leave. So let’s start…" - wait 3 - flag player Cathar_Reputation:+:25 - flag player Quest_Gearing_Up:! - narrate "You gained 25 Cathar Reputation for completing the quest Redemption!" - wait 2 - run Guard_Walk as:n@1 } else { - flag player Cathar_Reputation:+:25 - flag player Quest_Gearing_Up:! - narrate "You gained 25 Cathar Reputation for completing the quest Gearing Up!" - wait 2 - run Guard_Walk as:n@1 } } # Guard NPC Guard_NPC: type: assignment interact scripts: - 10 Guard_Walk actions: on assignment: # These triggers enable interaction with an NPC via chatting, clicking and entering proximity - trigger name:chat state:true - trigger name:click state:true - trigger name:proximity state:true - lookclose state:false Guard_Walk: type: task Script: - ^spawn - lookclose state:true - walk auto_range - wait 2 - narrate "[Guard] -> Aris<&co> Captain! We’ve got a hostage situation!" - wait 2 - narrate "[Guard] -> Aris<&co> A witch has captured a young woman and has escaped to a shack in the forest!" - wait 2 - narrate "[Guard] -> Aris<&co> We must act at once!" - wait 3 - narrate "[Aris] -> Guard<&co> Send a squad to scout the situation, I’ll be there shortly." - wait 3 - narrate "[Aris] -> You<&co> Rookie! Come with me and I’ll count this as your official assessment. Report to the Guardhouse for a quick briefing, then come find me in the forest!" - wait 3 - narrate format:Quest "A Bad Initiation" - narrate format:QuestObj "Report back to the Guardhouse near the south gate" - execute as_server "settarget 9351 0 5866" - flag player Quest_A_Bad_Initiation:0 # Initiate NPC A_Bad_Initiation_Initiate_NPC: type: assignment interact scripts: - 10 A_Bad_Initiation_Initiate_Script actions: on assignment: # These triggers enable interaction with an NPC via chatting, clicking and entering proximity - trigger name:chat state:true - trigger name:click state:true - trigger name:proximity state:true - lookclose state:false A_Bad_Initiation_Initiate_Script: type: interact steps: 1: proximity Trigger: entry: Script: - if == 1 { - narrate "New Quest Objective Gather your Weapons, and your Courage." - wait 2 - if { - narrate "[Initiate] -> You<&co> Aris, I rushed supplies to the rendezvous, as requested." - wait 2 - narrate "[Initiate] -> You<&co> You there, I’m guessing you’re here to complete your assessment..." - wait 2 - narrate "[Initiate] -> You<&co> Well then, you’ll need a weapon and some armor. Do you prefer sword, or bow?" } else { - narrate "[Initiate] -> You<&co> Aris, I rushed supplies to the rendezvous, as requested." - wait 2 - narrate "[Initiate] -> You<&co> You there, I’m guessing you’re here to complete your assessment..." - wait 2 - narrate "[Initiate] -> You<&co> Well then, you’ll need a weapon. Do you prefer sword, or bow?" } } chat Trigger: 1: Trigger: "/regex:.*Bow.*|.*bow.*|.*Archer.*/" Script: - zap step:GotStuff - flag player Quest_A_Bad_Initiation:2 - narrate "[Initiate] -> You<&co> Alright then - here you go. And some arrows, too." - wait 2 - give i@bow qty:1 - give i@arrow qty:20 - narrate "[Initiate] -> You<&co> Be sharp, and stay back. Don’t forget to square your elbows." - wait 2 - narrate "[Initiate] -> You<&co> Hold your breath, aim, then release for the best shot. Good luck in there." - if { - give i@chainmail_helmet qty:1 - give i@chainmail_chestplate qty:1 - give i@chainmail_leggings qty:1 - give i@chainmail_boots qty:1 - wait 2 - narrate "You've received a set of Chainmail Armor from the Initiate!" - wait 1 } - narrate "You've received a bow from the Initiate" - wait 2 - narrate "You've received a 20 arrows from the Initiate" - wait 2 - narrate format:NewQuestObj "Defeat the Witch and save the Hostage!" - execute as_server "settarget 9279 0 6046" - wait 2 - narrate "[Aris] -> You<&co> I need you to enter here." - wait 1 - narrate "[Aris] -> You<&co> Now that I think about it, there’s a small cave near the beach." - wait 2 - narrate "[Aris] -> You<&co> If that’s an exit, there may be a boat waiting for her to escape with our hostage." - wait 2 - narrate "[Aris] -> You<&co> Go in without me, I’ll cut her off, and we’ll meet in the middle. Be careful." 2: Trigger: "/regex:.*Sword.*|.*sword.*|.*Blade.*/" Script: - zap step:GotStuff - flag player Quest_A_Bad_Initiation:2 - narrate "[Initiate] -> You<&co> Alright then - here you go." - give i@iron_sword qty:1 - wait 2 - narrate "[Initiate] -> You<&co> Keep on the defensive, don’t get too close." - wait 2 - narrate "[Initiate] -> You<&co> Remember to keep your posture and square your hips." - wait 2 - narrate "[Initiate] -> You<&co> Good luck in there." - if { - give i@chainmail_helmet qty:1 - give i@chainmail_chestplate qty:1 - give i@chainmail_leggings qty:1 - give i@chainmail_boots qty:1 - wait 2 - narrate "You've received a set of Chainmail Armor from the Initiate!" - wait 1 } - narrate "You've received Iron Sword from the Initiate" - wait 2 - narrate "New Quest Objective<&co> Defeat the Witch and save the Hostage!" - wait 2 - narrate "[Aris] -> You<&co> I need you to enter here." - wait 1 - narrate "[Aris] -> You<&co> Now that I think about it, there’s a small cave near the beach." - wait 2 - narrate "[Aris] -> You<&co> If that’s an exit, there may be a boat waiting for her to escape with our hostage." - wait 2 - narrate "[Aris] -> You<&co> Go in without me, I’ll cut her off, and we’ll meet in the middle. Be careful." Click Trigger: Script: - narrate "[Initiate] -> You<&co> . Do you prefer sword, or bow?" GotStuff: Click Trigger: Script: - narrate "[Initiate] -> You<&co> Well go on then, just enter the shack and jump down." A_Bad_Initiation_Chest_NPC: type: assignment interact scripts: - 10 A_Bad_Initiation_Chest_Script actions: on assignment: # These triggers enable interaction with an NPC via chatting, clicking and entering proximity - trigger name:chat state:true - trigger name:click state:true - trigger name:proximity state:true - lookclose state:false A_Bad_Initiation_Chest_Script: type: interact steps: 1: proximity Trigger: entry: Script: - if == 2 { - despawn n@39 - despawn n@40 - flag player Quest_A_Bad_Initiation:3 - narrate "Treasure Chests can contain many unique things, including mythic items!" - wait 2 - narrate "You can find Identification Tomes in Treasure Chests or buy them from our store." - wait 2 - narrate "Identification Tomes will identify Unidentified Mythic Gear." - wait 2 - narrate "Treasure Chests can also contain spells, gold, money, and other valuables." - execute as_server "mm mobs spawn Witch 1 world,9279,27,6046" } Dead_Witch: type: task Script: - run Initiate_Dead_Witch as:n@40 - ^spawn - wait 2 - ~walk auto_range - ~walk auto_range - narrate "[Aris] -> You<&co> Well done! I apologize for putting you in that situation." - wait 2 - narrate "[Aris] -> You<&co> It seems we've arrived too late." - wait 2 - narrate "[Aris] -> You<&co> None of us knew the witch would have that kind of power." - wait 2 - narrate "[Aris] -> You<&co> I still have some things to wrap up here." - wait 2 - narrate "[Aris] -> You<&co> Return to the city and find the Royal Steward for compensation on behalf of the kingdom of Cathar." - wait 2 - narrate "[Aris] -> You<&co> You've earned it!" - wait 1 - narrate "You gained 125 Cathar Reputation for slaying The Witch!" - flag player Cathar_Reputation:+:125 - wait 2 - narrate format:NewQuestObj "Find the Royal Steward in the castle for compensation." - flag player Quest_A_Bad_Initiation:4 - execute as_server "settarget 9457 0 5666" Initiate_Dead_Witch: type: task Script: - ^spawn - wait 3 - ~walk auto_range - ~walk auto_range