options:
prefix: &6&l>
function pvpMarketArmor(p: player, i: item, price: integer, name: text):
if {_p}'s balance >= {_price}:
remove {_price} from {_p}'s balance
enchant {_i} with protection 4
enchant {_i} with unbreaking 3
give {_i} named "%{_name}%" to {_p}
send "{@prefix} &aAlışveriş Başarılı." to {_p}
else:
send "{@prefix} &7Yeteri Kadar Paran Yok." to {_p}
function pvpMarketSword(p: player, i: item, price: integer, name: text):
if {_p}'s balance >= {_price}:
remove {_price} from {_p}'s balance
enchant {_i} with sharpness 5
enchant {_i} with fire aspect 3
enchant {_i} with smite 5
enchant {_i} with unbreaking 3
give {_i} named "%{_name}%" to {_p}
send "{@prefix} &aAlışveriş Başarılı." to {_p}
else:
send "{@prefix} &7Yeteri Kadar Paran Yok." to {_p}
function pvpMarketMenu(p: player):
open virtual chest with size 6 named "&4PvP Market" to {_p}
make gui slot 11 of {_p} with diamond helmet named "&bElmas Kask" with lore "||&8➤ &7Özellikler;||||&6● &eKoruma 4||&6● &eKırılmazlık 3||||&8➤ &7Fiyat;||||&6● &e1.000.000||||&aSatın Almak Için Tıkla." to run:
pvpMarketArmor(player, diamond helmet, 1000000, "&bElmas Kask")
make gui slot 20 of {_p} with diamond chestplate named "&bElmas Göğüslük" with lore "||&8➤ &7Özellikler;||||&6● &eKoruma 4||&6● &eKırılmazlık 3||||&8➤ &7Fiyat;||||&6● &e1.000.000||||&aSatın Almak Için Tıkla." to run:
pvpMarketArmor(player, diamond chestplate, 1000000, "&bElmas Göğüslük")
make gui slot 29 of {_p} with diamond leggings named "&bElmas Pantolon" with lore "||&8➤ &7Özellikler;||||&6● &eKoruma 4||&6● &eKırılmazlık 3||||&8➤ &7Fiyat;||||&6● &e1.000.000||||&aSatın Almak Için Tıkla." to run:
pvpMarketArmor(player, diamond leggings, 1000000, "&bElmas Pantolon")
make gui slot 38 of {_p} with diamond boots named "&bElmas Botlar" with lore "||&8➤ &7Özellikler;||||&6● &eKoruma 4||&6● &eKırılmazlık 3||||&8➤ &7Fiyat;||||&6● &e1.000.000||||&aSatın Almak Için Tıkla." to run:
pvpMarketArmor(player, diamond boots, 1000000, "&bElmas Botlar")
make gui slot 15 of {_p} with diamond sword named "&bElmas Kılıç" with lore "||&8➤ &7Özellikler;||||&6● &eKeskinlik 5||&6● &eAlevden Çehre 3||&6● &eDarbe 5||&6● &eKırılmazlık 3||||&8➤ &7Fiyat;||||&6● &e1.000.000||||&aSatın Almak Için Tıkla." to run:
pvpMarketSword(player, diamond sword, 1000000, "&bElmas Kılıç")
make gui slot 24 of {_p} with fishing rod named "&aOlta" with lore "||&8➤ &7Özellikler;||||&6● &eKırılmazlık 10||||&8➤ &7Fiyat;||||&6● &e1.000.000||||&aSatın Almak Için Tıkla." to run:
if {_p}'s balance >= 1000000:
remove 1000000 from {_p}'s balance
give a fishing rod of unbreaking 10 named "&aOlta" to {_p}
send "{@prefix} &aAlışveriş Başarılı." to {_p}
else:
send "{@prefix} &7Yeteri Kadar Paran Yok." to {_p}
make gui slot 33 of {_p} with 322 named "&dAltın Elma &ex32" with lore "||&8➤ &7Fiyat;||||&6● &e1.000.000||||&aSatın Almak Için Tıkla." to run:
if {_p}'s balance >= 1000000:
remove 1000000 from {_p}'s balance
give 32 golden apple named "&dAltın Elma" to {_p}
send "{@prefix} &aAlışveriş Başarılı." to {_p}
else:
send "{@prefix} &7Yeteri Kadar Paran Yok." to {_p}
make gui slot 42 of {_p} with enchanted golden apple named "&dBüyülü Altın Elma &ex8" with lore "||&8➤ &7Fiyat;||||&6● &e1.000.000||||&aSatın Almak Için Tıkla." to run:
if {_p}'s balance >= 1000000:
remove 1000000 from {_p}'s balance
give 8 enchanted golden apple named "&dBüyülü Altın Elma" to {_p}
send "{@prefix} &aAlışveriş Başarılı." to {_p}
else:
send "{@prefix} &7Yeteri Kadar Paran Yok." to {_p}
make gui slot 22 of {_p} with sunflower named "&6Paran" with lore "&e%{_p}'s balance%"
make gui slot 31 of {_p} with barrier named "&cMenüyü Kapat" to run:
close {_p}'s inventory
command /pvpmarket:
trigger:
pvpMarketMenu(player)
Function ama kod kısalttı için oyun içi sıkıntılar yaratmaz çokDeluxeMenus ile yapmanı tavsiye ederim daha performanslı olurdu.
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!