Date: 2017/08/17 11:46:12 UTC-07: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
"No Farms For You":
type: world
events:
on entity dies:
- flag server spawnlimit.<context.entity.location.simple>:++ duration:30m
- if <server.flag[spawnlimit.<context.entity.location.simple>]> >= 3
{
# - narrate "Debug message normal mobs samelocation"
- determine NO_DROPS_OR_XP
}
on mm denizen death:
- flag server spawnlimit.<context.activemob.location.simple>:++ duration:30m
- if <server.flag[spawnlimit.<context.activemob.location.simple>]> >= 3
{
# - narrate "Debug message mythicmobs samelocation"
- determine drops:li@;money:0;exp:0
}
on player receives message:
- if <context.message> contains "dropped 0.0 gold"
{
- determine CANCELLED
}
#Try using a fatal damage event instead of on entity dies?
"NoSpawnersForYou":
type: world
events:
on entity spawns:
- if <context.entity.is_player>
{
- queue clear
}
- if '<context.reason>' == 'SPAWNER'
{
- wait 1t
- flag '<context.entity>' 'is_spawned.spawner'
}
if '<context.location.find.blocks[mob_spawner].within[8].size> > 0
{
- wait 1t
- flag <context.entity>' 'is_spawned.spawner'
}
on entity dies:
- if <context.entity.is_player>
{
- queue clear
}
- if <context.entity.has_flag[is_spawned.spawner]>
{
- announce to_console "Debug message normal mobs spawner"
- determine NO_DROPS_OR_XP
}
on mm denizen death:
# - if <context.activemob.entity.is_player>
# {
# - queue clear
# }
- if '<context.activemob.entity.has_flag[is_spawned.spawner]>'
{
- announce to_console "Debug message mythicmobs spawner"
- determine drops:li@;money:0;exp:0
}