Files
duyuru.sk
kit-menusu.sk
kurucu-panel.sk
laxeron-gorevleri.sk
shard-sistemi.sk
Code
5 269
laxeron-gorevleri.sk
options:
prefix: &8[&6LaxeronSMP&8]&r
command /gorev:
trigger:
if {lax.quest.stone::%uuid of player%} is not set:
set {lax.quest.stone::%uuid of player%} to 0
if {lax.quest.zombie::%uuid of player%} is not set:
set {lax.quest.zombie::%uuid of player%} to 0
if {lax.quest.skeleton::%uuid of player%} is not set:
set {lax.quest.skeleton::%uuid of player%} to 0
if {shards::%uuid of player%} is not set:
set {shards::%uuid of player%} to 0
set {_menu} to chest inventory with 3 rows named "&8LaxeronSMP Gorevleri"
set slot 10 of {_menu} to stone named "&eTas Ustasi" with lore "&7Tas kir: %{lax.quest.stone::%uuid of player%}%/64"
set slot 11 of {_menu} to emerald named "&aOdul: 10 shard"
set slot 13 of {_menu} to zombie head named "&cZombi Avcisi" with lore "&7Zombi oldur: %{lax.quest.zombie::%uuid of player%}%/10"
set slot 14 of {_menu} to emerald named "&aOdul: 15 shard"
set slot 16 of {_menu} to skeleton skull named "&fIskelet Avcisi" with lore "&7Iskelet oldur: %{lax.quest.skeleton::%uuid of player%}%/5"
set slot 17 of {_menu} to emerald named "&aOdul: 20 shard"
open {_menu} to player
on break of stone:
if {lax.quest.stone::%uuid of player%} is not set:
set {lax.quest.stone::%uuid of player%} to 0
if {lax.quest.stone::%uuid of player%} is less than 64:
add 1 to {lax.quest.stone::%uuid of player%}
on death of zombie:
if attacker is a player:
if {lax.quest.zombie::%uuid of attacker%} is not set:
set {lax.quest.zombie::%uuid of attacker%} to 0
if {lax.quest.zombie::%uuid of attacker%} is less than 10:
add 1 to {lax.quest.zombie::%uuid of attacker%}
on death of skeleton:
if attacker is a player:
if {lax.quest.skeleton::%uuid of attacker%} is not set:
set {lax.quest.skeleton::%uuid of attacker%} to 0
if {lax.quest.skeleton::%uuid of attacker%} is less than 5:
add 1 to {lax.quest.skeleton::%uuid of attacker%}
on inventory click:
if name of event-inventory is "&8LaxeronSMP Gorevleri":
cancel event
if clicked slot is 11:
if {lax.quest.stone::%uuid of player%} is less than 64:
send "&cTas gorevini henuz tamamlamadin." to player
stop
if {lax.quest.claimed::%uuid of player%::stone} is true:
send "&cBu gorevin odulunu zaten aldin." to player
stop
set {lax.quest.claimed::%uuid of player%::stone} to true
add 10 to {shards::%uuid of player%}
send "{@prefix} &aTas gorevini tamamladin: &b10 shard&a." to player
stop
if clicked slot is 14:
if {lax.quest.zombie::%uuid of player%} is less than 10:
send "&cZombi gorevini henuz tamamlamadin." to player
stop
if {lax.quest.claimed::%uuid of player%::zombie} is true:
send "&cBu gorevin odulunu zaten aldin." to player
stop
set {lax.quest.claimed::%uuid of player%::zombie} to true
add 15 to {shards::%uuid of player%}
send "{@prefix} &aZombi gorevini tamamladin: &b15 shard&a." to player
stop
if clicked slot is 17:
if {lax.quest.skeleton::%uuid of player%} is less than 5:
send "&cIskelet gorevini henuz tamamlamadin." to player
stop
if {lax.quest.claimed::%uuid of player%::skeleton} is true:
send "&cBu gorevin odulunu zaten aldin." to player
stop
set {lax.quest.claimed::%uuid of player%::skeleton} to true
add 20 to {shards::%uuid of player%}
send "{@prefix} &aIskelet gorevini tamamladin: &b20 shard&a." to player