Minecraft İtem Satma Skripti

atakan1059788

Marangoz
Mesajlar
45
En iyi cevaplar
0
Beğeniler
13
Puanları
100
Öncelikle İyi Günler. istediğim skript 1 komut ile 1 item Satıcak ve Oyuncu ya para gelicek yapabilirseniz sevinirim. kısaca 500 tl ye 1 item Satıcak 1 komut ile. Envanterinden item silinecek. Şimdiden Teşekkür Ederim.
 


CraxyTR

mc.silencenw.com
Mesajlar
449
En iyi cevaplar
0
Beğeniler
106
Puanları
440
Ruh hali
Hangi item olduğunu yazın.
 

Ataberkia

Mesajlar
226
En iyi cevaplar
0
Beğeniler
412
Puanları
360
Kod:
command /sat:
    trigger:
        if player has diamond:
            if balance of player is higher than 499:
                add 500 from player's balance
                remove 1 diamond from player's inventory
 

ShortPallMall

AtinaSaga.Com Türkiyenin ilk MMOSurvival sunucusu
Mesajlar
888
En iyi cevaplar
2
Beğeniler
402
Puanları
830
Ruh hali
Kod:
command /sat:
    trigger:
        if player has diamond:
            if balance of player is higher than 499:
                add 500 from player's balance
                remove 1 diamond from player's inventory
if balance of player is higher than 499 ne alaka
 

TReaperTR

Altın Madencisi
Mesajlar
387
En iyi cevaplar
0
Beğeniler
285
Puanları
910
Ruh hali
2 tane kod da hata verdi
add 500 from player's balance
remove 1 diamond from player's inventory
bu iki kodda sıkıntı verdi.
Hatayı bu şekilde belirtme. Reload çektiğinde verdiği hatayı söyle bize. Sıkıntı var diyince ne sıkıntısı olduğunu anlayamayız. Tab hatası mı var can't understand mi diyor başka bir şey mi diyor nasıl bilelim ?
 

iSchrye

Marangoz
Mesajlar
49
En iyi cevaplar
0
Beğeniler
14
Puanları
80
Kod:
command /sat:
    trigger:
        player has 1 of diamond:
            add 500 to player's money
            remove 1 of diamond from player's inventory
            send "&aBaşarıyla &e1 adet elmas &asattın"
        else:
            send "&cYeterli elmasın yok!"
 
Son düzenleme:

Ataberkia

Mesajlar
226
En iyi cevaplar
0
Beğeniler
412
Puanları
360
Kod:
command /sat:
    trigger:
        player has 1 of diamond:
            player's money >= 500:
                remove 500 from player's money
                remove 1 of diamond from player's inventory
                send "&aBaşarıyla &e1 adet elmas &asattın"
            else:  
                send "&cYeterli paran yok!"
        else:
            send "&cYeterli elmasın yok!"
Elmas satınca para alması değil, para vermesi gerek
 

Donov4n

