Paste #57038: FarmerQuestSpawn3

Date: 2019/08/18 11:05:23 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


FarmerQuestSpawn3:
    Type: assignment
    Actions:
        on assignment:
        - trigger name:click state:true
        on click:
        - if <player.flag[<player.name>]> == 1:
            - chat "salve <player.name>"
        - else:
            - chat "Salve Risvegliato"
    Interact scripts:
    - 10 farmQuestSpawn3

farmQuestSpawn3:
    type: interact
    steps:
        '1':
           Click trigger:
            Script:
            - if <player.flag[Quest_Spawn]> == 9:
                - engage
                - chat "Io Sono Alex, Quindi ti manda Marcus? Finalmente, pensavo che si fosse dimenticato completamente di me!"
                - chat "Ho un immenso problema con dei lupi crudeli, spaventano le mie povere galline e se queste sono spaventate poi non fanno più le uova"
                - chat "e senza uova la vedo dura preparare le torte! puoi uccidermene almeno 5?"
                - narrate "Quest start: Un  di esercizio!"
                - flag player Quest_Spawn:10
                - flag player kill_lupocrudele_questspawn
                - flag player kill_lupocrudele_questspawn_count:0
                - disingage
                - stop
            - else if <player.flag[kill_lupocrudele_questspawn_count]> == 5:
                - engage
                - chat "Oh! Grazie!! vedo che hai fatto un ottimo lavoro e anche così velocemente! qui ho una ricompensa per te!"
                - execute as_op "mi load costum Chiaveliv1"
                - flag player kill_lupocrudele_questspawn:!
                - flag player kill_lupocrudele_questspawn_count:!
                - flag player Quest_Spawn:11
                - chat "torna anche da Marcus qui abbiamo finito!"
                - disingage
                - stop
            - else if <player.flag[kill_lupocrudele_questspawn_count]> == 8:
                - engage
                - chat "Oh! Grazie!! vedo che hai fatto un ottimo lavoro e anche così velocemente! qui ho una ricompensa per te!"
                - execute as_op "mi load costum Chiaveliv2"
                - flag player kill_lupocrudele_questspawn:!
                - flag player kill_lupocrudele_questspawn_count:!
                - flag player Quest_Spawn:11
                - chat "torna anche da Marcus qui abbiamo finito!"
                - disingage
                - stop
            - else:
                - chat "awwww... questi lupi mi faranno impazzire!"
                - stop

kill_lupocrudele_questspawn_world:
    type: world
    events:
        on mythicmob LupoCrudele killed by player:
        - if !<player.has_flag[kill_lupocrudele_questspawn]> queue clear
        - flag player kill_lupocrudele_questspawn_count:++
        - if <player.flag[kill_lupocrudele_questspawn_count]> == 5:
            - narrate: "Hai completato la missione. Le missioni di caccia prevedono l'Overkill, osssia uccidendo il 50% dei mostri in più, si ottiene un premio extra."
            - narrate: "Se vuoi prova ad ucciderne altri 3 prima di tornare da Alex"
        - else if <player.flag[kill_lupocrudele_questspawn_count]> == 8:
            - narrate: "congratulazioni ne hai uccisi 8 ora, puoi tornare da alex e riscuotere anche il premio extra!"