ElectroTR
Demir Madencisi
- Mesajlar
- 282
- En iyi cevaplar
- 0
- Beğeniler
- 97
- Puanları
- 460
- Ruh hali
Kod:
# ================================================================
# Zombi Eventi ------
# ================================================================
options:
zombizaman: 2
variables:
{zombican} = 500
{zombizaman} = 2
{zombisayi} = 10
command /zombi [<text>] [<int>]:
aliases: zombie, zombievent
trigger:
if arg-1 is not set:
send "&7&m-------------------------------------" to player
send "&8&l> &aZombi etkinliğini başlatmak için &e/zombi baslat" to player
send "&8&l> &aZombiler'in doğacağı noktayı seçmek için &e/zombi spawn" to player
send "&8&l> &aZombiler'in canını ayarlamak için &e/zombi can" to player
send "&8&l> &aDoğacak Zombi sayısını ayarlamak için &e/zombi sayi"
send "&7&m-------------------------------------" to player
if arg-1 is "baslat":
if player has permission "zombi.admin":
if {zombispawn} is set:
broadcast "&c&lZombiEvent &8&l> &7Zombi Etkinliği başlamıştır! Zombileri keserek düşen itemleri köylütakas'ta harca! /warp zombievent"
loop {zombisayi} times:
spawn zombie at {zombispawn}
set the walk speed of the spawned zombie to 1
set maximum health of spawned zombie to {zombican}
set health of spawned zombie to {zombican}
set spawned zombie's name to "&eZombi"
spawn zombie at {zombispawn}
set the walk speed of the spawned zombie to 3
set maximum health of spawned zombie to 3000
set health of spawned zombie to 4000
set spawned zombie's tool to diamond sword of sharpness 10 and unbreaking 1000
set spawned zombie's name to "&c&lÖlüçağıran"
else:
send "&8&l> &aLütfen Zombi'lerin doğacağı noktayı seçiniz &e/zombi spawn"
if arg-1 is "spawn":
if player has permission "zombi.admin":
set {zombispawn} to location of player
send "&8&l> &aBaşarıyla bulunduğunuz nokta doğma yeri olarak ayarlandı !"
else:
send "&6&l> &cYetersiz yetki"
if arg-1 is "can":
if player has permission "zombi.admin":
if arg-2 is set:
set {zombican} to arg-2
send "&8&l> &aBaşarıyla Zombiler'in canı &e%{zombican}% &aolarak ayarlandı"
else:
send "&8&l> &c Bir sayı giriniz"
if arg-1 is "sayi":
if player has permission "zombi.admin":
if arg-2 is set:
set {zombisayi} to arg-2
send "&8&l> &aBaşarıyla Zombiler'in sayısı &e%{zombisayi}% &aolarak değiştirildi !"
else:
send "&8&l> &c Bir sayı giriniz"
on damage of entity:
set {_damage} to damage
attacker is a player
victim is a zombie
victim's name is "&c&lÖlüçağıran":
send "&c&m--------------------------------" to attacker
send "" to attacker
send "&8&l> &7Ölüçağıran'ın &c%health of victim% &7Canı Kaldı" to attacker
send "" to attacker
send "&8&l> &7Ölüçağıran'a verilen hasar &c+&c%damage%" to attacker
send "" to attacker
send "&c&m--------------------------------" to attacker
on damage of entity:
set {_damage} to damage
attacker is a player
victim is a zombie
victim's name is "&eZombi":
send "&c&m--------------------------------" to attacker
send "" to attacker
send "&8&l> &7Zombi'nin &c%health of victim% &7Canı Kaldı" to attacker
send "" to attacker
send "&8&l> &7Zombi'ye verilen hasar &c+&c%damage%" to attacker
send "" to attacker
send "&c&m--------------------------------" to attacker
on death:
attacker is a player
victim is a zombie
victim's name is "&c&lÖlüçağıran":
clear drops
give 1 enderpearl named "&f[&dÖlüçağıranın Gözü&f]" to attacker
send "&c&m--------------------------------" to attacker
send "" to attacker
send "&8&l> &7Ölüçağıran'ı &cÖldürdünüz&7.Size &c1 &7adet &f[&dÖlüçağıranın Gözü&f] &7verildi" to attacker
send "" to attacker
send "&c&m--------------------------------" to attacker
on death of zombie:
attacker is a player
victim is a zombie
victim's name is "&c&lÖlüçağıran"
if attacker is set
send "&c&lZombiEvent &8&l> &c&lÖlüçağıran &2&l%attacker% &atarafından katledildi!" to all players
strike lightning effect at the victim
on death of zombie:
attacker is a player
victim is a zombie
victim's name is "&eZombi":
clear drops
give 1 gun powder named "&7Zombi Tozu" to attacker
every {@zombizaman} hours:
execute console command "zombi baslat"