Kömür Madencisi
Mesajlar
116
En iyi cevaplar
0
Beğeniler
86
Puanları
290
Ruh hali
D0ru. Ona da alma effect'ini yazmışım xD
Bak şöyle bir şey var ilk GUI'li denemelerimden:
Kod:
command /maden:
    trigger:
        open chest with 5 row named "&aMaden Menüsü" to player
        wait 1 tick
        format slot 0 of player with black glass named "&8-" to act unstealable
        format slot 1 of player with black glass named "&8-" to act unstealable
        format slot 2 of player with black glass named "&8-" to act unstealable
        format slot 3 of player with black glass named "&8-" to act unstealable
        format slot 4 of player with black glass named "&8-" to act unstealable
        format slot 5 of player with black glass named "&8-" to act unstealable
        format slot 6 of player with black glass named "&8-" to act unstealable
        format slot 7 of player with black glass named "&8-" to act unstealable
        format slot 8 of player with black glass named "&8-" to act unstealable
        format slot 9 of player with black glass named "&8-" to act unstealable
        format slot 17 of player with black glass named "&8-" to act unstealable
        format slot 18 of player with black glass named "&8-" to act unstealable
        format slot 19 of player with black glass named "&8-" to act unstealable
        format slot 20 of player with black glass named "&8-" to act unstealable
        format slot 21 of player with black glass named "&8-" to act unstealable
        format slot 22 of player with black glass named "&8-" to act unstealable
        format slot 23 of player with black glass named "&8-" to act unstealable
        format slot 24 of player with black glass named "&8-" to act unstealable
        format slot 25 of player with black glass named "&8-" to act unstealable
        format slot 26 of player with black glass named "&8-" to act unstealable
        format slot 27 of player with black glass named "&8-" to act unstealable
        format slot 35 of player with black glass named "&8-" to act unstealable
        format slot 36 of player with black glass named "&8-" to act unstealable
        format slot 37 of player with black glass named "&8-" to act unstealable
        format slot 38 of player with black glass named "&8-" to act unstealable
        format slot 39 of player with black glass named "&8-" to act unstealable
        format slot 40 of player with black glass named "&8-" to act unstealable
        format slot 41 of player with black glass named "&8-" to act unstealable
        format slot 42 of player with black glass named "&8-" to act unstealable
        format slot 43 of player with black glass named "&8-" to act unstealable
        format slot 44 of player with black glass named "&8-" to act unstealable
        format slot 10 of player with diamond named "&b1x Elmas" with lore "&a 500 | Satın Al" to close then run [execute player command "madenal elmas"]
        format slot 11 of player with emerald named "&a1x Zümrüt" with lore "&a 2000 | Satın Al" to close then run [execute player command "madenal zumrut"]
        format slot 12 of player with iron ingot named "&f1x Demir" with lore "&a 125 | Satın Al" to close then run [execute player command "madenal demir"]
        format slot 13 of player with gold ingot named "&61x Altın" with lore "&a 175 | Satın Al" to close then run [execute player command "madenal altin"]
        format slot 14 of player with charcoal named "&81x Odun Kömürü" with lore "&a 50 | Satın Al" to close then run [execute player command "madenal charkomur"]
        format slot 28 of player with diamond named "&b1x Elmas" with lore "&c 250 | Sat" to close then run [execute player command "madensat elmas"]
        format slot 29 of player with emerald named "&a1x Zümrüt" with lore "&c 1500 | Sat" to close then run [execute player command "madensat zumrut"]
        format slot 30 of player with iron ingot named "&f1x Demir" with lore "&c 65 | Sat" to close then run [execute player command "madensat demir"]
        format slot 31 of player with gold ingot named "&61x Altın" with lore "&c 100 | Sat" to close then run [execute player command "madensat altin"]
        format slot 32 of player with stone named "&764x Taş" with lore "&c 640 | Sat" to close then run [execute player command "tas-sat tas"]
        format slot 33 of player with cobblestone named "&764x Kırıktaş" with lore "&c 64 | Sat" to close then run [execute player command "tas-sat kiriktas"]
        format slot 34 of player with nether star named "&dMadenlerinizi 16'şar satın!" with lore "&l&f/madensat16x||&f[Tıkla]" to close then run [execute player command "madensat16x"]
