Killergang
Somon Balığı Selam Vermeye Geldi
- Katılım
- 7 Mart 2021
- Mesajlar
- 24
- Elmaslar
- 5
- Puan
- 85
- Yaş
- 22
Obsicoin skriptini biraz geliştirdim tek komutla calışıyor ilk defa böyle yaptım.
Hatalar varsa söylerseniz sevinirim.
Yaparken chestcommands ve skript kullandım.
Skript kodu
chestcommands kodu:
Hatalar varsa söylerseniz sevinirim.
Yaparken chestcommands ve skript kullandım.
Skript kodu
Kod:
variables:
{obsicoin::%player%} = 0
on first join:
set {obsicoin::%player%} to 0
command /obsicoin [<text>] [<offlineplayer>] [<int>] :
trigger:
if arg 1 is not set:
if arg 2 is not set:
if arg 3 is not set:
send "&eMevcut obsicoin'in : {obsicoin::%player%}"
if arg 1 is "bak":
if arg 2 is set:
if player has permission "obsicoin.admin":
send "%arg-2% adlı oyuncunun coin miktarı: {obsicoin::%arg-2%} to player
else:
send "Bunun için iznin yok"
if arg 1 is "sil":
if arg 2 is set:
if arg 3 is set:
if player has permission "obsicoin.admin":
remove %arg-3% from {obsicoin::%arg-2%}
send "%arg-2% adlı oyuncudan %arg-3% coin silindi." to player
send "Hesabından %arg-3% coin silindi." To %arg-2%
else:
send "Bunun için iznin yok." to player
else:
if arg 1 is "ekle":
if arg 2 is set:
if arg 3 is set:
if player has permission "obsicoin.admin"
add %arg-3% to {obsicoin::%arg-2%}
send " %arg-2% adlı oyuncudan %arg-3% obsicoin silindi." to player
send " hesabınızdan %arg-3% obsicoin silindi" to arg-2
else:
send "yeterli yetkin yok" to player
else:
if arg 1 is "sifirla" or "sıfırla":
if arg 2 is set:
if arg 3 is not set:
if player has permission "obsicoin.admin":
delete {obsicoin::%arg-2%}
send "%arg-2% adlı oyuncunun obsicoin'i sıfırlandı" to player
send "hesabınızdaki obsicoin sıfırlandı." to player
else:
send "bilgi için /obsicoin bilgi yazın" to player
command /obsicoin bilgi:
trigger:
if player has permission "obsicoin.genel"
send " obsicoin menu "
send " /obsicoin : yazarak obsicoin'ine bakabilirsin" to player
send " /obsimarket : yazarak obsicoin marketini açabilirsin" to player
if player has permission "obsicoin.admin"
send " obsicoin admin menu " to player
send " /obsicoin sil : yazarak oyuncudan obsicoin silebilirsin." to player
send " /obsicoin ekle : yazarak oyuncuya obsicoin ekleyebilirsin." to player
send " /obsicoin sıfırla : yazarak oyuncunun obsicoinini sıfırlayabilirsin." to player
send " /obsicoin bak : yazarak oyuncunun obsicoinine bakabilirsin." to player
on break of obsidian:
if player has permission "vip.edit"
add 5 to {obsicoin::%player%}
else:
add 1 to {obsicoin::%player%}
command /paraçeki1kt:
trigger:
if player {obsicoin::%player%} bigger than 1999:
rewome 2000 from {obsicoin::%player%}
give player paper named "&b1KT para çeki"
send "1 KT para çeki alındı kullanmak için kağıta sağ tıkla" to player
else:
send "yeterli obsicoininiz yok" to player
command /paraçeki10kt:
trigger:
if player {obsicoin::%player%} bigger than 4999:
rewome 5000 from {obsicoin::%player%}
give player paper named "&b10 KT para çeki"
send "10 KT para çeki alındı kullanmak için kağıta sağ tıkla" to player
else:
send "yeterli obsicoininiz yok" to player
command /paraçeki100kt:
trigger:
if player {obsicoin::%player%} bigger than 7999:
rewome 8000 from {obsicoin::%player%}
give player paper named "&b100 KT para çeki"
send "100 KT para çeki alındı kullanmak için kağıta sağ tıkla" to player
else:
send "yeterli obsicoinin yok" to player
command /kazmav1:
trigger:
if player {obsicoin::%player%} bigger than 9999:
rewome 10000 from {obsicoin::%player%}
give player diamond pickaxe named "&bObsiKazma v1" enchant: efficiency:40 unreakable:40
send "ObsiKazma v1 alındı" to player
else:
send "yeterli obsicoinin yok" to player
command /kazmav2:
trigger:
if player {obsicoin::%player%} bigger than 12999:
rewome 13000 from {obsicoin::%player%}
give player diamond pickaxe named "&bObsiKazma v2" enchant: efficiency:60 unreakable:60
send "ObsiKazma v2 alındı" to player
else:
send " yeterli obsicoinin yok" to player
command /kazmav3:
trigger:
if player {obsicoin::%player%} bigger than 15999:
rewome 16000 from {obsicoin::%player%}
give player diamond pickaxe named "&bObsiKazma v3" enchant: efficiency:80 unreakable:80
send "ObsiKazma v3 alındı" to player
else:
send " yeterli obsicoininiz yok" to player
on rightclick holding a paper:
if tool's name is "&b 1KT para çeki":
execute console command "money give %player% 1000000000000000"
send "&c&o1KT para ceki &a&lkullanildi!" to player
on rightclick holding a paper:
if tool's name is "&b 10KT para çeki":
execute console command "money give %player% 10000000000000000"
send "&c&o10KT para ceki &a&lkullanildi!" to player
on rightclick holding a paper:
if tool's name is "&b 100KT para çeki":
execute console command "money give %player% 100000000000000000"
send "&c&o100KT para ceki &a&lkullanildi!" to player
chestcommands kodu:
Kod:
######################
#+ +#
# MENU SETTINGS #
#+ +#
######################
menu-settings:
name: '&6&lobsi market'
rows: 6
command: 'obsimarket'
######################
#+ +#
# ITEMS #
#+ +#
######################
1ktcek:
COMMAND: '1ktparaceki'
NAME: '&b[**] 1KT para çeki &b [**]'
LORE:
- gelen kağıta sağ tıklayarak 1KT para alabilirsin.
- 2000 obsi coin
ID: 339
POSITION-X: 3
POSITION-Y: 2
10ktcek:
COMMAND: '10ktparaceki'
NAME: '&b[**] 10KT para çeki &b [**]'
LORE:
- gelen kağıta sağ tıklayarak 10KT para alabilirsin.
- 5000 obsi coin
ID: 339
POSITION-X: 4
POSITION-Y: 2
100ktcek:
COMMAND: '100ktparaceki'
NAME: '&b[**] 100KT para çeki &b [**]'
LORE:
- gelen kağıta sağ tıklayarak 100KT para alabilirsin.
- 8000 obsi coin
ID: 339
POSITION-X: 5
POSITION-Y: 2
obsicoin:
COMMAND: 'obsicoin'
NAME: '&b[**] obsicoinin &b [**]'
LORE:
- mevcut obsicoin'in {obsicoin::%player%}
-
ID: 397:3
POSITION-X: 9
POSITION-Y: 1
kazma1:
COMMAND: 'kazmav1'
NAME: '&b[**] ObsiCoin kazması v1 &b [**]'
LORE:
- ObsiKazma v1 almak için tıkla.
- özellikler:
- verimlilik (40)
- kırılmazlık (40)
- 10000 obsi coin
-
ID: 278
POSITION-X: 4
POSITION-Y: 3
kazma2:
COMMAND: 'kazmav2'
NAME: '&b[**] ObsiCoin kazması v2 &b [**]'
LORE:
- ObsiKazma v1 almak için tıkla.
- özellikler:
- verimlilik (60)
- kırılmazlık (60)
- 13000 obsi coin
-
ID: 278
POSITION-X: 5
POSITION-Y: 3
kazma3:
COMMAND: 'kazmav3'
NAME: '&b[**] ObsiCoin kazması v3 &b [**]'
LORE:
- ObsiKazma v1.
- özellikler:
- verimlilik (80)
- kırılmazlık (80)
- 16000 obsi coin
-
ID: 278
POSITION-X: 6
POSITION-Y: 3