- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleMcMonkey is A Noob
TypeDenizen Script
Date2013/12/19 22:20:05 UTC-08:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
3500
WabbaJackCheck:
  Type: World
  Events:
    On Player damages Player:
      - if <player.item_in_hand.lore> == li@Wabbajack {

        - if <context.damager.asplayer.flag[wabbaCount]||0> < 4 && <context.entity.asplayer.flag[wabbajacked]> == null {
          - narrate "you've wabbajacked <context.entity.name>"
          - flag <context.entity> wabbajacked:true
          - flag <context.damager.asplayer> wabbaCount:++
          - run script:WabbaDone as:<context.entity.as_player> delay:30s def:Jacker <context.damager>

          - random {
            - execute as_server "dis <context.entity.asplayer.name> chicken"
            - execute as_server "dis <context.entity.asplayer.name> enderman"
            }

          } else if <context.damager.asplayer.flag[wabbaCount]||0> > 4 {
          - narrate "Wabbajack needs to cool down"

          } else if <context.entity.asplayer.flag[wabbaJacked]> != null {
          - narrate targets:<context.damager> "<context.entity.asplayer.name> is already Wabbajacked"

          } else {
          - narrate targets:NiggerBob "not working"
          }
        }

WabbaDone:
  Type: Task
  Script:
    - narrate "<context.entity.name> effect has worn off"
    - flag wabbajacked:!
    - flag %1% wabbaCount:--
    - execute as_server "ud <player.name>"


RawRaw



Pastes made: 76104