[ISTEK]Çek Skripti

BurakCG

Demir Madencisi
Mesajlar
266
En iyi cevaplar
0
Beğeniler
31
Puanları
280
Merhaba Forumgamer Ailesi.
Girilen Para Miktarlı Çek Skript'i Yapabilecek Olan Varmı?
Örneğin; /çek 50 Yazdığında parasından 50 düşecek 50 paralık çek vericek
 


AhmetDinc

Demir Madencisi
Mesajlar
328
En iyi cevaplar
0
Beğeniler
33
Puanları
160
daha önce yapıldı biraz araştırsan :/ insan googleye yazar çek minecraft skript forum gamer di
ye


Kod:
command /çek [<number>]:
 trigger:
  if arg 1 isn't set:
   message "&7Kullanmak için &c/çek <miktar>"
   stop
  if arg 1 is set:
   if player's balance is bigger than arg-1:
    message "&7%arg-1% miktarinda bir çek yazdiniz !"
    remove arg-1 from player's balance
    give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player
 
rightclick with paper:
 if "%name of player's tool%" contains "&8TL":
  set {_çek} to name of player's held item
  set {_çek} to {_çek} parsed as number
  message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"
  add "%{_çek}%" to player's account
  remove 1 of player's tool from player's inventory
 

BurakCG

Demir Madencisi
Mesajlar
266
En iyi cevaplar
0
Beğeniler
31
Puanları
280
daha önce yapıldı biraz araştırsan :/ insan googleye yazar çek minecraft skript forum gamer di
ye


Kod:
command /çek [<number>]:
trigger:
  if arg 1 isn't set:
   message "&7Kullanmak için &c/çek <miktar>"
   stop
  if arg 1 is set:
   if player's balance is bigger than arg-1:
    message "&7%arg-1% miktarinda bir çek yazdiniz !"
    remove arg-1 from player's balance
    give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player

rightclick with paper:
if "%name of player's tool%" contains "&8TL":
  set {_çek} to name of player's held item
  set {_çek} to {_çek} parsed as number
  message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"
  add "%{_çek}%" to player's account
  remove 1 of player's tool from player's inventory

Kod:
[19:50:05 INFO]: [Skript] Reloading test2.sk...
[19:50:05 ERROR]: "%{_çek}%" can't be added to the money of the player because the former is neither a money nor a number (test2.sk, line 17: add "%{_çek}%" to player's account')
[19:50:05 INFO]: [Skript] Encountered 1 error while reloading test2.sk!
 

BurakCG

Demir Madencisi
Mesajlar
266
En iyi cevaplar
0
Beğeniler
31
Puanları
280
Kod:
[19:50:05 INFO]: [Skript] Reloading test2.sk...
[19:50:05 ERROR]: "%{_çek}%" can't be added to the money of the player because the former is neither a money nor a number (test2.sk, line 17: add "%{_çek}%" to player's account')
[19:50:05 INFO]: [Skript] Encountered 1 error while reloading test2.sk!
daha önce denedim böyle bi hata verdi
 

OmerSRN

CraftMC Network
Mesajlar
146
En iyi cevaplar
0
Beğeniler
48
Puanları
140
Ruh hali
daha önce denedim böyle bi hata verdi

Şöyle dene:

YAML:
command /çek [<number>]:
    trigger:
        if arg 1 isn't set:
            message "&7Kullanmak için &c/çek <miktar>"
            stop
        if arg 1 is set:
            if player's balance is bigger than arg-1:
            message "&7%arg-1% miktarinda bir çek yazdiniz !"
            remove arg-1 from player's balance
            give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player
 
rightclick with paper:
    if "%name of player's tool%" contains "&8TL":
        set {_çek} to name of player's held item
        set {_çek} to {_çek} parsed as number
        message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"
        add {_çek} to player's account
        remove 1 of player's tool from player's inventory
 

AhmetDinc

