Paste #9712: Untitled Paste

Date: 2014/09/17 11:43:09 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Untitled Paste
Denizen Script
2014/09/17 11:07:55 UTC-07:00
Guest
Click here to view this paste as a raw text file


Quackie:
  type: assignment
  debug: false
  actions:
    on assignment:
      - run locally assignment instantly

    on chat:
      - run locally chatSubScript def:<c.message.to_lowercase> delay:1t

  assignment:
    - flag npc respawn_location:<npc.location>
    - trigger name:chat state:true radius: 10
    - trigger name:click state:true
    - trigger name:proximity state:false
    - trigger name:damage state:false
    - vulnerable state:false
    - lookclose true
    - run locally spawn instantly

  chatSubScript:
    - if <def[1].contains[hi]> || <def[1].contains[hey]> {
      - random {
        - flag ChatChapter:1
        - run s@chat1
        - run s@chat2
        - run s@chat3
        - run s@chat4
        - run s@chat5
        }
      }
    - if <def[1].contains[diagon]> && <def[1].contains[where]> {
      - random {
        - flag ChatChapter:2
        - run s@chat1
        - run s@chat2
        - run s@chat3
        - run s@chat4
        - run s@chat5
        }
      }
    - if <def[1].contains[how]> && <def[1].contains_any[are|r]> && <def[1].contains_any[you|u]> {
      - random {
        - flag ChatChapter:3
        - run s@chat1
        - run s@chat2
        - run s@chat3
        - run s@chat4
        - run s@chat5
        }
      }
    - if <def[1].contains[bye]> || <def[1].contains[bai]> || <def[1].contains[ltr]> || <def[1].contains[l8tr]> || <def[1].contains[ltr]> {
      - random {
        - flag ChatChapter:4
        - run s@chat1
        - run s@chat2
        - run s@chat3
        - run s@chat4
        - run s@chat5
        }
      }


chat1:
    type: task
    debug: false
    script:
    - if <player.flag[chatchapter]> == 1 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Hi, I<&sq>m Duckie!  Are you new to Knockturn?"
      }
      else if <player.flag[chatchapter]> == 2 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Yikes, are you new?  You don<&sq>t know that Diagon Alley is down the road?"
      }
      else if <player.flag[chatchapter]> == 3 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> I<&sq>m doin<&sq> good bruh!  Whats your, Quack! Deal here?  You gonna got something for me?"
      }
      else if <player.flag[chatchapter]> == 4 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> I<&sq>m doin<&sq> good bruh!  Whats your, Quack! Deal here?  You gonna got something for me?"
      }

chat2:
    type: task
    debug: false
    script:
    - if <player.flag[chatchapter]> == 1 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Sup?  Are you a newbie?  I like newbies!"
      }
      else if <player.flag[chatchapter]> == 2 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> You gonna go shopping at Diagon just past the leaky cauldron?"
      }
      else if <player.flag[chatchapter]> == 3 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> I<&sq>m doing okay!  Gotta help newbies all day!  Talk about laaaaammmmmeeee"
      }
      else if <player.flag[chatchapter]> == 4 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> I<&sq>m doing okay!  Gotta help newbies all day!  Talk about laaaaammmmmeeee"
      }     

chat3:
    type: task
    debug: false
    script:
    - if <player.flag[chatchapter]> == 1 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Quack!  Quack Quack!  Oh, wait, Hi!  Do you speak Duck?"
      }
      else if <player.flag[chatchapter]> == 2 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Do I have to tell you where Diagon is?"
      }
      else if <player.flag[chatchapter]> == 3 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Sucky right now!  My job sucks!  I mean who wants to talk to newbs all day? Quack!"
      }
      else if <player.flag[chatchapter]> == 4 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Sucky right now!  My job sucks!  I mean who wants to talk to newbs all day? Quack!"
      } 

chat4:
    type: task
    debug: false
    script:
    - if <player.flag[chatchapter]> == 1 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Meow! Woof! No I know I am a Duck!  Hi! Quack, Quack, Quack"
      }
      else if <player.flag[chatchapter]> == 2 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Dude, Quack!  You don<&sq>t even know how to get to Diagon, it<&sq>s like right down the street!"
      }
      else if <player.flag[chatchapter]> == 3 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Everything is wonderful!  I loooooooveee working at Knockturn!  Pande is the BEST!"
      }
      else if <player.flag[chatchapter]> == 4 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Everything is wonderful!  I loooooooveee working at Knockturn!  Pande is the BEST!"
      } 

chat5:
    type: task
    debug: false
    script:
    - if <player.flag[chatchapter]> == 1 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> Hi.  I don't know you.  Why are you still here?  Quack."
      }
      else if <player.flag[chatchapter]> == 2 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> You're like not even a block from Diagon, are you like stupid? Quack!  Opps ! Quack Quack!  Hiccups."
      }
      else if <player.flag[chatchapter]> == 3 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> It would be great.  Except I<&sq>m here.  With you....."
      }
      else if <player.flag[chatchapter]> == 4 {
      - narrate "<&lb>NPCNAME<&rb> -<&gt> You<&co> It would be great.  Except I<&sq>m here.  With you....."
      }