Date: 2013/12/19 22:47:57 UTC-08:00
Type: Denizen Script
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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> delay:15s def:<context.damager>
- random {
- playsound <player.location> SLIME_WALK
- playsound <player.location> GHAST_MOAN
- playsound <player.location> SPLASH
- playsound <player.location> EXPLODE
- playsound <player.location> BURN
- playsound <player.location> CHEST_OPEN
- playsound <player.location> EAT
- playsound <player.location> FIREWORK_LAUNCH
- playsound <player.location> ANVIL_LAND
- playsound <player.location> ARROW_HIT
- playsound <player.location> BLAZE_BREATH
}
- random {
- playeffect <player.location> RANDOM qty:100
}
- random {
- execute as_server "dis <context.entity.asplayer.name> chicken"
- execute as_server "dis <context.entity.asplayer.name> enderman"
- execute as_server "dis <context.entity.asplayer.name> donkey"
- execute as_server "dis <context.entity.asplayer.name> sponge"
- execute as_server "dis <context.entity.asplayer.name> chicken"
- execute as_server "dis <context.entity.asplayer.name> 40"
- execute as_server "dis <context.entity.asplayer.name> minecart"
- execute as_server "dis <context.entity.asplayer.name> mushroomcow"
- execute as_server "dis <context.entity.asplayer.name> tuxedo cat"
- execute as_server "dis <context.entity.asplayer.name> pink sheep"
- execute as_server "dis <context.entity.asplayer.name> undead horse"
- execute as_server "dis <context.entity.asplayer.name> skeletal horse"
- execute as_server "dis <context.entity.asplayer.name> cake_block"
- execute as_server "dis <context.entity.asplayer.name> squid"
- execute as_server "dis <context.entity.asplayer.name> boat"
}
} 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 targets:%1% "<player.name> Wabbajack effect has worn off!"
- flag wabbajacked:!
- flag %1% wabbaCount:--
- execute as_server "ud <player.name>"