command /ırk [<text>]:
trigger:
if arg-1 isn't set:
open virtual chest with size 1 named "Irk Seçimi" to player
make gui slot 0 of player with Diamond Sword named "Warrior" with lore "&6Warrior Yetenekleri:||&a-&fEkstra Can||&a-&fEkstra Hasar" to close then run player command "ırk warrior"
make gui slot 1 of player with Bow named "Elf" with lore "&6Elf Yetenekleri:||&a-&fEkstra Hasar||&a-&fKörelten Ok" to close then run player command "ırk elf"
if arg-1 is "warrior":
if {class::%player%} isn't set:
set {class::%player%} to "warrior"
set the maximum health of player to 15
send "&eArtık yoluna &fWarrior &eolarak devam ediceksin"
else:
send "&eZaten bir ırk'ın mensubusun"
if arg-1 is "elf":
if {class::%player%} isn't set:
set {class::%player%} to "elf"
send "&eArtık yoluna &fElf &eolarak devam ediceksin"
else:
send "&eZaten bir ırk'ın mensubusun"
on damage:
if shooter's tool is bow:
if {class::%shooter%} is "elf"
chance of 10%:
apply blindness to victim for 5 seconds
chance of 10%:
add 1 to damage
if attacker's tool is sword:
if {class::%attacker%} is "warrior":
chance of 10%:
add 1 to damage