_OnePage_
Cehennem Yükleniyor - %89
Skriptde inek birleştirme vardır ve while kullanılmışdır dakika başı sunucunuzu yormaz sadece sunucu başlarken biraz yorabilir skripti geliştirmeye çalışıyorum önerilerinizi yazabilirsiniz(hata varsa hatayıda yazabilirsiniz)
İtem:
İlk Seviye İnek:
Bir Üst Level İnek:
En üst level:
Daha Fazlası İçin Skripte Bakabilirsiniz
Kod:
command /süt-inegi:
trigger:
give 1 of 383:92 named "&6Süt İnegi &8| &9Level 1" to player
on rightclick with milk:
name of player's tool is "&6Süt Ama Yararlı"
remove 1 of milk named "&6Süt Ama Yararlı" from player's inventory
chance of 15%:
send "&6Güçlendin"
apply strength 2 to the player for 3 seconds
stop
send "&6Başaramadık Abi"
on spawn of cow:
wait a tick
"%name of event-entity%" contains "&6Süt İnegi"
inekkontrol(event-entity)
on server start:
loop all cows:
"%name of loop-entity%" contains "&6Süt İnegi" or "&cSüt İnegi"
inekkontrol(loop-entity)
broadcast "&2Herşey Tamamlandı - OnePage İnek Sistemi"
function inekkontrol(inek: entity):
set {difference::%{_inek}%} to now
while {_inek}'s health > 0:
if difference between {difference::%{_inek}%} and now >= 1 minutes:
set {difference::%{_inek}%} to now
set {_n::*} to split "%uncoloured name of {_inek}%" at "|"
replace all "Level " with "" in {_n::2}
replace all " " with "" in {_n::2}
set {_n::2} to {_n::2} parsed as number
{_n::2} > 4:
set {_n::2} to {_n::2} / 2
{_n::2} > 0:
drop {_n::2} of milk named "&6Süt Ama Yararlı" at {_inek}
else:
drop 1 milk named "&6Süt Ama Yararlı" at {_inek}
spawn a firework at {_inek}
loop all cows in radius 3 around {_inek}:
"%name of loop-cow%" contains "&6Süt İnegi" or "&cSüt İnegi"
loop-entity isn't {_inek}
loop-entity's health > 1
set {_n::*} to split "%uncoloured name of loop-entity%" at "|"
replace all "Level " with "" in {_n::2}
replace all " " with "" in {_n::2}
set {_n::2} to {_n::2} parsed as number
set {_t::*} to split "%uncoloured name of {_inek}%" at "|"
replace all "Level " with "" in {_t::2}
replace all " " with "" in {_t::2}
set {_t::2} to {_t::2} parsed as number
kill {_inek}
{_n::2} + {_t::2} > 1:
set loop-entity's name to "&6Süt İnegi &8| &9Level %{_n::2} + {_t::2}%"
{_n::2} + {_t::2} > 10:
set loop-entity's name to "&cSüt İnegi &8| &9Level %{_n::2} + {_t::2}%"
{_n::2} + {_t::2} > 50:
set loop-entity's name to "&cSüt &2İnegi &8| &9Level %{_n::2} + {_t::2}%"
wait 5 seconds
loop all players in radius 5 around {_inek}:
send "&6Yakınındaki İnek Öldü" to loop-player
İlk Seviye İnek:
Bir Üst Level İnek:
En üst level:
Daha Fazlası İçin Skripte Bakabilirsiniz