JuneX
Nerelerdesin Be Zümrüt?
- Katılım
- 12 Ekim 2019
- Mesajlar
- 529
- Elmaslar
- 126
- Puan
- 4.775
- Minecraft
- JuneZX
Kod:
options:
market-adi: &8&l» &aMarket &8&l«
istatistik-komut: marketbilgi
vip-indirim: true
command /{@istatistik-komut} [<player>]:
trigger:
if arg-1 is set:
set {_p} to arg-1
else:
set {_p} to player
if {sm-ok-ms-kb::%{_p}%::harcanan} is not set:
set {_harcanan} to 0
else:
set {_harcanan} to {sm-ok-ms-kb::%{_p}%::harcanan}
if {sm-ok-ms-kb::%{_p}%::toplamalis} is not set:
set {_ta} to 0
else:
set {_ta} to {sm-ok-ms-kb::%{_p}%::toplamalis}
if {sm-ok-ms-kb::%{_p}%::kazanilan} is not set:
set {_kazanilan} to 0
else:
set {_kazanilan} to {sm-ok-ms-kb::%{_p}%::kazanilan}
if {sm-ok-ms-kb::%{_p}%::toplamsatis} is not set:
set {_ts} to 0
else:
set {_ts} to {sm-ok-ms-kb::%{_p}%::toplamsatis}
open chest with 1 rows named "&bİstatistik : &c%{_p}%" to player
wait 3 ticks
format slot 3 of player with emerald named "&6Satın Alma" with lore "||&6&l> &fYapılan Toplam Satın Alma||&f &a%{_ta}% kere||||&6&l> &fToplam Harcanan Para||&f &a%{_harcanan}% TL" to be unstealable
format slot 5 of player with redstone named "&6Satış Yapma" with lore "||&6&l> &fYapılan Toplam Satış||&f &a%{_ts}% kere||||&6&l> &fToplam Kazanılan Para||&f &a%{_kazanilan}% TL" to be unstealable
command /ozelmarket [<text>] [<text>] [<text>]:
trigger:
if player has permission "ozelmarket.admin":
if arg-1 is "olustur" or "oluştur":
if player's target block is not sign:
send player title "&4✘" with subtitle "&cBir Tabelaya Bakmalısın!" for 2 seconds
stop
if arg-2 is set:
if arg-3 is not set:
send player title "&4✘" with subtitle "&cTürkçe Eşya Adı Girmelisin!" for 2 seconds
stop
if {sm-ok-ms::%player's target block's location%} is set:
send player title "&4✘" with subtitle "&cZaten Bir Markete Bakıyorsun!" for 2 seconds
stop
set {_a2} to "%arg-2%"
replace all "_" with " " in {_a2}
set {_a3} to "%arg-3%"
replace all "_" with " " in {_a3}
set {_i} to "%{_a2}%" parsed as item
if {_i} is set:
set line 1 of player's target block to "{@market-adi}"
set line 2 of player's target block to "&bAlış: &0&l&nYok"
set line 3 of player's target block to "&cSatış: &0&l&nYok"
set line 4 of player's target block to "&9%{_a3}%"
send player title "&a✔" with subtitle "&fAd : &b%{_i}% &fID : &b%id of {_i}% &fIsim : &b%{_a3}%" for 2 seconds
set {sm-ok-ms::%player's target block's location%} to {_i}
stop
else:
send player title "&4✘" with subtitle "&cGeçerli Bir Eşya Adı Gir!" for 2 seconds
stop
else:
send player title "&4✘" with subtitle "&cGeçerli Bir Eşya Adı Gir!" for 2 seconds
stop
else if arg-1 is "alis" or "alış":
if player's target block is not sign:
send player title "&4✘" with subtitle "&cBir Tabelaya Bakmalısın!" for 2 seconds
stop
if arg-2 is set:
if {sm-ok-ms::%player's target block's location%} is set:
set {_m} to arg-2 parsed as number
if {_m} is set:
if {_m} is less than 0:
send player title "&4✘" with subtitle "&cBir Fiyat Girmelisin!" for 2 seconds
stop
set line 2 of player's target block to "&bAlış : &5&n%{_m}%"
send player title "&a✔" with subtitle "&bAlış : &f&n%{_m}%" for 2 seconds
else:
send player title "&4✘" with subtitle "&cGeçerli Bir Fiyat Girmelisin!" for 2 seconds
stop
else:
send player title "&4✘" with subtitle "&cBir Market'e Bakmalısın!" for 2 seconds
stop
else:
send player title "&4✘" with subtitle "&cBir Fiyat Girmelisin!" for 2 seconds
stop
else if arg-1 is "satis" or "satış":
if player's target block is not sign:
send player title "&4✘" with subtitle "&cBir Tabelaya Bakmalısın!" for 2 seconds
stop
if arg-2 is set:
if {sm-ok-ms::%player's target block's location%} is set:
set {_m} to arg-2 parsed as number
if {_m} is set:
if {_m} is less than 0:
send player title "&4✘" with subtitle "&cBir Fiyat Girmelisin!" for 2 seconds
stop
set line 3 of player's target block to "&cSatış : &5&n%{_m}%"
send player title "&a✔" with subtitle "&cSatış : &f&n%{_m}%" for 2 seconds
else:
send player title "&4✘" with subtitle "&cGeçerli Bir Fiyat Girmelisin!" for 2 seconds
stop
else:
send player title "&4✘" with subtitle "&cBir Market'e Bakmalısın!" for 2 seconds
stop
else:
send player title "&4✘" with subtitle "&cBir Fiyat Girmelisin!" for 2 seconds
stop
else if arg-1 is "sil":
if {sm-ok-ms::%player's target block's location%} is set:
delete {sm-ok-ms::%player's target block's location%}
set player's target block to air
drop 1 sign at player's target block's location
send player title "&a✔" with subtitle "&fMarket Silindi!" for 2 seconds
stop
else:
send player title "&4✘" with subtitle "&cBir Market'e Bakmalısın!" for 2 seconds
stop
else:
message "&8&l&m-------/&a&lGelişmiş_Market&8&l&m\-------"
message "&6&l• &f/ozelmarket oluştur (ITEM-ID) (TURKCE-ADI) - &eMarket Oluşturur"
message "&6&l• &f/ozelmarket satış (FIYAT) - &eMarket'in Satış Fiyatını Belirler"
message "&6&l• &f/ozelmarket alış (FIYAT) - &eMarket'in Alış Fiyatını Belirler"
message "&6&l• &f/ozelmarket sil - &eMarket'i Siler"
message "&8&l&m-------/&a&lGelişmiş_Market&8&l&m\-------"
stop
else:
message "&8&l&m-------/&a&lGelişmişMarket&8&l&m\-------"
message "&6&l• &fÖzel Market kodlayan &eFurkanZhlp"
message "&8&l&m-------/&a&lGelişmişMarket&8&l&m\-------"
stop
on load:
delete {sm-ok-ms-gc::*}
on script unload:
delete {sm-ok-ms-gc::*}
on join:
delete {sm-ok-ms-gc::%player%::*}
on disconnect:
delete {sm-ok-ms-gc::%player%::*}
on chat:
if {sm-ok-ms-gc::%player%::item} is set:
cancel event
set {_adet} to "%message%" parsed as number
if {_adet} is greater than 0:
if {sm-ok-ms-gc::%player%::islem} is true:
execute console command "itemaldir2 %player% %{sm-ok-ms-gc::%player%::item}% %{sm-ok-ms-gc::%player%::fiyat}% %{_adet}%"
else if {sm-ok-ms-gc::%player%::islem} is false:
execute console command "itemsat2 %player% %{sm-ok-ms-gc::%player%::item}% %{sm-ok-ms-gc::%player%::fiyat} * {_adet}% %{_adet}%"
#send player title "&a✔" with subtitle "&aİşlem Başarılı!" for 2 seconds
else:
send player title "&4✘" with subtitle "&cİşlem İptal Edildi!" for 2 seconds
delete {sm-ok-ms-gc::%player%::*}
on right click on sign:
if {sm-ok-ms::%location of event-block%} is set:
if {sm-ok-ms-gc::%player%::item} is set:
stop
set {_s} to "%line 2 of block%"
replace all "&bAlış : &5&n" with "" in {_s}
set {_ap} to {_s} parsed as number
if {_ap} is set:
show 1 "heart" particles at location of event-block for player offset by 0, 0, 0
invoke "marketAL2" from the player and "%{sm-ok-ms::%location of event-block%}%" and "%line 2 of block%" and "%line 4 of block%"
stop
send player title "&4✘" with subtitle "&cBu Marketten Eşya Satın Alamazsın!" for 2 seconds
show mob spawner flames at the event-block to the player
stop
on left click on sign:
if {sm-ok-ms::%location of event-block%} is set:
if {sm-ok-ms-gc::%player%::item} is set:
stop
set {_s} to "%line 3 of block%"
replace all "&cSatış : &5&n" with "" in {_s}
set {_ap} to {_s} parsed as number
if {_ap} is set:
show 1 "heart" particles at location of event-block for player offset by 0, 0, 0
invoke "marketSAT2" from the player and "%{sm-ok-ms::%location of event-block%}%" and "%line 3 of block%" and "%line 4 of block%"
stop
send player title "&4✘" with subtitle "&cBu Markete Eşya Satamazsın" for 2 seconds
show mob spawner flames at the event-block to the player
stop
sub "marketAL2":
set {_p} to "%parameter-1%" parsed as player
set {_i} to "%parameter-2%" parsed as item
set {_ap} to "%parameter-3%"
set {_ti} to "%parameter-4%"
replace all "&9" with "" in {_ti}
replace all "&bAlış : &5&n" with "" in {_ap}
set {sm-ok-ms-gc::%{_p}%::item} to {_i}
set {sm-ok-ms-gc::%{_p}%::titem} to "%{_ti}%"
set {sm-ok-ms-gc::%{_p}%::fiyat} to {_ap} parsed as number
set {sm-ok-ms-gc::%{_p}%::islem} to true
if {sm-ok-ms-gc::%{_p}%::fiyat} is not set:
send {_p} title "&4✘" with subtitle "&cBu Market Hatalı Lütfen Yetkiliye Bildir!" for 2 seconds
delete {sm-ok-ms-gc::%{_p}%::*}
stop
send {_p} title "&aAL" with subtitle "&b%{_ti}% &fAlmak İstediğiniz Adedi Sohbete Giriniz.(İptal:0)" for 2 seconds
sub "marketSAT2":
set {_p} to "%parameter-1%" parsed as player
set {_i} to "%parameter-2%" parsed as item
set {_ap} to "%parameter-3%"
set {_ti} to "%parameter-4%"
replace all "&9" with "" in {_ti}
replace all "&cSatış : &5&n" with "" in {_ap}
set {sm-ok-ms-gc::%{_p}%::item} to {_i}
set {sm-ok-ms-gc::%{_p}%::titem} to "%{_ti}%"
set {sm-ok-ms-gc::%{_p}%::fiyat} to {_ap} parsed as number
set {sm-ok-ms-gc::%{_p}%::islem} to false
if {sm-ok-ms-gc::%{_p}%::fiyat} is not set:
send {_p} title "&4✘" with subtitle "&cBu Market Hatalı Lütfen Yetkiliye Bildir!" for 2 seconds
delete {sm-ok-ms-gc::%{_p}%::*}
stop
send {_p} title "&cSAT" with subtitle "&c%{_ti}% &fSatmak İstediğiniz Adedi Sohbete Giriniz.(İptal:0)" for 2 seconds
on break of sign:
if {sm-ok-ms::%location of event-block%} is set:
cancel event
command /itemaldir2 [<player>] [<item>] [<number>] [<number>]:
trigger:
if command sender is console:
set {_fiyat} to arg-3 * arg-4
if {@vip-indirim} is true:
if arg-1 have permission "market.vip":
set {_fiyat} to {_fiyat}/1.15 #/2
if arg-1's money is greater than or equal to {_fiyat}:
set {_i} to arg-2
set {_miktar} to arg-4
if arg-1 has enough space for arg-4 of arg-2:
remove {_fiyat} from arg-1's money
give arg-4 of arg-2 to arg-1
send arg-1 title "&aSATIN ALINDI" with subtitle "&aEşya: &b%{_miktar}% %{sm-ok-ms-gc::%arg-1%::titem}% &aFiyat: &b%{_fiyat}%" for 2 seconds
add 1 to {sm-ok-ms-kb::%arg-1%::toplamalis}
show 15 "heart" particles at location of arg-1 for arg-1 offset by 0, 0, 0
add {_fiyat} to {sm-ok-ms-kb::%arg-1%::harcanan}
delete {sm-ok-ms-gc::%arg-1%::*}
else:
send arg-1 title "&4✘" with subtitle "&cEnvanterinde Yeterli Alan Yok!" for 2 seconds
delete {sm-ok-ms-gc::%arg-1%::*}
else:
send arg-1 title "&4✘" with subtitle "&cYeterli Paran Yok!" for 2 seconds
delete {sm-ok-ms-gc::%arg-1%::*}
command /itemsat2 [<player>] [<item>] [<number>] [<number>]:
trigger:
if command sender is console:
if arg-1 have arg-4 of arg-2:
add arg-3 to arg-1's money
remove arg-4 of arg-2 from arg-1
send arg-1 title "&cSATILDI" with subtitle "&cEşya: &f%arg-4% %{sm-ok-ms-gc::%arg-1%::titem}% &cFiyat: &f%arg-3%" for 2 seconds
add 1 to {sm-ok-ms-kb::%arg-1%::toplamsatis}
add arg-3 to {sm-ok-ms-kb::%arg-1%::kazanilan}
delete {sm-ok-ms-gc::%arg-1%::*}
else:
send arg-1 title "&4✘" with subtitle "&cYeterli Eşyan Yok!" for 2 seconds
delete {sm-ok-ms-gc::%arg-1%::*}