BanditKing: type: assignment default constants: RewardAmount: 1000 Quest Repeat Timeout: 86400 Quest Reset Timeout: 86000 interact scripts: - 10 BanditKingKiller actions: on assignment: - trigger name:chat toggle:true - trigger name:click toggle:true - trigger name:proximity toggle:true - trigger name:damage toggle:true - execute as_npc "npc sel " - execute as_npc "npc vulnerable" BanditKingKiller: type: interact steps: 1: proximity trigger: entry: script: - run BanditKingKillerCheckReq click trigger: script: - run BanditKingKillerCheckReq damage trigger: script: - ^random { - chat "Oucch! You really don't want to do that kid...!" - chat "Aaarrggg! Hit me again, and the guards will come.!" - chat "Huh, I can't feel my arm...? AH< MY ARM! WHERE IS IT?!" - chat "Please don't hurt me! I have never done anything bad to you!" - chat "Heh, go jump off a bridge brat! " } 2: chat trigger: StartQuest: Trigger: /Yes/, I'll do it. script: - flag ZombieKiller:Started "duration:" - listen kill npc.BKingCharles type:Npc "script:BKingQuestCompleted" - Chat "Yes, maybe now we can get the bloody Bandits to stop raiding our trade carts! Come back when he is dead, I'll reward you well." - narrate "End The Bandit King - Quest Started" DenyQuest: trigger: /No/, I'm not interested sorry. script: - random { - chat "Alright then, come back if you change your mind" - chat "I guess the Bandits are too tough for ya" } - ZAP step:1 proximity trigger: exit: script: - ZAP step:1 click trigger: script: - run BanditKingKillerCheckReq damage trigger: script: - ^random { - chat "Oucch! You really don't want to do that kid...!" - chat "Aaarrggg! Hit me again, and the guards will come.!" - chat "Huh, I can't feel my arm...? AH< MY ARM! WHERE IS IT?!" - chat "Please don't hurt me! I have never done anything bad to you!" - chat "Heh, go jump off a bridge brat! " } - zap step:1 BKkillerGeneralChat: type: task script: - ^random { - chat "Dude, if these Bandits keep going, my business will be ruined!" - chat "I lost three carts yesterday... Three! I only sent out One!" - chat "Nobody is willing to take the Bandit King on..." - chat " Yep, took her leg right off!"} BanditKingKillerCheckReq: type: task script: - if == Started chat "Hi , please come back to me when you've killed The Bandit King!" else if == ClaimReward chat ", come over here! Come get your reward for killing the bandit king!" else if == Claimed chat "Thanks for your help , please come back later to help me again." else run BKkillerquestdetail BKkillerquestdetail: type: task script: - random { - chat "Hey Buddy! Yeah, You ! Wanna kill someone for me?" - chat "Wanna Job Son? Should be simple." - chat "Mind giving me a hand dude?"} - random { - chat "Kill the Bandit King Herald and I'll pay you $1000" - chat "Navigate through the Bandit Caves and kill their leader for $1000" - chat "The reward for killing the Bandit King will be a total of $1000"} - narrate "Say<&co>" - ^narrate " Yes or No" - ^zap "s@BKingKiller" step:2 BKQuestComplete: type: task script: - ^flag BKingKiller:Claimed "duration:" - chat "Yes, You actually did it! Well, they will probably have a new king tomorrow, but until then, thanks!" - ^give money qty: - ^narrate " pays you ."