'antidrop':
type: world
debug: true
events:
on player death:
- if <player.in_group[mystic]> {
- - flag <player> deathslots:<player.inventory.list_contents.get[1].to[9]>
- - determine <player.inventory.list_contents.get[10].to[27]>
+ - flag <player> deathslots:<player.inventory.list_contents.get[1].to[9]||li@>
+ - determine <player.inventory.list_contents.get[10].to[27]||li@>
}
- if <player.in_group[stammi]> {
- define drop <player.inventory.list_contents>.exclude[<player.flag[slot1]>|<player.flag[slot2]>|<player.flag[slot3]>|<player.flag[slot4]>]>
- announce %drop%
- determine <def[drop]>
}
- if <player.in_group[vip]> {
- determine <player.inventory.list_contents.as_item.exclude[<player.flag[slot1]>|<player.flag[slot2]>|<player.flag[slot3]>|<player.flag[slot4]>|<player.flag[slot5]>|<player.flag[slot6]>]>
}
- if <player.in_group[warriorknight]> {
- determine <player.inventory.list_contents.as_item.exclude[<player.flag[slot1]>|<player.flag[slot2]>|<player.flag[slot3]>|<player.flag[slot4]>|<player.flag[slot5]>|<player.flag[slot6]>|<player.flag[slot7]>]>
}
- if <player.in_group[elite]> {
- determine <player.inventory.list_contents.as_item.exclude[<player.flag[slot1]>|<player.flag[slot2]>|<player.flag[slot3]>|<player.flag[slot4]>|<player.flag[slot5]>]>
}
- if <player.in_group[Spieler+]> {
- determine <player.inventory.list_contents.exclude[<player.flag[slot1]>|<player.flag[slot2]>].as_item>
}
- if <player.in_group[Spieler]> {
- determine <player.inventory.list_contents>
}
on player respawns:
- if <player.has_flag[deathslots]> {
- - inventory o:<player.flag[deathslots].as_list> d:<player.inventory>
+ - inventory set o:<player.flag[deathslots].as_list> d:<player.inventory>
- flag player deathslots:!
}