Paste #59058: Untitled Paste

Date: 2019/10/11 21:27:04 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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><npc.name> <ยง3>to you<&co> <&e><text>"

killquest2_interact:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - if !<player.has_flag[killquest2]>:
                    - narrate format:cchat "Go talk to Sgt.Hark first"
                - if <player.has_flag[killquest2_finished]>:
                    - narrate format:cchat "ill give you more work when I have some, Dismissed"
                    - wait 5t
                    - stop
                - if <player.has_flag[npc_engaged]>:
                    - stop
                - if <player.flag[kill_zombie_quest2_count]> == 0:
                    - narrate format:cchat "when the job is done then we can talk, Dismissed"
                - if <player.has_flag[kill_zombie_quest2]>:
                    - stop
                - flag player npc_engaged
                # - engage
                - if <player.flag[kill_zombie_quest2_count]> == 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 <player.has_flag[kill_zombie_quest2]>:
                        - 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 <player.has_flag[kill_zombie_quest2]>:
                        - 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 !<player.has_flag[kill_zombie_quest2]>:
            - stop
        - flag player kill_zombie_quest2_count:++
        - if <player.flag[kill_zombie_quest2_count]> == 1:
            - narrate "[Return to the Cpl.Drumer]"
            - flag player kill_zombie_quest:!