Paste #13571: Untitled Paste

Date: 2015/02/03 20:25:01 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


boopbooptool:

  type: world

  events:

    on player right clicks with i@booptool:

    - run "Boopboop"

    - narrate "Incoming!"

    - determine cancelled



booptool:

  type: item

  material: m@stick



"Boopboop":

  type: task

  script:

      - wait 2s

      - flag humans1:<player.location.add[-16,-1,-16].simple>

      - flag humans2:<player.location.add[16,2,16].simple>

      - note cu@<player.flag[humans1]>|<player.flag[humans2]> as:nearbyhumancuboid

      - flag player nearbyhumanspawn:<cu@nearbyhumancuboid.get_spawnable_blocks.random>

      - ^execute as_server 'npc create Boop --at <player.flag[nearbyhumanspawn]> --trait sentry'

      - ^execute as_server 'npc assign --set TeaBoop'

      - ^execute as_server "npc owner <player.name>"

      - ^execute as_server "npc push"

      - ^execute as_server "npc lookclose"

      - random 18

      - execute as_server "npc skin sowa125"

      - execute as_server "npc skin sowa125"

      - execute as_server "npc skin Ashot"

      - execute as_server "npc skin ScreamnEagles"

      - execute as_server "npc skin Clockturn"



      - execute as_server "npc skin wiseguy149"

      - execute as_server "npc skin Rexlos"

      - execute as_server "npc skin Jesse"

      - execute as_server "npc skin xscizorx"

      - execute as_server "npc skin Tornado95"



      - execute as_server "npc skin willeguy"

      - execute as_server "npc skin Franhell"

      - execute as_server "npc skin pwner_dude412"

      - execute as_server "npc skin awesome_cmo"

      - execute as_server "npc skin LittleFreeze"



      - execute as_server "npc skin Himo"

      - execute as_server "npc skin DarwinAssist"

      - execute as_server "npc skin IELTS8"



      # - execute as_server "npc skin Legion4" is now a satyr

      # - execute as_server "npc skin 3blpro" is now a terrorist



"TeaBoop":

  type: assignment

  actions:

    on assignment:

    - playeffect <npc.location> effect:SNOW_SHOVEL qty:10

    - playeffect <npc.location> effect:CLOUD qty:3


    - ^trigger name:click toggle:true

    - ^trigger name:damage toggle:true

    - ^trigger name:proximity toggle:true radius:32

    - ^trigger name:npcdeath toggle:false

    - ^trigger name:npcdeathowner toggle:false



    - ^execute as_server "sentry health 18" silent

    - ^execute as_server "sentry armor 0" silent

    - ^execute as_server "sentry strength 4" silent

    - ^execute as_server "sentry speed 1.5" silent

    - ^execute as_server "sentry nightvision 16" silent

    - ^execute as_server "sentry respawn -1" silent

    - ^execute as_server "sentry drops true" silent

    - ^execute as_server "sentry criticals false" silent

    - random 3

    - equip <npc> hand:IRON_SWORD

    - equip <npc> hand:BOW

    - equip <npc> head:IRON_HELMET

    - random 3

    - wait 40t

    - wait 50t

    - wait 60t

    - walk <npc> <cu@nearbyhumancuboid.get_spawnable_blocks.random> radius:7

    - random 3

    - wait 15t

    - wait 20t

    - wait 10t

    - attack target:<npc.location.find.players.within[32].random>

    - wait 40t

    - wait 50t

    - wait 60t

    - walk <npc> <cu@nearbyhumancuboid.get_spawnable_blocks.random> radius:7

    - random 3

    - wait 15t

    - wait 20t

    - wait 10t

    - attack target:<npc.location.find.players.within[32].random>







  interact scripts:

    - 1 Boopoop



"Boopoop":

  type: interact

  steps:

    1:

      proximity trigger:

        Entry:

          script:

          - if <npc.location.find.players.within[16].get[1]||null> != null {

            - random 2

            - playsound <npc.location> sound:WOLF_BARK

            - playsound <npc.location> sound:WOLF_GROWL

            - run "WolfPair"

            }

          else {

            - attack <npc> "target:<npc.location.find.players.within[32].get[1]>"

            - playsound <npc.location> sound:WOLF_HOWL volume:0.1

            }



      proximity trigger:

        Exit:

          script:

          - if <npc.location.find.players.within[32].get[1]||null> != null {

            - attack <npc> "target:<npc.location.find.players.within[32].get[1]>"

            - playsound <npc.location> sound:WOLF_HOWL volume:0.1

            }

          else {

            - playsound <player.location> sound:WOLF_WHINE volume:0.1

            - execute as_server "npc sel <npc.id>"

            - execute as_server "npc remove"

            }



      damage trigger:

        script:

        - chat "Ouch!"

        - walk <npc> <cu@nearbyhumancuboid.get_spawnable_blocks.random> radius:7

        - random 3

        - wait 2t

        - wait 1t

        - wait 3t

        - attack target:<npc.location.find.players.within[32].random>