Yazar ve Destek Ekibi Alımları Aktif!
Merhaba Ziyaretçi!, Forumumuzun yazar ve destek ekibine katılmak ister misiniz? Yetkili market, yetkili sistemi ve başvuru formu gibi birçok bilgiye ulaşmak için buraya tıklayın.
Çok eski bir web tarayıcısı kullanıyorsunuz. Bu veya diğer siteleri görüntülemekte sorunlar yaşayabilirsiniz.. Tarayıcınızı güncellemeli veya alternatif bir tarayıcı kullanmalısınız.
Merhaba arkadaşlar Oyuncular /flyal komutunu kullanarak 5 dakikalık ücretsiz uçuş süresi alabilirler, ancak 24 saatlik bir bekleme süresi var. Onay mesajını aldıktan sonra 30 saniye içinde /onayla yazmaları gerekiyor. onay mesajı: Oyuncular /flyal komutunu kullanarak 5 dakikalık ücretsiz uçuş süresi alabilirler, ancak 24 saatlik bir bekleme süresi var. Onay mesajını aldıktan sonra 30 saniye içinde /onayla yazmaları gerekiyor. bu şekilde bir skript yazabilir misiniz fly eklentisi tempfly kullanıyorum biraz acil hızlı cevap verirseniz sevinirim :)
onay mesajı: "&aBu komut ile 5 dakika ücretsiz fly alırsın. DİKKAT! Bu komutu 24 saatte bir kullanabilirsin. 5 dakika ücretsiz fly almak için 30 saniye içerisinde &e/onayla &ayazmalısın."
options:
interval: 1 day
flyTime: 5 minutes
command /flyal:
aliases: getfly
trigger:
if {lastFreeFlyTime::%player%} isn't set:
set {lastFreeFlyTime::%player%} to now
add 999 years to {lastFreeFlyTime::%player%}
if difference between now and {lastFreeFlyTime::%player%} > {@interval}:
send "&aBu komut ile 5 dakika ücretsiz fly alırsın. DİKKAT! Bu komutu 24 saatte bir kullanabilirsin. 5 dakika ücretsiz fly almak için 30 saniye içerisinde &e/onayla &ayazmalısın." to player
play sound "entity.experience_orb.pickup" at pitch 2 to player
if {flyApprovalWaiting::%player%} isn't true:
set {flyApprovalWaiting::%player%} to true
set {_i} to 0
while {_i} < 30 * 20:
add 1 to {_i}
if {flyApprovalWaiting::%player%} isn't true:
stop
wait a tick
delete {flyApprovalWaiting::%player%}
send "&cÜcretsiz uçuş onayın zaman aşımına uğradı." to player
play sound "block.note_block.bass" at pitch 0.5 to player
else:
send "&cGünlük fly Hakkını kullandın! Lütfen yarın tekrar dene." to player
play sound "block.note_block.bass" at pitch 0.5 to player
command /onayla:
trigger:
if {flyApprovalWaiting::%player%} is true:
delete {flyApprovalWaiting::%player%}
send "&aBaşarıyla 5 dakikalık uçma hakkı kazandın!" to player
play sound "entity.player.levelup" to player
set {freeFly::%player%} to true
set {lastFreeFlyTime::%player%} to now
flyCheckLoop(player)
else:
send "&7Beklenen bir onayınız bulunmuyor." to player
on join:
if difference between {lastFreeFlyTime::%player%} and now <= {@flyTime}:
flyCheckLoop(player)
local function flyCheckLoop(p: player):
# burayı skbee ile async yapabilirim ama skbee şart. (async = daha optimize bir sistem)
while {_p} is online:
if {freeFly::%{_p}%} isn't true:
removeFreeFlyFromPlayer({_p})
stop
if difference between {lastFreeFlyTime::%{_p}%} and now >= {@flyTime}:
delete {freeFly::%{_p}%}
removeFreeFlyFromPlayer({_p})
stop
if {_p} can't fly:
make {_p} fly
wait 5 second
local function removeFreeFlyFromPlayer(p: player):
send "&cÜcretsiz fly hakkın bitti! Yarın tekrar kullanabilirsin." to {_p}
play sound "block.note_block.bass" at pitch 0.5 to {_p}
delete {freeFly::%{_p}%}
make {_p} stop flying
# Değişkenlerin yönetimi
on load:
delete {FlyApprovalWaiting::*}
loop {lastFreeFlyTime::*}:
if difference between now and loop-value > {@interval}:
delete {lastFreeFlyTime::%loop-index%}
Serisinden yazdım hata çıkabilir çok uğraşmadım. Hata çıkarsa buraya yolla düzeltip geri yollarım.
Bu arada sistemi daha güzel gösterebilirdim mesela /onayla komutu çok genel, fly için /flyal onayla gibi bir şey olabilirdi ama senin dediklerine göre yaptım her şeyi :)
NOT: Oyuncular survival gibi dünyalarda da uçabilir. Eğer ki istersen yalnızca spawn dünyasında çalışmasını sağlayabilirim (Eğer ki istiyorsan dünya ismini de atmalısın.).
options:
interval: 1 day
flyTime: 5 minutes
command /flyal:
aliases: getfly
trigger:
if {lastFreeFlyTime::%player%} isn't set:
set {lastFreeFlyTime::%player%} to now
add 999 years to {lastFreeFlyTime::%player%}
if difference between now and {lastFreeFlyTime::%player%} > {@interval}:
send "&aBu komut ile 5 dakika ücretsiz fly alırsın. DİKKAT! Bu komutu 24 saatte bir kullanabilirsin. 5 dakika ücretsiz fly almak için 30 saniye içerisinde &e/onayla &ayazmalısın." to player
play sound "entity.experience_orb.pickup" at pitch 2 to player
if {flyApprovalWaiting::%player%} isn't true:
set {flyApprovalWaiting::%player%} to true
set {_i} to 0
while {_i} < 30 * 20:
add 1 to {_i}
if {flyApprovalWaiting::%player%} isn't true:
stop
wait a tick
delete {flyApprovalWaiting::%player%}
send "&cÜcretsiz uçuş onayın zaman aşımına uğradı." to player
play sound "block.note_block.bass" at pitch 0.5 to player
else:
send "&cGünlük fly Hakkını kullandın! Lütfen yarın tekrar dene." to player
play sound "block.note_block.bass" at pitch 0.5 to player
command /onayla:
trigger:
if {flyApprovalWaiting::%player%} is true:
delete {flyApprovalWaiting::%player%}
send "&aBaşarıyla 5 dakikalık uçma hakkı kazandın!" to player
play sound "entity.player.levelup" to player
set {freeFly::%player%} to true
set {lastFreeFlyTime::%player%} to now
flyCheckLoop(player)
else:
send "&7Beklenen bir onayınız bulunmuyor." to player
on join:
if difference between {lastFreeFlyTime::%player%} and now <= {@flyTime}:
flyCheckLoop(player)
local function flyCheckLoop(p: player):
# burayı skbee ile async yapabilirim ama skbee şart. (async = daha optimize bir sistem)
while {_p} is online:
if {freeFly::%{_p}%} isn't true:
removeFreeFlyFromPlayer({_p})
stop
if difference between {lastFreeFlyTime::%{_p}%} and now >= {@flyTime}:
delete {freeFly::%{_p}%}
removeFreeFlyFromPlayer({_p})
stop
if {_p} can't fly:
make {_p} fly
wait 5 second
local function removeFreeFlyFromPlayer(p: player):
send "&cÜcretsiz fly hakkın bitti! Yarın tekrar kullanabilirsin." to {_p}
play sound "block.note_block.bass" at pitch 0.5 to {_p}
delete {freeFly::%{_p}%}
make {_p} stop flying
# Değişkenlerin yönetimi
on load:
delete {FlyApprovalWaiting::*}
loop {lastFreeFlyTime::*}:
if difference between now and loop-value > {@interval}:
delete {lastFreeFlyTime::%loop-index%}
Serisinden yazdım hata çıkabilir çok uğraşmadım. Hata çıkarsa buraya yolla düzeltip geri yollarım.
Bu arada sistemi daha güzel gösterebilirdim mesela /onayla komutu çok genel, fly için /flyal onayla gibi bir şey olabilirdi ama senin dediklerine göre yaptım her şeyi :)
NOT: Oyuncular survival gibi dünyalarda da uçabilir. Eğer ki istersen yalnızca spawn dünyasında çalışmasını sağlayabilirim (Eğer ki istiyorsan dünya ismini de atmalısın.).
options:
interval: 1 day
flyTime: 5 minutes
worldwhitelist: "ASkyBlock" or "ASkyBlock_nether"
command /flyal:
aliases: getfly
trigger:
if {lastFreeFlyTime::%player%} isn't set:
set {lastFreeFlyTime::%player%} to now
add 999 years to {lastFreeFlyTime::%player%}
if difference between now and {lastFreeFlyTime::%player%} > {@interval}:
send "&aBu komut ile 5 dakika ücretsiz fly alırsın. DİKKAT! Bu komutu 24 saatte bir kullanabilirsin. 5 dakika ücretsiz fly almak için 30 saniye içerisinde &e/onayla &ayazmalısın." to player
play sound "entity.experience_orb.pickup" at pitch 2 to player
if {flyApprovalWaiting::%player%} isn't true:
set {flyApprovalWaiting::%player%} to true
set {_i} to 0
while {_i} < 30 * 20:
add 1 to {_i}
if {flyApprovalWaiting::%player%} isn't true:
stop
wait a tick
delete {flyApprovalWaiting::%player%}
send "&cÜcretsiz uçuş onayın zaman aşımına uğradı." to player
play sound "block.note_block.bass" at pitch 0.5 to player
else:
send "&cGünlük fly Hakkını kullandın! Lütfen yarın tekrar dene." to player
play sound "block.note_block.bass" at pitch 0.5 to player
command /onayla:
trigger:
if {flyApprovalWaiting::%player%} is true:
delete {flyApprovalWaiting::%player%}
send "&aBaşarıyla 5 dakikalık uçma hakkı kazandın!" to player
play sound "entity.player.levelup" to player
set {freeFly::%player%} to true
set {lastFreeFlyTime::%player%} to now
flyCheckLoop(player)
else:
send "&7Beklenen bir onayınız bulunmuyor." to player
on join:
if difference between {lastFreeFlyTime::%player%} and now <= {@flyTime}:
flyCheckLoop(player)
local function flyCheckLoop(p: player):
# burayı skbee ile async yapabilirim ama skbee şart. (async = daha optimize bir sistem)
while {_p} is online:
if {freeFly::%{_p}%} isn't true:
removeFreeFlyFromPlayer({_p})
stop
if difference between {lastFreeFlyTime::%{_p}%} and now >= {@flyTime}:
delete {freeFly::%{_p}%}
removeFreeFlyFromPlayer({_p})
stop
if {_p} can't fly:
if world of {_p} is {@worldwhitelist}:
make {_p} fly
else:
if world of {_p} isn't {@worldwhitelist}:
make {_p} stop flying
wait 5 second
local function removeFreeFlyFromPlayer(p: player):
send "&cÜcretsiz fly hakkın bitti! Yarın tekrar kullanabilirsin." to {_p}
play sound "block.note_block.bass" at pitch 0.5 to {_p}
delete {freeFly::%{_p}%}
make {_p} stop flying
# Değişkenlerin yönetimi
on load:
delete {FlyApprovalWaiting::*}
loop {lastFreeFlyTime::*}:
if difference between now and loop-value > {@interval}:
delete {lastFreeFlyTime::%loop-index%}
options:
interval: 1 day
flyTime: 5 minutes
worldwhitelist: "ASkyBlock" or "ASkyBlock_nether"
command /flyal:
aliases: getfly
trigger:
if {lastFreeFlyTime::%player%} isn't set:
set {lastFreeFlyTime::%player%} to now
add 999 years to {lastFreeFlyTime::%player%}
if difference between now and {lastFreeFlyTime::%player%} > {@interval}:
send "&aBu komut ile 5 dakika ücretsiz fly alırsın. DİKKAT! Bu komutu 24 saatte bir kullanabilirsin. 5 dakika ücretsiz fly almak için 30 saniye içerisinde &e/onayla &ayazmalısın." to player
play sound "entity.experience_orb.pickup" at pitch 2 to player
if {flyApprovalWaiting::%player%} isn't true:
set {flyApprovalWaiting::%player%} to true
set {_i} to 0
while {_i} < 30 * 20:
add 1 to {_i}
if {flyApprovalWaiting::%player%} isn't true:
stop
wait a tick
delete {flyApprovalWaiting::%player%}
send "&cÜcretsiz uçuş onayın zaman aşımına uğradı." to player
play sound "block.note_block.bass" at pitch 0.5 to player
else:
send "&cGünlük fly Hakkını kullandın! Lütfen yarın tekrar dene." to player
play sound "block.note_block.bass" at pitch 0.5 to player
command /onayla:
trigger:
if {flyApprovalWaiting::%player%} is true:
delete {flyApprovalWaiting::%player%}
send "&aBaşarıyla 5 dakikalık uçma hakkı kazandın!" to player
play sound "entity.player.levelup" to player
set {freeFly::%player%} to true
set {lastFreeFlyTime::%player%} to now
flyCheckLoop(player)
else:
send "&7Beklenen bir onayınız bulunmuyor." to player
on join:
if difference between {lastFreeFlyTime::%player%} and now <= {@flyTime}:
flyCheckLoop(player)
local function flyCheckLoop(p: player):
# burayı skbee ile async yapabilirim ama skbee şart. (async = daha optimize bir sistem)
while {_p} is online:
if {freeFly::%{_p}%} isn't true:
removeFreeFlyFromPlayer({_p})
stop
if difference between {lastFreeFlyTime::%{_p}%} and now >= {@flyTime}:
delete {freeFly::%{_p}%}
removeFreeFlyFromPlayer({_p})
stop
if {_p} can't fly:
if world of {_p} is {@worldwhitelist}:
make {_p} fly
else:
if world of {_p} isn't {@worldwhitelist}:
make {_p} stop flying
wait 5 second
local function removeFreeFlyFromPlayer(p: player):
send "&cÜcretsiz fly hakkın bitti! Yarın tekrar kullanabilirsin." to {_p}
play sound "block.note_block.bass" at pitch 0.5 to {_p}
delete {freeFly::%{_p}%}
make {_p} stop flying
# Değişkenlerin yönetimi
on load:
delete {FlyApprovalWaiting::*}
loop {lastFreeFlyTime::*}:
if difference between now and loop-value > {@interval}:
delete {lastFreeFlyTime::%loop-index%}
[18:59:36 INFO]: [Skript] Reloading denemee.sk...
[18:59:36 ERROR]: '999 years' is not an entity type (denemee.sk, line 12: add 999 years to {lastFreeFlyTime::%player%}')
[18:59:36 ERROR]: 'at pitch 2' is not an entity type (denemee.sk, line 16: play sound "entity.experience_orb.pickup" at pitch 2 to player')
[18:59:36 ERROR]: 'at pitch 0.5' is not an entity type (denemee.sk, line 29: play sound "block.note_block.bass" at pitch 0.5 to player')
[18:59:36 ERROR]: 'at pitch 0.5' is not an entity type (denemee.sk, line 33: play sound "block.note_block.bass" at pitch 0.5 to player')
[18:59:36 ERROR]: 'to player' is not an entity type (denemee.sk, line 42: play sound "entity.player.levelup" to player')
[18:59:36 ERROR]: Can't understand this condition/effect: flyCheckLoop(player) (denemee.sk, line 46: flyCheckLoop(player)')
[18:59:36 ERROR]: Can't understand this condition/effect: flyCheckLoop(player) (denemee.sk, line 52: flyCheckLoop(player)')
[18:59:36 ERROR]: can't understand this event: 'local function flyCheckLoop(p: player)' (denemee.sk, line 55: local function flyCheckLoop(p: player):')
[18:59:36 ERROR]: can't understand this event: 'local function removeFreeFlyFromPlayer(p: player)' (denemee.sk, line 80: local function removeFreeFlyFromPlayer(p: player):')
[18:59:36 ERROR]: can't understand this condition: 'difference between now and loop-value > 1 day' (denemee.sk, line 95: if difference between now and loop-value > {@interval}:')
[18:59:36 INFO]: [Skript]Encountered 10 errors while reloading denemee.sk!
fly süresini vermiyor ve çalışmıyor bakabilir misin :)
[18:59:36 INFO]: [Skript] Reloading denemee.sk...
[18:59:36 ERROR]: '999 years' is not an entity type (denemee.sk, line 12: add 999 years to {lastFreeFlyTime::%player%}')
[18:59:36 ERROR]: 'at pitch 2' is not an entity type (denemee.sk, line 16: play sound "entity.experience_orb.pickup" at pitch 2 to player')
[18:59:36 ERROR]: 'at pitch 0.5' is not an entity type (denemee.sk, line 29: play sound "block.note_block.bass" at pitch 0.5 to player')
[18:59:36 ERROR]: 'at pitch 0.5' is not an entity type (denemee.sk, line 33: play sound "block.note_block.bass" at pitch 0.5 to player')
[18:59:36 ERROR]: 'to player' is not an entity type (denemee.sk, line 42: play sound "entity.player.levelup" to player')
[18:59:36 ERROR]: Can't understand this condition/effect: flyCheckLoop(player) (denemee.sk, line 46: flyCheckLoop(player)')
[18:59:36 ERROR]: Can't understand this condition/effect: flyCheckLoop(player) (denemee.sk, line 52: flyCheckLoop(player)')
[18:59:36 ERROR]: can't understand this event: 'local function flyCheckLoop(p: player)' (denemee.sk, line 55: local function flyCheckLoop(p: player):')
[18:59:36 ERROR]: can't understand this event: 'local function removeFreeFlyFromPlayer(p: player)' (denemee.sk, line 80: local function removeFreeFlyFromPlayer(p: player):')
[18:59:36 ERROR]: can't understand this condition: 'difference between now and loop-value > 1 day' (denemee.sk, line 95: if difference between now and loop-value > {@interval}:')
[18:59:36 INFO]: [Skript]Encountered 10 errors while reloading denemee.sk!
fly süresini vermiyor ve çalışmıyor bakabilir misin :)