on fish:
if {cooldown::%player%} is not set:
if "%event.getState()%" = "CAUGHT_FISH":
set {cooldown::%player%} to now
else if difference between {cooldown::%player%} and now >= 5 seconds:
if "%event.getState()%" = "CAUGHT_FISH":
set {cooldown::%player%} to now
else:
cancel event
send "5 saniyede bir olta atabilirsin!"
Hata veriyor, malesefskript-reflect gerektirir, 5 saniye olarak ayarladım değişebilirsiniz
JavaScript:on fish: if {cooldown::%player%} is not set: if "%event.getState()%" = "CAUGHT_FISH": set {cooldown::%player%} to now else if difference between {cooldown::%player%} and now >= 5 seconds: if "%event.getState()%" = "CAUGHT_FISH": set {cooldown::%player%} to now else: cancel event send "5 saniyede bir olta atabilirsin!"
kodu eksik atmışım böyle dener misiniz? ayrıca skript-reflect yüklü değilse yüklemeyi unutmayınHata veriyor, malesef
import:
org.bukkit.event.player.PlayerFishEvent
on fish:
if {cooldown::%player%} is not set:
if "%event.getState()%" = "CAUGHT_FISH":
set {cooldown::%player%} to now
else if difference between {cooldown::%player%} and now >= 5 seconds:
if "%event.getState()%" = "CAUGHT_FISH":
set {cooldown::%player%} to now
else:
cancel event
send "5 saniyede bir olta atabilirsin!"
hata vermiyor fakat cooldown da çalışmıyorkodu eksik atmışım böyle dener misiniz? ayrıca skript-reflect yüklü değilse yüklemeyi unutmayın
JavaScript:import: org.bukkit.event.player.PlayerFishEvent on fish: if {cooldown::%player%} is not set: if "%event.getState()%" = "CAUGHT_FISH": set {cooldown::%player%} to now else if difference between {cooldown::%player%} and now >= 5 seconds: if "%event.getState()%" = "CAUGHT_FISH": set {cooldown::%player%} to now else: cancel event send "5 saniyede bir olta atabilirsin!"
Merhabalar, discord sunumuza gelip talep açarsanız görüşebiliriz ücretli şekilde eklenti hizmeti sağlayabiliriz.Merhabalar, olta atma süresi istiyorum fakat olta atcak geri çekcek ondan sonra süre olcak bazı skriptler denedim olmuyor :/
paylaştığım kod, oyuncu balık tutunca cooldown'u etkinleştiriyor, eğer oltayı -olta boş olsa bile- geri çekince cooldown yemesini istiyosanız aşağıdaki kodu kullanın. bu kod çalışmazsa yapabileceğim bir şey kalmıyor sunucu sürümünüz düşüktürhata vermiyor fakat cooldown da çalışmıyor
import:
org.bukkit.event.player.PlayerFishEvent
on fish:
if {cooldown::%player%} is not set:
if "%event.getState()%" = "CAUGHT_FISH" or "REEL_IN":
set {cooldown::%player%} to now
else if difference between {cooldown::%player%} and now >= 5 seconds:
if "%event.getState()%" = "CAUGHT_FISH" or "REEL_IN":
set {cooldown::%player%} to now
else:
cancel event
send "5 saniyede bir olta atabilirsin!"
Merhabalar, discord sunumuza gelip talep açarsanız görüşebiliriz ücretli şekilde eklenti hizmeti sağlayabiliriz
benim istediğim boşluğa atacak oltayı suya filan değilpaylaştığım kod, oyuncu balık tutunca cooldown'u etkinleştiriyor, eğer oltayı -olta boş olsa bile- geri çekince cooldown yemesini istiyosanız aşağıdaki kodu kullanın. bu kod çalışmazsa yapabileceğim bir şey kalmıyor sunucu sürümünüz düşüktür
JavaScript:import: org.bukkit.event.player.PlayerFishEvent on fish: if {cooldown::%player%} is not set: if "%event.getState()%" = "CAUGHT_FISH" or "REEL_IN": set {cooldown::%player%} to now else if difference between {cooldown::%player%} and now >= 5 seconds: if "%event.getState()%" = "CAUGHT_FISH" or "REEL_IN": set {cooldown::%player%} to now else: cancel event send "5 saniyede bir olta atabilirsin!"
yukarıda paylaştığım kod bunu sağlıyor bi deneyinbenim istediğim boşluğa atacak oltayı suya filan değil
denedim boşluğa atınca olmuyor mlsf balık tutunca çalışıyoryukarıda paylaştığım kod bunu sağlıyor bi deneyin