Vesendensenn
Çok dadluyum
Ne işe yarayacak?
Parası olmayanlar istediği miktarda item alabilecek
İtem fiyatları tanesi üzerinden belirlenecek
Kullanıcılar normal marketten farklı olarak yenilik isterler. Bunu sağlayabilirsiniz
İtemlerin viplere yarı fiyatı olmasını ayarlayacaktım. (tım)
Merhaba.
Skript destek bölümünde bu skript hakkında destek almıştım ve sonunda bitirdim.
Çalışıp çalışmadığını şimdi göreceğiz
Tabelanın ilk satırına market
2. satırına item ismi
3. satırına tanesi ne kadarsa onun fiyatı
4. satırına al ve ya sat yazıyoruz.
Örnek olarak şöyle bir tabela Koyalım
----------------------------------------------
| market |
| cobblestone |
| 40 |
| al |
----------------------------------------------
|
|
|
Bu tabela otomatik olarak şöyle değişecektir
-------------------------------------------------------------------
Market
Cobblestone
40
Alim fiyati
--------------------------------------------------------------------
|
|
|
Ve sağ tıklayınca market mührünüz yok ise mühür alma menüsü açılacaktır burda mührünüzü 10k ya satın alacaksınız
Sonra ise hem alim hem satim marketini kullanabilirsiniz
Skript hakkında bir kaç resim ekleyeceğim skript kodu ise şu:
Parası olmayanlar istediği miktarda item alabilecek
İtem fiyatları tanesi üzerinden belirlenecek
Kullanıcılar normal marketten farklı olarak yenilik isterler. Bunu sağlayabilirsiniz
İtemlerin viplere yarı fiyatı olmasını ayarlayacaktım. (tım)
Merhaba.
Skript destek bölümünde bu skript hakkında destek almıştım ve sonunda bitirdim.
Çalışıp çalışmadığını şimdi göreceğiz
Tabelanın ilk satırına market
2. satırına item ismi
3. satırına tanesi ne kadarsa onun fiyatı
4. satırına al ve ya sat yazıyoruz.
Örnek olarak şöyle bir tabela Koyalım
----------------------------------------------
| market |
| cobblestone |
| 40 |
| al |
----------------------------------------------
|
|
|
Bu tabela otomatik olarak şöyle değişecektir
-------------------------------------------------------------------
Market
Cobblestone
40
Alim fiyati
--------------------------------------------------------------------
|
|
|
Ve sağ tıklayınca market mührünüz yok ise mühür alma menüsü açılacaktır burda mührünüzü 10k ya satın alacaksınız
Sonra ise hem alim hem satim marketini kullanabilirsiniz
Skript hakkında bir kaç resim ekleyeceğim skript kodu ise şu:
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%]"
Ha bu arada skquerry gereklidir
Son düzenleme: