ClearMan61
Kömür Madencisi
- En iyi cevaplar
- 0
Adamlar market yapıyorlar tıkladığın zaman alıcağınız adedi girin diyorlar hiç komut girmeden direk chat e yazınca yazdığı kadar geliyor onun genel skriptini yazarmısınız kısa
on sign change:
line 4 is "al":
player is op:
set line 1 to "&6&lMarket"
set line 2 to "%Line 2%"
set line 4 to "&2Alim Fiyati"
if {fiyat.%line 2%} is set:
set {fiyat.%line 2%} to line 3
set {%line 2%} to line 2
else:
set {fiyat.%line 2%} to line 3
set {%line 2%} to line 2
line 4 is "sat":
player is op:
set line 1 to "&6&lMarket"
set line 2 to "%Line 2%"
set line 4 to "&4Satis Fiyati"
if {fiyat.%line 2%} is set:
set {fiyat.%line 2%} to line 3
set {%line 2%} to line 2
set {satisfiyat.%line 2%} to line 3
else:
set {fiyat.%line 2%} to line 3
set {%line 2%} to line 2
set {satisfiyat.%line 2%} to line 3
on rightclick on a sign:
line 4 of clicked block is "&2Alim Fiyati":
open chest with 1 rows named "&2Alim Menusu" to player
wait 1 tick
{muhur.%player%} isn't set:
format slot 4 of player with emerald named "&6Market Muhru" with lore "&fMarket muhrun yok! 10k ya almak icin tikla!" to close then run [make player execute command "muhur"]
else:
format slot 0 of player with 64 paper named "&4%line 2 of clicked block%" with lore "&664 Tane al! ({alimfiyat.%line 2 of clicked block%} * 64)" to close then run [make player execute command "alitem %line 2 of clicked block% 64"]
format slot 2 of player with 32 paper named "&4%line 2 of clicked block%" with lore "&632 Tane al! [{alimfiyat.%line 2 of clicked block%} * 32]" to close then run [make player execute command "alitem %line 2 of clicked block% 32"]
format slot 4 of player with 16 paper named "&4%line 2 of clicked block%" with lore "&616 Tane al! [{alimfiyat.%line 2 of clicked block%} * 16]" to close then run [make player execute command "alitem %line 2 of clicked block% 16"]
format slot 6 of player with 8 paper named "&4%line 2 of clicked block%" with lore "&68 Tane al! [{alimfiyat.%line 2 of clicked block%} * 8]" to close then run [make player execute command "alitem %line 2 of clicked block% 8"]
format slot 8 of player with 4 paper named "&4%line 2 of clicked block%" with lore "&64 Tane al! [{alimfiyat.%line 2 of clicked block%} * 4]" to close then run [make player execute command "alitem %line 2 of clicked block% 4"]
on rightclick on a sign:
line 4 of clicked block is "&4Satis Fiyati":
open chest with 1 rows named "&4Satis Menusu" to player
wait 1 tick
{muhur.%player%} isn't set:
format slot 4 of player with emerald named "&6Market Muhru" with lore "&fMarket muhrun yok! 10k ya almak icin tikla!" to close then run "msg %player% /muhur komutuyla alabilirsin!"
else:
format slot 0 of player with 64 paper named "&4%line 2 of clicked block%" with lore "&664 Tane sat! ({satisfiyat.%line 2 of clicked block%} * 64)" to close then run [make player execute command "satitem %line 2 of clicked block% 64"]
format slot 2 of player with 32 paper named "&4%line 2 of clicked block%" with lore "&632 Tane al! [{satisfiyat.%line 2 of clicked block%} * 32]" to close then run [make player execute command "satitem %line 2 of clicked block% 32"]
format slot 4 of player with 16 paper named "&4%line 2 of clicked block%" with lore "&616 Tane al! [{satisfiyat.%line 2 of clicked block%} * 16]" to close then run [make player execute command "satitem %line 2 of clicked block% 16"]
format slot 6 of player with 8 paper named "&4%line 2 of clicked block%" with lore "&68 Tane al! [{satisfiyat.%line 2 of clicked block%} * 8]" to close then run [make player execute command "satitem %line 2 of clicked block% 8"]
format slot 8 of player with 4 paper named "&4%line 2 of clicked block%" with lore "&64 Tane sat! [{satisfiyat.%line 2 of clicked block%} * 4]" to close then run [make player execute command "satitem %line 2 of clicked block% 4"]
command /muhur [<text>] [<text>]:
trigger:
if arg 1 is not set:
if player's balance is greater than or equal to 10000:
set {muhur.%player%} to true
send "&2Basariyla muhrunu aldin. Artik marketi kullanabilirsin!"
else:
send "&2Yeterli paran yok!"
if arg 1 is "sil":
if arg 2 is not set:
send "/marketmuhru sil oyuncu"
else:
clear {muhur.%arg 2%}
send "&4Kullanici kimligi basariyla silindi!"
command /alitem <text> <int>:
trigger:
if {alimfiyat.%arg 1%} is not set:
send "&6Bu urune bir fiyat bicilmemis."
else:
if player's balance is greater than or equal to {alimfiyat.%arg 1%}:
execute console command "/give %player% %arg 1% %arg 2%"
execute console command "/money take %player% [{alimfiyat.%arg 1%} * %arg 2%]"
command /satitem <text> <int>:
trigger:
if {satisfiyat.%arg 1%} is not set:
send "&6Bu urune bir fiyat bicilmemis."
else:
remove arg-2 arg-1 from player's inventory
execute console command "/eco give %player% [{satisfiyat.%arg 1%} * %arg 2%]"
istediğim market skripti değil o chat'e komut kullanmadan komut kullanmış gibi olma onu nasıl yapılıyoruzİstediğin kodu buldum
Kod:on sign change: line 4 is "al": player is op: set line 1 to "&6&lMarket" set line 2 to "%Line 2%" set line 4 to "&2Alim Fiyati" if {fiyat.%line 2%} is set: set {fiyat.%line 2%} to line 3 set {%line 2%} to line 2 else: set {fiyat.%line 2%} to line 3 set {%line 2%} to line 2 line 4 is "sat": player is op: set line 1 to "&6&lMarket" set line 2 to "%Line 2%" set line 4 to "&4Satis Fiyati" if {fiyat.%line 2%} is set: set {fiyat.%line 2%} to line 3 set {%line 2%} to line 2 set {satisfiyat.%line 2%} to line 3 else: set {fiyat.%line 2%} to line 3 set {%line 2%} to line 2 set {satisfiyat.%line 2%} to line 3 on rightclick on a sign: line 4 of clicked block is "&2Alim Fiyati": open chest with 1 rows named "&2Alim Menusu" to player wait 1 tick {muhur.%player%} isn't set: format slot 4 of player with emerald named "&6Market Muhru" with lore "&fMarket muhrun yok! 10k ya almak icin tikla!" to close then run [make player execute command "muhur"] else: format slot 0 of player with 64 paper named "&4%line 2 of clicked block%" with lore "&664 Tane al! ({alimfiyat.%line 2 of clicked block%} * 64)" to close then run [make player execute command "alitem %line 2 of clicked block% 64"] format slot 2 of player with 32 paper named "&4%line 2 of clicked block%" with lore "&632 Tane al! [{alimfiyat.%line 2 of clicked block%} * 32]" to close then run [make player execute command "alitem %line 2 of clicked block% 32"] format slot 4 of player with 16 paper named "&4%line 2 of clicked block%" with lore "&616 Tane al! [{alimfiyat.%line 2 of clicked block%} * 16]" to close then run [make player execute command "alitem %line 2 of clicked block% 16"] format slot 6 of player with 8 paper named "&4%line 2 of clicked block%" with lore "&68 Tane al! [{alimfiyat.%line 2 of clicked block%} * 8]" to close then run [make player execute command "alitem %line 2 of clicked block% 8"] format slot 8 of player with 4 paper named "&4%line 2 of clicked block%" with lore "&64 Tane al! [{alimfiyat.%line 2 of clicked block%} * 4]" to close then run [make player execute command "alitem %line 2 of clicked block% 4"] on rightclick on a sign: line 4 of clicked block is "&4Satis Fiyati": open chest with 1 rows named "&4Satis Menusu" to player wait 1 tick {muhur.%player%} isn't set: format slot 4 of player with emerald named "&6Market Muhru" with lore "&fMarket muhrun yok! 10k ya almak icin tikla!" to close then run "msg %player% /muhur komutuyla alabilirsin!" else: format slot 0 of player with 64 paper named "&4%line 2 of clicked block%" with lore "&664 Tane sat! ({satisfiyat.%line 2 of clicked block%} * 64)" to close then run [make player execute command "satitem %line 2 of clicked block% 64"] format slot 2 of player with 32 paper named "&4%line 2 of clicked block%" with lore "&632 Tane al! [{satisfiyat.%line 2 of clicked block%} * 32]" to close then run [make player execute command "satitem %line 2 of clicked block% 32"] format slot 4 of player with 16 paper named "&4%line 2 of clicked block%" with lore "&616 Tane al! [{satisfiyat.%line 2 of clicked block%} * 16]" to close then run [make player execute command "satitem %line 2 of clicked block% 16"] format slot 6 of player with 8 paper named "&4%line 2 of clicked block%" with lore "&68 Tane al! [{satisfiyat.%line 2 of clicked block%} * 8]" to close then run [make player execute command "satitem %line 2 of clicked block% 8"] format slot 8 of player with 4 paper named "&4%line 2 of clicked block%" with lore "&64 Tane sat! [{satisfiyat.%line 2 of clicked block%} * 4]" to close then run [make player execute command "satitem %line 2 of clicked block% 4"] command /muhur [<text>] [<text>]: trigger: if arg 1 is not set: if player's balance is greater than or equal to 10000: set {muhur.%player%} to true send "&2Basariyla muhrunu aldin. Artik marketi kullanabilirsin!" else: send "&2Yeterli paran yok!" if arg 1 is "sil": if arg 2 is not set: send "/marketmuhru sil oyuncu" else: clear {muhur.%arg 2%} send "&4Kullanici kimligi basariyla silindi!" command /alitem <text> <int>: trigger: if {alimfiyat.%arg 1%} is not set: send "&6Bu urune bir fiyat bicilmemis." else: if player's balance is greater than or equal to {alimfiyat.%arg 1%}: execute console command "/give %player% %arg 1% %arg 2%" execute console command "/money take %player% [{alimfiyat.%arg 1%} * %arg 2%]" command /satitem <text> <int>: trigger: if {satisfiyat.%arg 1%} is not set: send "&6Bu urune bir fiyat bicilmemis." else: remove arg-2 arg-1 from player's inventory execute console command "/eco give %player% [{satisfiyat.%arg 1%} * %arg 2%]"
Alıntıdır.
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}/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%::*}
OFFFFFFFFFFF yeter zaten bu skript bende var ben nasıl chatte yazı yazarak olay gerçekleştireceğimizi soruyorum bunda var ben kendim yapıcağım başka bir şeySon-Osmanlı skyblock eklenti paketinde bulunan bir skript. Alıntıdır.
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}/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%::*}
örneğin der:OFFFFFFFFFFF yeter zaten bu skript bende var ben nasıl chatte yazı yazarak olay gerçekleştireceğimizi soruyorum bunda var ben kendim yapıcağım başka bir şey
OFFFFFFFFFFF yeter zaten bu skript bende var ben nasıl chatte yazı yazarak olay gerçekleştireceğimizi soruyorum bunda var ben kendim yapıcağım başka bir şey
örneğin der:
Adınızı girin
sen chat'e "/" kullanmadan adını girersin ve kabul eder
onun gibi
mantığı ne bunun
command /adgir:
trigger:
if {adgir::%player%} is not set:
set {adgir::%player%} to true # değişkeni true yapıyoruz
send ""
send "&6&lLütfen sohbete adınızı girin!"
send "&cİptal etmek için - yazınız."
send ""
else:
send "&cİptal etmek için sohbete - yazın."
command /ad <offlineplayer>:
trigger:
if {ad::%arg-1%} is set:
send "&6%arg-1%'in Adı&f: &c%{ad::%arg-1%}%"
else:
send "&cBu oyuncunun bi adı yok!"
on chat:
if {adgir::%player%} is true: # değişken true ise yazdığı mesajın gitmesini engelleyip mesajı alıyoruz
cancel event
if message is not "-":
set {ad::%player%} to colored message
send ""
send "&a&lAdınız başarıyla ayarlandı."
send ""
else:
delete {adgir::%player%}
send ""
send "&a&lBaşarıyla iptal ettiniz."
send ""
Örnek olsun diye basit bir şey yazdım konuyu okumadım umarım anlarsın
PHP:command /adgir: trigger: if {adgir::%player%} is not set: set {adgir::%player%} to true # değişkeni true yapıyoruz send "" send "&6&lLütfen sohbete adınızı girin!" send "&cİptal etmek için - yazınız." send "" else: send "&cİptal etmek için sohbete - yazın." command /ad <offlineplayer>: trigger: if {ad::%arg-1%} is set: send "&6%arg-1%'in Adı&f: &c%{ad::%arg-1%}%" else: send "&cBu oyuncunun bi adı yok!" on chat: if {adgir::%player%} is true: # değişken true ise yazdığı mesajın gitmesini engelleyip mesajı alıyoruz cancel event if message is not "-": set {ad::%player%} to colored message send "" send "&a&lAdınız başarıyla ayarlandı." send "" else: delete {adgir::%player%} send "" send "&a&lBaşarıyla iptal ettiniz." send ""
Örnek olsun diye basit bir şey yazdım konuyu okumadım umarım anlarsın
PHP:command /adgir: trigger: if {adgir::%player%} is not set: set {adgir::%player%} to true # değişkeni true yapıyoruz send "" send "&6&lLütfen sohbete adınızı girin!" send "&cİptal etmek için - yazınız." send "" else: send "&cİptal etmek için sohbete - yazın." command /ad <offlineplayer>: trigger: if {ad::%arg-1%} is set: send "&6%arg-1%'in Adı&f: &c%{ad::%arg-1%}%" else: send "&cBu oyuncunun bi adı yok!" on chat: if {adgir::%player%} is true: # değişken true ise yazdığı mesajın gitmesini engelleyip mesajı alıyoruz cancel event if message is not "-": set {ad::%player%} to colored message send "" send "&a&lAdınız başarıyla ayarlandı." send "" else: delete {adgir::%player%} send "" send "&a&lBaşarıyla iptal ettiniz." send ""
tmm anlat burdan
Anlaşılan ben skripti yazamıcayağım senden bunula alakalı söyle bir skript yazmanı istiyorumOyuncu /adgir yazdığında ad girdiğini anlamak için bi değişkeni true yapıyoruz. Sonra on chat eventinde, yani oyuncu chate mesaj gönderdiğinde, bu değişken true ise oyuncu ismini yazıyor, yazmış demektir. Bu yüzden on chat eventini cancellayıp mesajın gitmesini engelliyor ve ad :: oyuncu değişkenini mesaj yapıyoruz. Mesaj "LifeMCServer" ise bu değişkende "LifeMCServer" olacaktır. Colored message yazmamızın sebebi oyuncunun adını renkli de yapabilmesi. İstersen kaldırabilirsin. Onun dışında /ad oyuncuadı komutu ile de oyuncuların adlarını görebiliyoruz.
şaka gibi a ma söylediğin plugini yükledim ve kullanamayınca sövüp sildimSkript kullanmanı tercih etmiyorum, anlattığın skript'in bir plugini var zaten.
Link:Linki görebilmek için üye olmanız gerekiyor. Giriş yap veya üye ol.
zaten tek yaptığın bu değilmi ? insanlara emir verip sövmek ?şaka gibi a ma söylediğin plugini yükledim ve kullanamayınca sövüp sildim![]()
Madem hazır kodlanmış olan Java'yı kullanmıyormusun, sunucunda lag yapacak skript kullanmaya devam et. Saçmalıyorsunşaka gibi a ma söylediğin plugini yükledim ve kullanamayınca sövüp sildim![]()