skriptler çakışıyor

ProMertCanYT

Kömür Madencisi
En iyi cevaplar
0
Marhabalar arkadaşlar şoyle bir skript yazdım.
Linki görebilmek için üye olmanız gerekiyor. Giriş yap veya üye ol.

Burda iki tane market tabelası var. birisini çıkarınca çalışıyor doğru düzgün yanlız ikisi bir araya gelince hem alma hem satma ortaya çıkıyor.
bakarsanız sevinirim.
 

ruddeTR

projects.gg
Emektar Üye
En iyi cevaplar
2
Bu şekilde deneyelim:
Kod:
on sign change:
    player has permission "market.sk"
    if line 1 of block is "elmassat":
        set line 1 of block to "&3&lDarkCraftTR "
        set line 2 of block to "&5Sat:&1Diamond"
        set line 3 of block to "&5Adet:&164"
        set line 4 of block to "&4Fiyat:&62000"
		
on right click on sign:
    line 1 of block to "&3&lDarkCraftTR "
    if player's tool is set:
        if player's tool is Diamond:

            send "&1&l[&3&LD&6&LC&4&TR&1&L] &5&l>>&1 2000 TL ye Elmas Sattın !"
            remove 64 diamond from player
            execute console command "/money give %player% 2000"

        else:
            send "&1&l[&3&LD&6&LC&4&TR&1&L] &56L>>&1 Yeterli miktarda eşyan yok!"  
   
    else:
        send "&1&l[&3&LD&6&LC&4&TR&1&L] &56L>>&1 Yeterli miktarda eşyan yok!"          
stop

on sign change:
    player has permission "market.sk"
    if line 1 of block is "elmasal":
        set line 1 of block to "&3&lDarkCraftTR "
        set line 2 of block to "&5AL:&1Diamond"
        set line 3 of block to "&5Adet:&164"
        set line 4 of block to "&4Fiyat:&62000"
		
on right click on sign:
            line 2 of block to "&5AL:&1Diamond"
            send "&1&l[&3&LD&6&LC&4&TR&1&L] &5&l>>&1 2000 TL ye Elmas Aldın !"
            execute console command "/money take %player% 2000"  
            execute console command "/give %player% diamond 64"
 

ProMertCanYT

Kömür Madencisi
En iyi cevaplar
0
Bu şekilde deneyelim:
Kod:
on sign change:
    player has permission "market.sk"
    if line 1 of block is "elmassat":
        set line 1 of block to "&3&lDarkCraftTR "
        set line 2 of block to "&5Sat:&1Diamond"
        set line 3 of block to "&5Adet:&164"
        set line 4 of block to "&4Fiyat:&62000"
     
on right click on sign:
    line 1 of block to "&3&lDarkCraftTR "
    if player's tool is set:
        if player's tool is Diamond:

            send "&1&l[&3&LD&6&LC&4&TR&1&L] &5&l>>&1 2000 TL ye Elmas Sattın !"
            remove 64 diamond from player
            execute console command "/money give %player% 2000"

        else:
            send "&1&l[&3&LD&6&LC&4&TR&1&L] &56L>>&1 Yeterli miktarda eşyan yok!"
 
    else:
        send "&1&l[&3&LD&6&LC&4&TR&1&L] &56L>>&1 Yeterli miktarda eşyan yok!"       
stop

on sign change:
    player has permission "market.sk"
    if line 1 of block is "elmasal":
        set line 1 of block to "&3&lDarkCraftTR "
        set line 2 of block to "&5AL:&1Diamond"
        set line 3 of block to "&5Adet:&164"
        set line 4 of block to "&4Fiyat:&62000"
     
on right click on sign:
            line 2 of block to "&5AL:&1Diamond"
            send "&1&l[&3&LD&6&LC&4&TR&1&L] &5&l>>&1 2000 TL ye Elmas Aldın !"
            execute console command "/money take %player% 2000"
            execute console command "/give %player% diamond 64"
malesef yine olmuyor acaba stop kısmı mı yanlış yerde
neden nsl oluyor anlamış deyilim bunları bir araya getirmeden denediğimde tek tek oluyor sıfır hatasız sıfır sorunsuz fakat böyle olmuyor. Ayrıca hatala gösterimlerinden birisi stop kısmı
 
Son düzenleme:
Üst