Paste #3634: ]sweg

Date: 2014/04/20 21:08:38 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


AFRICA:
    type: assignment
    interact scripts:
    - 10 DailyAFRICAQuest

DailyAFRICAQuest:
    type: interact
    steps:
        start*:
            click trigger:
                script:
                - chat "Yo what up dawg, what's yo name?."
                - wait 2
                - chat "<player.name>? Tha fuck kind of name is that?."
                - wait 3
                - chat "Whatever man, you seem pretty chill."
                - wait 2
                - chat "You wanna be homies, or nah?"
                - wait 1
                - narrate "<white>You can say, <green>Ye<white> or <green>Nah<white>."
            chat trigger:
                1:
                    trigger: /Ye/, sweg.
                    script:
                    - chat "Swag. I might need some help from time to time."
                    - wait 3
                    - chat "Hit me up again and i'll probably have somethin for you to help with."
                    - ^zap step:return
                    - ^flag server AfricaHomie:->:<player>
                2:
                    trigger: /Nah/, bruh.
                    script:
                    - chat "We will make due without you..."
        return:
            click trigger:
                script:
                - random {
                  - chat "Yo, what up <player.name>."
                  - chat "Damn, son, i haven't seen you in a minute."
                  - chat "YOOOOOOOOOOOOOOooooooo."
                  }
                - wait 3
                - chat "You ready to help, or nah?"
                - narrate "<white>You can say, <green>Ye<white> or <green>Nah<white>."
            chat trigger:
                1:
                    trigger: /Ye/, mayn.
                    script:
                    - random {
                      - chat "Swag"
                      - chat "Sweet"
                      - chat "Hella"
                      }
                    - wait 1
                    - chat "I need you to get me 'bout 10 Melon Slices."
                    - ^flag player AFRICACount:0
                    - ^listen block type:collect block:360 qty:10 script:AFRICACheck
                    - wait 1
                    - chat "Don't come back til you got em."
                    - ^zap step:waiting
                2:
                    trigger: /Nah/, bruh.
                    script:
                    - chat "Damn, son, whatever. Come back when you ready to help a brotha out."
        waiting:
            click trigger:
                script:
                - chat "You've only collected <player.flag[AFRICACount].asint>/10 Melon Slices."
                - wait 1
                - chat "Nigga i said don't come back til you got em all!"
        reward:
            click trigger:
                script:
                - chat "Man, you aight <player.name>."
                - wait 2
                - chat "Here's some cash mayn."
                - wait 1
                - ^narrate "<red>You receieved <gold>1 Kayan Bar<red> from <npc.name>!"
                - ^give i@KayanBar qty:2
                - ^flag player AFRICACooldown duration:24h
                - ^zap step:cooldown
        cooldown:
            click trigger:
                script:
                - chat "Man i ain't got nothin else fo you today.."
                - wait 2
                - chat "Hit me up tomorrow if you tryna help!"

AFRICACheck:
    type: task
    script:
    - flag player AFRICACount:++
    - narrate "**You've killed <player.flag[AFRICACount].asint>/10 zombies.**"
    - if <player.flag[AFRICACount].asint> >= 10 run AFRICAReward
      else run AFRICAContinue

AFRICAContinue:
    type: task
    script:
    - ^listen block type:collect block:360 qty:10 script:AFRICACheck

AFRICAReward:
    type: task
    script:
    - narrate "Return to the Warrior's Guild to claim your reward."
    - zap script:DailyAFRICAQuest step:reward

WGWorld:
    type: world
    events:
        on time changes in w@world:
        - if <server.flag[AfricaHomie]> == "null" queue clear
        - foreach <server.flag[AfricaHomie].as_list> {
          - if !<%value%.as_player.flag[AFRICACooldown]> && <s@DailyAFRICAQuest.step[%value%]> != "return" {
            - zap script:DailyAFRICAQuest step:return player:%value%
            - if <%value%.as_player.is_online> {
              - narrate player:%value% "<red>The Warrior's Guild needs your help."
              - narrate player:%value% "<red>Return to them soon!"
              }
            }
          }