command /madenal [<text>]:
    trigger:
        if arg-1 is "elmas":
            if player's balance is more than or equal to 500:
                remove 500 from player's money
                give 1 diamond to player
                send "&6[&fMaden Ustası&6]&f &b1 elmas&f aldınız."
            else if player's balance is less than 50:
                send "&6[&fMaden Ustası&6]&f Yeterli paranız bulunmuyor."          
        if arg-1 is "zumrut":
            if player's balance is more than or equal to 2000:
                remove 2000 from player's money
                give 1 emerald to player
                send "&6[&fMaden Ustası&6]&f &a1 zümrüt&7 aldınız."
            else if player's balance is less than 50:
                send "&6[&fMaden Ustası&6]&f Yeterli paranız bulunmuyor."
        if arg-1 is "demir":
            if player's balance is more than or equal to 125:
                remove 125 from player's money
                give 1 iron ingot to player
                send "&6[&fMaden Ustası&6]&f 1 demir aldınız."
            else if player's balance is less than 50:
                send "&6[&fMaden Ustası&6]&f Yeterli paranız bulunmuyor."
        if arg-1 is "altin":
            if player's balance is more than or equal to 175:
                remove 175 from player's money
                give 1 gold ingot to player
                send "&6[&fMaden Ustası&6]&f &61 altın&f aldınız."
            else if player's balance is less than 175:
                send "&6[&fMaden Ustası&6]&f Yeterli paranız bulunmuyor."
        if arg-1 is "charkomur":
            if player's balance is more than or equal to 50:
                remove 50 from player's money
                give 1 charcoal to player
                send "&6[&fMaden Ustası&6]&f 1 &8odun kömürü&f aldınız."
            else if player's balance is less than 50:
                send "&6[&fMaden Ustası&6]&f Yeterli paranız bulunmuyor."
               
command /madensat [<text>]:
    trigger:
        if arg-1 is "elmas":
            if amount of diamond in player's inventory is more than or equal to 1:
                remove 1 diamond from player
                add 250 to player's balance
                send "&6[&fMaden Ustası&6]&f &b1 elmas&f sattınız."
                stop
            else if amount of diamond in player's inventory is less than 1:
                send "&6[&fMaden Ustası&6]&f Elinizde hiç &belmas &fbulunmuyor."
                stop
        if arg-1 is "zumrut":
            if amount of emerald in player's inventory is more than or equal to 1:
                add 1500 to player's money
                remove 1 emerald from player
                send "&6[&fMaden Ustası&6]&f 1 &azümrüt&f sattınız."
            else if amount of emerald in player's inventory is less than 1:
                send "&6[&fMaden Ustası&6]&f Elinizde hiç &azümrüt&f bulunmuyor."
                stop
        if arg-1 is "demir":
            if amount of iron ingot in player's inventory is more than or equal to 1:
                add 65 to player's money
                remove 1 iron ingot from player
                send "&6[&fMaden Ustası&6]&f 1 demir sattınız."
            else if amount of iron ingot in player's inventory is less than 1:
                send "&6[&fMaden Ustası&6]&f Elinizde hiç demir bulunmuyor."
                stop
        if arg-1 is "altin":
            if amount of gold ingot in player's inventory is more than or equal to 1:
                add 100 to player's money
                remove 1 gold ingot from player
                send "&6[&fMaden Ustası&6]&f &61 altın&f sattınız."
            else if amount of gold ingot in player's inventory is less than 1:
                send "&6[&fMaden Ustası&6]&f Elinizde hiç &6altın&f bulunmuyor."
                stop