Demir Madencisi
Mesajlar
328
En iyi cevaplar
0
Beğeniler
33
Puanları
160
Kod:
command /çek [<number>]:
    trigger:
        if arg 1 isn't set:
            message "&7Kullanmak için &c/çek <miktar>"
            stop
        if arg 1 is set:
            if player's balance is bigger than arg-1:
            message "&7%arg-1% miktarinda bir çek yazdiniz !"
            remove arg-1 from player's balance
            give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player
 
rightclick with paper:
    if "%name of player's tool%" contains "&8TL":
        set {_çek} to name of player's held item
        set {_çek} to {_çek} parsed as number
        message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"
        execute player command "eco give %player% %{_çek}%"
        remove 1 of player's tool from player's inventory
eğer olmassa
 

OmerSRN

CraftMC Network
Mesajlar
146
En iyi cevaplar
0
Beğeniler
48
Puanları
140
Ruh hali
Kod:
command /çek [<number>]:
    trigger:
        if arg 1 isn't set:
            message "&7Kullanmak için &c/çek <miktar>"
            stop
        if arg 1 is set:
            if player's balance is bigger than arg-1:
            message "&7%arg-1% miktarinda bir çek yazdiniz !"
            remove arg-1 from player's balance
            give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player

rightclick with paper:
    if "%name of player's tool%" contains "&8TL":
        set {_çek} to name of player's held item
        set {_çek} to {_çek} parsed as number
        message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"
        execute player command "eco give %player% %{_çek}%"
        remove 1 of player's tool from player's inventory
eğer olmassa

Tabii oyuncunun zaten "eco" yetkisi var. Değil mi?
 

BurakCG

Demir Madencisi
Mesajlar
266
En iyi cevaplar
0
Beğeniler
31
Puanları
280
Kod:
[20:27:46 ERROR]: '1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"' can't be added to a player because the former is neither an item type, an inventory nor an experience point (test.sk, line 10: give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player')
 

AhmetDinc

Demir Madencisi
Mesajlar
328
En iyi cevaplar
0
Beğeniler
33
Puanları
160
Tabii oyuncunun zaten "eco" yetkisi var. Değil mi?
execute console de yapabilirim gerçi oto yetki veriyordu execute sanırım ama
Kod:
[20:27:46 ERROR]: '1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"' can't be added to a player because the former is neither an item type, an inventory nor an experience point (test.sk, line 10: give 1 paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !" to player')
bunu bilmiyorum nasıl düzelticeğimi
[automerge]1526323354[/automerge]
Kod:
command /çek [<number>]:
    trigger:

        if arg 1 isn't set:

            message "&7Kullanmak için &c/çek <miktar>"

            stop

        if arg 1 is set:

            if player's balance is bigger than arg-1:

            message "&7%arg-1% miktarinda bir çek yazdiniz !"

            remove arg-1 from player's balance

            set slot 9 of player's inventory to paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"



rightclick with paper:

    if "%name of player's tool%" contains "&8TL":

        set {_çek} to name of player's held item

        set {_çek} to {_çek} parsed as number

        message "&7%{_çek}% miktarinda bir para çeki kullandiniz !"

        execute player command "eco give %player% %{_çek}%"

        remove 1 of player's tool from player's inventory
 
Son düzenleme:

BurakCG

Demir Madencisi
Mesajlar
266
En iyi cevaplar
0
Beğeniler
31
Puanları
280
Kod:
[20:50:41 INFO]: [Skript] Reloading cek.sk...
[20:50:41 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (cek.sk, line 12: if player's balance is bigger than arg-1:')
[20:50:41 ERROR]: a slot can't be set to 'paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"' because the latter is neither an item type nor an item stack (cek.sk, line 18: set slot 9 of player's inventory to paper named "&8%arg-1% &8TL" with lore "&7Çek'i açmak için tiklayiniz !"')
[20:50:41 WARN]: the name of the tool of the player is already a text, so you should not put it in one (e.g. the name of the tool of the player instead of "%the name of the tool of the player%") (cek.sk, line 24: if "%name of player's tool%" contains "&8TL":')
[20:50:41 ERROR]: A command with the name /çek is already defined in test.sk
[20:50:41 INFO]: [Skript] Encountered 2 errors while reloading cek.sk!
 

Üst