Paste #33095: Untitled Paste

Date: 2016/04/27 07:23:04 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


BasiqueQuest3:
    type: assignment
    debug: true
    actions:
        on assignment:
            - trigger name:click toggle:true
            - trigger name:chat toggle:true
            - trigger name:proximity toggle:true radius:5
            - lookclose state:true range:3 realistic
    interact scripts:
    - 10 BasiqueQuest3Interact

BasiqueQuest3Interact:
    type: interact
    debug: true
    steps:
        1:
            click trigger:
                script:
                - inject lib_npc_engage instantly
                - narrate format:chatnpc "Etranger, j'ai un travail pour toi!"
                - wait 1s
                - narrate format:chatnpc "Rapproche toi."
                - wait 1s
                - narrate format:chatnpc "Es-tu intéressé?"
                - zap 2 duration:120s

        2:            
            chat trigger:
                1:
                    trigger: "/Oui/, pas de soucis!"
                    script:
                    - inject lib_npc_engage instantly
                    - narrate format:chatnpc "Ok parfait!"
                    - wait 1s
                    - give i@BoiteSpécial
                    - title "title:<&e><&l><&o>NOUVELLE MISSION<&f>" "subtitle:<&3>Quête Annexe: <&6>La quête de la Boite" duration:4s
                    - wait 2s
                    - narrate format:indication "Vous avez accepté une nouvelle mission: <&6>La quête de la Boite."
                    - wait 1s 
                    - narrate format:indication "Allez voir Alberto, il devrait être près du port."
                    - inject lib_npc_disengage instantly
                    - zap 3                
                2:
                    trigger: "/Non/, je suis occupé."
                    script:
                    - inject lib_npc_engage instantly
                    - narrate format:chatnpc "Ok très bien, reviens me voir si tu es intéressé."
                    - inject lib_npc_disengage instantly
                    - zap 1                
        3:
            click trigger:
                script:
                - if <pl.inventory.list_content.simple.contains[i@ReçuQuest3].not> {
                - inject lib_npc_engage instantly
                - narrate format: "Eh bien, qu'est-ce que tu attends?"
                - wait 1s
                - narrate format: "Le travail ne va pas se faire tout seul!"
                - inject lib_npc_disengage instantly
                } Else {
                - take i@ReçuQuest3
                - inject lib_npc_engage instantly
                - narrate format:chatnpc "Tu es vraiment très éfficace dans ton travail!"
                - wait 1s
                - narrate format:chatnpc "Voici ta récompense très mérité."
                - give i@Une récompense
                - flag player LaBoiteFinish:!
                - title "title:<&2><&l><&o>MISSION ACCOMPLIE<&f>" "subtitle:<&e>Quête réussie: <&6>La quête de la Boite" duration:4s
                - playsound <player> victoire_quete pitch:2 custom
                - zap 4
            }
        4:
                click trigger:
                    script: 
                    - inject lib_npc_engage instantly
                    - narrate format:chatnpc "Bon travail."
                    - inject lib_npc_disengage instantly

BasiqueQuest3Part2:
    type: assignment
    debug: true
    actions:
        on assignment:
            - trigger name:click toggle:true
            - trigger name:chat toggle:true
            - trigger name:proximity toggle:true radius:5
            - lookclose state:true range:3 realistic
    interact scripts:
    - 10 BasiqueQuest3Part2Interact

BasiqueQuest3Part2Interact:
    type: interact
    debug: true
    steps:
        1:
            click trigger:
                script:
            1:
                - if <pl.inventory.list_contents.simple.contains[i@BoiteSpécial].not> {
                - inject lib_npc_engage instantly
                - narrate format:chatnpc "J'attend ma Boite..."
                - inject lib_npc_disengage instantly
                } Else {
                - inject lib_npc_engage instantly
                - narrate format:chatnpc "Ma boite! Je l'attendais depuis si longtemps!"
                - take i@BoiteSpécial
                - waits 1s
                - narrate format:indication "Vous avez perdu la <&7>Boite spécial"
                - wait 1s
                - narrate format:chatnpc "Donne ça à ....."
                - wait 1s
                - give i@ReçuDeLaBoite
                - narrate format:indication "Donnez ce reçu à ...., il se situe près de ....."
                - inject lib_npc_disengage instantly
                - zap 2
            2:
                click trigger:
                    script:
                    - inject lib_npc_engage instantly
                    - narrate format:chatnpc "Ma boite sur-mesure, c'est le luxe!"
                    - inject lib_npc_disengage instantly

BoiteSpécial:
    type: item
    debug: true
    material: i@chest
    display name: "<&7>Boite Spécial"
    lore: 
        - "<&7>Objet de quête"
        - "<&7>Une Boite"

ReçuQuest3:
    type: item
    debug: true
    material: i@paper
    display name: "<&7>Reçu de la Boite"
    lore:
        - "<&7>Objet de quête"
        - "<&7>Reçu de quête à donné à ....."