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"