Merhaba forum üyeleri bugün bir değişik skript ile beraberim.
Skriptimiz borsa yani ,Dolar,Altın,Bitcon,Euro
Skriptimiz borsa yani ,Dolar,Altın,Bitcon,Euro
Kod:
variables:
{yenilenme} = 10
{dolar} = 1200
{altin} = 1600
{bitcoin} = 55000
{sahipdolar.%player%} = 0
{sahipaltin.%player%} = 0
{sahipbitcoin.%player%} = 0
every 10 minutes:
set {yenilenme} to 10
set {dolar} to random integer between 3 and 10
set {bitcoin} to random integer between 50000 and 75000
set {altin} to random integer between 100 and 500
broadcast "&6Borsa &8» &fBorsa Durumu Yenilendi:"
broadcast "&aDolar &7: &f %{dolar}% TL"
broadcast "&eAltın &7: &f%{altin}% TL"
broadcast "&6Bitcoin &7: &f%{bitcoin}% TL"
execute console command "hd setline borsadd 2 &aDolar &7: &f %{dolar}% TL"
execute console command "hd setline borsadd 3 &eAltın &7: &f%{altin}% TL"
execute console command "hd setline borsadd 4 &6Bitcoin &7: &f%{bitcoin}% TL"
every minutes:
remove 1 from {yenilenme}
execute console command "hd setline borsadd 6 &b• &7&oYenilenmeye : &3%{yenilenme}% &7&odakika"
command /borsadegis3451:
permission: *.admin
permission message: &cGerekli yetkiye sahip deÄŸilsiniz.
trigger:
set {dolar} to random integer between 300 and 2000
set {bitcoin} to random integer between 50000 and 75000
set {altin} to random integer between 500 and 5000
broadcast "&6Borsa &8» &fBorsa Durumu Yenilendi:"
broadcast "&aDolar &7: &f %{dolar}% TL"
broadcast "&eAltın &7: &f%{altin}% TL"
broadcast "&6Bitcoin &7: &f%{bitcoin}% TL"
execute console command "hd setline borsadd 2 &aDolar &7: &f %{dolar}% TL"
execute console command "hd setline borsadd 3 &eAltın &7: &f%{altin}% TL"
execute console command "hd setline borsadd 4 &6Bitcoin &7: &f%{bitcoin}% TL"
command /borsaholo3451:
permission: *.admin
permission message: &cGerekli yetkiye sahip deÄŸilsiniz.
trigger:
execute player command "hd create borsadd &7&l&m-----&c&l Borsa Durumu &8&l&m-----"
execute player command "hd addline borsadd &aDolar &7: &f %{dolar}% TL"
execute player command "hd addline borsadd &eAltın &7: &f%{altin}% TL"
execute player command "hd addline borsadd &6Bitcoin &7: &f%{bitcoin}% TL"
execute player command "hd addline borsadd &7&l&m------------------------"
execute player command "hd addline borsadd &b• &8&oYenilenmeye : &2%{yenilenme}% &7&odakika"
command /borsa:
trigger:
open chest with 1 row named "&4Borsa" to the player
format slot 0 of player with Iron Ingot named "&aDolar" with lore "|| &8• &7Tiklayarak &aDolar &7alabilir/bozdurabilirsin.|| &8• &7&o%{dolar}% TL" to close then run [make player execute command "borsadolarmenu"]
format slot 1 of player with Gold Ingot named "&eAltın" with lore "|| &8• &7Tiklayarak &eAltın &7alabilir/bozdurabilirsin.|| &8• &7&o%{Altin}% TL" to close then run [make player execute command "borsaaltinmenu"]
format slot 2 of player with Diamond named "&6Bitcoin" with lore "|| &8• &7Tiklayarak &6Bitcoin &7alabilir/bozdurabilirsin.|| &8• &7&o%{Bitcoin}% TL" to close then run [make player execute command "borsabcmenu"]
format slot 4 of player with Book named "&f&lSahip Oldukların:" with lore "|| &8• &aDolar &7: &o%{sahipdolar.%player%}%|| &8• &eAltın &7: &o%{sahipaltin.%player%}%|| &8• &6Bitcoin &7: &o%{sahipbitcoin.%player%}%||" to close then run [make player execute command "borsa"]
format slot 7 of player with Paper named "&4Borsa Durumu:" with lore "|| &8• &aDolar &7: &o%{Dolar}% TL|| &8• &eAltın &7: &o%{altin}% TL|| &8• &6Bitcoin &7: &o%{bitcoin}% TL||" to close then run [make player execute command "borsa"]
format slot 8 of player with redstone block named "&4Menüyü kapat" to close
command /borsadolarmenu:
trigger:
send "&8&l&m--&8&l>&4&l Borsa > Dolar"
send "&f&oMevcut Dolar'ın: &6%{sahipdolar.%player%}%"
send "&f&oDolar Kuru: &6&o%{dolar}% TL"
command /borsaaltinmenu:
trigger:
send "&8&l&m--&8&l>&4&l Borsa > Altın"
send "&f&oMevcut Altın'ın: &6%{sahipaltin.%player%}%"
send "&f&oAltın Kuru: &6&o%{altin}% TL"
command /borsabcmenu:
trigger:
send "&8&l&m--&8&l>&4&l Borsa > Bitcoin"
send "&f&oMevcut Bitcoin'in: &6%{sahipbitcoin.%player%}%"
send "&f&oBitcoin Kuru: &6&o%{bitcoin}% TL"
command /bozdur <text>:
trigger:
if arg-1 isn't set:
send "&eBorsa &8» &7Neyini bozdurmak istiyorsun?"
stop
else:
if arg-1 isn't "dolar" or "altın" or "altin" or "bitcoin":
send "&eBorsa &8» &7Maalesef, bunu bozduramazsın!"
stop
if arg-1 is "dolar" or "altın" or "altin" or "bitcoin":
if arg-1 is "dolar":
if {sahipdolar.%player%} is less than 1:
send "&eBorsa &8» &7Yeterli &aDolar&7'ın yok!"
stop
else:
execute console command "money give %player% %{dolar}%"
remove 1 from {sahipdolar.%player%}
send "&eBorsa &8» &71 adet dolarını &6%{dolar}% &7TL karşılığında bozdurdun!"
stop
if arg-1 is "altın" or "altin":
if {sahipaltin.%player%} is less than 1:
send "&eBorsa &8» &7Yeterli &eAltın&7'ın yok!"
stop
else:
execute console command "money give %player% %{altin}%"
remove 1 from {sahipaltin.%player%}
send "&eBorsa &8» &71 adet altını &6%{altin}% &7TL karşılığında bozdurdun!"
stop
if arg-1 is "bitcoin":
if {sahipaltin.%player%} is less than 1:
send "&eBorsa &8» &7Yeterli &6Bitcoin&7'in yok!"
stop
else:
execute console command "money give %player% %{bitcoin}%"
remove 1 from {sahipbitcoin.%player%}
send "&eBorsa &8» &71 adet bitcoini &6%{bitcoin}% &7TL karşılığında bozdurdun!"
stop
command /al <text>:
trigger:
if arg-1 isn't set:
send "&eBorsa &8» &7Ne almak istiyorsun?"
stop
else:
if arg-1 isn't "dolar" or "altın" or "altin" or "bitcoin":
send "&eBorsa &8» &7Maalesef, bunu alamazsın!"
stop
if arg-1 is "dolar" or "altın" or "altin" or "bitcoin":
if arg-1 is "dolar":
if player's balance is less than {dolar}:
send "&eBorsa &8» &7Maalesef, yeterli nakitin yok!"
else:
add 1 to {sahipdolar.%player%}
execute console command "money take %player% %{dolar}%"
send "&eBorsa &8» &6%{dolar}% &7TL karşılığında 1 adet &aDolar aldın!"
if arg-1 is "altın" or "altin":
if player's balance is less than {altin}:
send "&eBorsa &8» &7Maalesef, yeterli nakitin yok!"
else:
add 1 to {sahipaltin.%player%}
execute console command "money take %player% %{altin}%"
send "&eBorsa &8» &6%{altin}% &7TL karşılığında 1 adet &eAltın aldın!"
if arg-1 is "bitcoin":
if player's balance is less than {bitcoin}:
send "&eBorsa &8» &7Maalesef, yeterli nakitin yok!"
else:
add 1 to {sahipbitcoin.%player%}
execute console command "money take %player% %{bitcoin}%"
send "&eBorsa &8» &6%{bitcoin}% &7TL karşılığında 1 adet &aDolar aldın!"
command /borsaadmin <text> <text> <offlineplayer> <number>:
permission: *.admin
permission message: &cGerekli yetkiye sahip deÄŸilsiniz!
trigger:
if arg-1 is "ver":
if arg-2 is "dolar":
if arg-3 is set:
if arg-4 is set:
add arg-4 to {sahipdolar.%arg-3%}
send "&eBorsa &8» &e&o%arg-3% &fisimli oyuncuya, &6&o%arg-4% &fadet &a&oDolar verdiniz!" to player
send "&eBorsa &8» &e&oYetkili, size &6&o%arg-4% &fadet &a&oDolar verdi!" to arg-3
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
if arg-2 is "altin" or "altın":
if arg-3 is set:
if arg-4 is set:
add arg-4 to {sahipaltin.%arg-3%}
send "&eBorsa &8» &e&o%arg-3% &fisimli oyuncuya, &6&o%arg-4% &fadet &e&oAltın verdiniz!" to player
send "&eBorsa &8» &e&oYetkili, size &6&o%arg-4% &fadet &e&oAltın verdi!" to arg-3
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
if arg-2 is "bitcoin":
if arg-3 is set:
if arg-4 is set:
add arg-4 to {sahipdolar.%arg-3%}
send "&eBorsa &8» &e&o%arg-3% &fisimli oyuncuya, &6&o%arg-4% &fadet &6&oBitcoin verdiniz!" to player
send "&eBorsa &8» &e&oYetkili, size &6&o%arg-4% &fadet &6&oBitcoin verdi!" to arg-3
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
if arg-1 is "al":
if arg-2 is "dolar":
if arg-3 is set:
if arg-4 is set:
remove arg-4 from {sahipdolar.%arg-3%}
send "&eBorsa &8» &e&o%arg-3% &fisimli oyuncudan, &6&o%arg-4% &fadet &a&oDolar aldınız!" to player
send "&eBorsa &8» &e&oYetkili, sizden &6&o%arg-4% &fadet &a&oDolar aldı!" to arg-3
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
if arg-2 is "altin" or "altın":
if arg-3 is set:
if arg-4 is set:
remove arg-4 from {sahipaltin.%arg-3%}
send "&eBorsa &8» &e&o%arg-3% &fisimli oyuncuydan, &6&o%arg-4% &fadet &e&oAltın aldınız!" to player
send "&eBorsa &8» &e&oYetkili, sizden &6&o%arg-4% &fadet &e&oAltın aldı!" to arg-3
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
if arg-2 is "bitcoin":
if arg-3 is set:
if arg-4 is set:
remove arg-4 from {sahipdolar.%arg-3%}
send "&eBorsa &8» &e&o%arg-3% &fisimli oyuncuydan, &6&o%arg-4% &fadet &6&oBitcoin aldınız!" to player
send "&eBorsa &8» &e&oYetkili, sizden &6&o%arg-4% &fadet &6&oBitcoin aldı!" to arg-3
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
else:
send "&eBorsa &8» &fDoğru kodlama: /borsaadmin &aver&7/&cal &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
command /borsagönder <text> <player> <number>:
trigger:
if arg-1 is set:
if arg-1 isn't "dolar" or "altin" or "altın" or "bitcoin":
send "&eBorsa &8» Maalesef, bunu gönderemezsin!"
if arg-1 is "dolar":
if arg-2 is set:
if arg-2 is player:
send "&eBorsa &8» Kendine mi göndereceksin?"
stop
else:
if arg-3 is set:
if {sahipdolar.%player%} is greater than arg-3:
remove arg-3 from {sahipdolar.%player%}
add arg-3 to {sahipdolar.%arg-2%}
send "&eBorsa &8» &e&o%arg-2% &fadlı oyuncuya &6&o%arg-3% adet &a&oDolar &fgönderdin!" to player
send "&eBorsa &8» &e&o%player% &fadlı oyuncu size &6&o%arg-3% adet &a&oDolar gönderdi!" to arg-2
stop
else:
send "&eBorsa &8» Yeterli Dolar'ın yok!"
stop
else:
send "&eBorsa &8» Doğru kodlama: /borsagönder &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
if arg-1 is "altın" or "altin":
if arg-2 is set:
if arg-3 is set:
if {sahipaltin.%player%} is greater than arg-3:
remove arg-3 from {sahipaltin.%player%}
add arg-3 to {sahipaltin.%arg-2%}
send "&eBorsa &8» &e&o%arg-2% &fadlı oyuncuya &6&o%arg-3% adet &e&oAltın &fgönderdin!" to player
send "&eBorsa &8» &e&o%player% &fadlı oyuncu size &6&o%arg-3% adet &e&oAltın gönderdi!" to arg-2
stop
else:
send "&eBorsa &8» Yeterli Altın'ın yok!"
stop
else:
send "&eBorsa &8» Doğru kodlama: /borsagönder &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
else:
send "&eBorsa &8» Doğru kodlama: /borsagönder &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
if arg-1 is "bitcoin":
if arg-2 is set:
if arg-3 is set:
if {sahipbitcoin.%player%} is greater than arg-3:
remove arg-3 from {sahipbitcoin.%player%}
add arg-3 to {sahipbitcoin.%arg-2%}
send "&eBorsa &8» &e&o%arg-2% &fadlı oyuncuya &6&o%arg-3% adet &6&oBitcoin &fgönderdin!" to player
send "&eBorsa &8» &e&o%player% &fadlı oyuncu size &6&o%arg-3% adet &6&oBitcoinn gönderdi!" to arg-2
stop
else:
send "&eBorsa &8» Yeterli Bitcoin'in yok!"
stop
else:
send "&eBorsa &8» Doğru kodlama: /borsagönder &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
else:
send "&eBorsa &8» Doğru kodlama: /borsagönder &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
else:
send "&eBorsa &8» Doğru kodlama: /borsagönder &adolar&7/&ealtın&7/&6bitcoin &7oyuncu miktar"
stop
command /bitcoinadmin:
permission: admin
trigger:
give tripwire hook named "&4AntMiner" to player
delete {_antminer1}
delete {_antminer1.%player%}
delete {_antminer1::%{_antminer1}%}
on rightclick with tripwire hook:
if tool's display name is "&4AntMiner":
if targeted block is bedrock:
if {antminer1.%player%} is not set:
remove 1 tripwire hook from player
create a gui with virtual chest named "Bitcoin" with 1 rows:
make gui slot 4 to redstone block named "&aMadencilik Yap" with lore "&70.02 Bitcoin Kazanırsın!":
close player's inventory
send player title "&eKORU" with subtitle "&7Cihazı 4 Dakika Boyunca Koru!" for 3 seconds
set {antminer1} to location of targeted block
set {antminer1::%{antminer1}%} to {antminer1}
set {antminer1.%player%} to true
wait 30 seconds
if {antminer1} is set:
add 0.05 to {sahipbitcoin.%player%}
send "&6Bitcoin &7: &a+0.05" to player
wait 60 seconds
if {antminer1} is set:
add 0.05 to {sahipbitcoin.%player%}
send "&6Bitcoin &7: &a+0.05" to player
wait 60 seconds
if {antminer1} is set:
add 0.05 to {sahipbitcoin.%player%}
send "&6Bitcoin &7: &a+0.05" to player
wait 60 seconds
if {antminer1} is set:
add 0.05 to {sahipbitcoin.%player%}
send "&6Bitcoin &7: &a+0.05" to player
delete {antminer1.%player%}
send player title "&aBAÅARILI" with subtitle "&a0.02 &7Bitcoin Kazandın!" for 3 seconds
delete {antminer1}
remove location of targeted block from {antminer1}
delete {antminer1::%{_location}%}
else:
send player title "&eCihaz Kırıldı" with subtitle "&a0.015 &7Bitcoin Kazandın!" for 3 seconds
delete {antminer1.%player%}
else:
send player title "&eCihaz Kırıldı" with subtitle "&a0.010 &7Bitcoin Kazandın!" for 3 seconds
delete {antminer1.%player%}
else:
send player title "&eCihaz Kırıldı" with subtitle "&a0.005 &7Bitcoin Kazandın!" for 3 seconds
delete {antminer1.%player%}
else:
send player title "&eCihaz Kırıldı" with subtitle "&a0 &7Bitcoin Kazandın!" for 3 seconds
delete {antminer1.%player%}
open last gui to player
else:
send player title "&7Aktif" with subtitle "&eZaten Orada AntMiner Mevcut" for 3 seconds
else:
cancel event
send player title "&4&lHATA" with subtitle "&7Sadece Katman Kayasına Koyabilirsin" for 4 seconds
on break of tripwire hook:
if {antminer1::%location of targeted block%} is set:
remove location of targeted block from {antminer1}
delete {antminer1}
delete {antminer1::%location of targeted block%}
send player title "&cAntMiner" with subtitle "&7Parçaladın!" for 3 seconds