İstek Otomatik sandık satma skripti

Balo4141

Marangoz
En iyi cevaplar
0
Autosell plugini sunucumda çok fazla lag yaptığı için birde skriptle denemeye karar verdim autosellin yerini tutacak skript lazım
 

byElysion

fara á brott með víkingum, standa upp í stafni
Emekli
En iyi cevaplar
59
Buyrunuz.

Kod:
#Change
on sign change:
 line 1 of event-block contains "[OTOSAT]":
  block 1 behind event-block is chest:
   add event-block's location to {otosat::*}
   message "&cOto satış eklendi."
  else:
   message "&cOtosat için tabelayı sandığın önüne koymalısınız."

#Break
on break of sign:
 "%{otosat::*}%" contains "%location of event-block%"
  remove location of event-block from {otosat::*}
  message "&cOtosat iptal edildi." to player

#Every
every 15 seconds:
 loop {otosat::*}:
  set {_x} to block 1 behind loop-value's location
  #Diamond Sword
  {_x}'s inventory contains diamond sword:
   add number of diamond sword in {_x}'s inventory*50 to player's balance
   remove all diamond sword from {_x}'s inventory
   message "&cOtomatik satıştan %number of diamond sword in {_x}'s inventory*50%$ kazandınız." to player
 

Balo4141

Marangoz
En iyi cevaplar
0
Buyrunuz.

Kod:
#Change
on sign change:
line 1 of event-block contains "[OTOSAT]":
  block 1 behind event-block is chest:
   add event-block's location to {otosat::*}
   message "&cOto satış eklendi."
  else:
   message "&cOtosat için tabelayı sandığın önüne koymalısınız."

#Break
on break of sign:
"%{otosat::*}%" contains "%location of event-block%"
  remove location of event-block from {otosat::*}
  message "&cOtosat iptal edildi." to player

#Every
every 15 seconds:
loop {otosat::*}:
  set {_x} to block 1 behind loop-value's location
  #Diamond Sword
  {_x}'s inventory contains diamond sword:
   add number of diamond sword in {_x}'s inventory*50 to player's balance
   remove all diamond sword from {_x}'s inventory
   message "&cOtomatik satıştan %number of diamond sword in {_x}'s inventory*50%$ kazandınız." to player
çalışmadı ?
 
Üst