command /madensat16x [<text>]:
    trigger:
        if arg-1 is not set:
            send ""
            send "&f/madensat16x elmas > &b16 elmasınızı&f satar. [4000]"
            send "&f/madensat16x zumrut > &a16 zümrütünüzü &fsatar. [24000]"
            send "&f/madensat16x demir > 16 demirinizi satar. [1040]"
            send "&f/madensat16x altin > &616 altınınızı&f satar. [1360]"
            send ""
            stop
        if arg-1 is "elmas":
            if amount of diamond in player's inventory is more than or equal to 16:
                remove 16 diamond from player
                add 4000 to player's balance
                send "&6[&fMaden Ustası&6]&f &b16 elmas&f sattınız."
                stop
            else if amount of diamond in player's inventory is less than 16:
                send "&6[&fMaden Ustası&6]&f Elinizde yeteri kadar &belmas &fbulunmuyor. &8&o(En az 16)"
                stop
        if arg-1 is "zumrut":
            if amount of emerald in player's inventory is more than or equal to 16:
                add 24000 to player's money
                remove 1 emerald from player
                send "&6[&fMaden Ustası&6]&f 16 &azümrüt&f sattınız."
            else if amount of emerald in player's inventory is less than 16:
                send "&6[&fMaden Ustası&6]&f Elinizde yeteri kadar &azümrüt&f bulunmuyor. &8&o(En az 16)"
                stop
        if arg-1 is "demir":
            if amount of iron ingot in player's inventory is more than or equal to 16:
                add 1040 to player's money
                remove 1 iron ingot from player
                send "&6[&fMaden Ustası&6]&f 16 demir sattınız."
            else if amount of iron ingot in player's inventory is less than 16:
                send "&6[&fMaden Ustası&6]&f Elinizde yeteri kadar demir bulunmuyor. &8&o(En az 16)"
                stop
        if arg-1 is "altin":
            if amount of gold ingot in player's inventory is more than or equal to 16:
                add 1600 to player's money
                remove 1 gold ingot from player
                send "&6[&fMaden Ustası&6]&f &616 altın&f sattınız."
            else if amount of gold ingot in player's inventory is less than 16:
                send "&6[&fMaden Ustası&6]&f Elinizde yeteri kadar &6altın&f bulunmuyor. &8&o(En az 16)"
                stop
               
command /tas-sat [<text>]:
    trigger:
        if arg-1 is not set:
            send ""
            send "&f/tas-sat tas > &764 pişmiş taşlarınızı&f satar. [640]"
            send "&f/tas-sat kiriktas > &764 kırıktaşınızı &fsatar. [64]"
            send ""
        if arg-1 is "tas":
            if amount of stone in player's inventory is more than or equal to 64:
                add 640 to player's money
                remove 64 stone from player
                send "&6[&fMaden Ustası&6]&f &764 pişmiş taş&f sattınız."
            else if amount of stone in player's inventory is less than 64:
                send "&6[&fMaden Ustası&6]&f Elinizde yeteri kadar &7pişmiş taş&f bulunmuyor. &8&o(En az 64)"
                stop
        if arg-1 is "kiriktas":
            if amount of stone in player's inventory is more than or equal to 64:
                add 64 to player's money
                remove 64 cobblestone from player
                send "&6[&fMaden Ustası&6]&f &764 kırıktaş&f sattınız."
            else if amount of cobblestone in player's inventory is less than 64:
                send "&6[&fMaden Ustası&6]&f Elinizde yeteri kadar &7kırıktaş&f bulunmuyor. &8&o(En az 64)"
                stop
Bu bir skript ve /maden yazman yeterli.
2018-05-10_03.41.45.png
 

OnurA34

Sudan Çıkmış
Mesajlar
2
En iyi cevaplar
0
Beğeniler
0
Puanları
10
Beyler peki bunun şöyle bir versiyoununu söyleyebilirmisiniz
adam /ucusal yazdığı zaman ona ismi eren olan bir kağıt versin ve 10 bin parasını alsın yani
10 bin paraya bir tane ismi eren olan kağıt versin yapabilen olursa çok sevinirim bulamadım hiç :(
 

Exkaar

YASAKLANDI
Mesajlar
613
En iyi cevaplar
35
Beğeniler
566
Puanları
1,905
Beyler peki bunun şöyle bir versiyoununu söyleyebilirmisiniz
adam /ucusal yazdığı zaman ona ismi eren olan bir kağıt versin ve 10 bin parasını alsın yani
10 bin paraya bir tane ismi eren olan kağıt versin yapabilen olursa çok sevinirim bulamadım hiç :(

JavaScript:
command /ucusal:
    trigger:
        if player's balance is higher than or equal to 10000:
            remove 10000 from player's balance
            give a paper named "Eren" to player
 

Üst