xVeryz
Yay Yok, İskelet Yok
- Katılım
- 6 Haziran 2021
- Mesajlar
- 290
- Elmaslar
- 42
- Puan
- 9.170
- Minecraft
- Rotxeein
Discord:
rotxeein0
Aşağıda yer alan günlük ödül skriptine süre sistemi eklenmesi gerekiyor oyuncu günlük ödülünü aldığında bir sonraki ödüle ne kadar süre kaldığını görmeli yani.
Şimdiden herkese çok teşekkür ederim!
Örnek oyuniçi görüntü:
Şimdiden herkese çok teşekkür ederim!
Örnek oyuniçi görüntü:
Kod:
options:
prefix: <##E1FFAF>&l** &8•
on join:
set {_uuid} to player's uuid
set {_lastLogin} to {gunlukodul.son.%{_uuid}%}
if {_lastLogin} is set:
set {_gecenZaman} to difference between now and {_lastLogin}
if {_gecenZaman} >= 2 days:
loop 7 times:
delete {gun%loop-number%.%{_uuid}%}
delete {gun%loop-number%alindi.%{_uuid}%}
set {gun1.%{_uuid}%} to true
set {gunlukodul.son.%{_uuid}%} to now
gunlukodul(player)
else if {_gecenZaman} >= 1 day:
loop 7 times:
if {gun%loop-number%.%{_uuid}%} is not set:
set {gun%loop-number%.%{_uuid}%} to true
set {gunlukodul.son.%{_uuid}%} to now
gunlukodul(player)
stop
else:
set {gun1.%{_uuid}%} to true
set {gunlukodul.son.%{_uuid}%} to now
function gunlukodul(p: player):
set metadata tag "gunlukodul" of {_p} to chest inventory with 3 rows named "&8ɢüɴʟüᴋ öᴅüʟ"
set slot (numbers between 0 to 26) of metadata "gunlukodul" of {_p} to light gray stained glass pane named "<##E1FFAF>**"
set slot 18 of metadata "gunlukodul" of {_p} to arrow named "&7ɢᴇʀi ᴅöɴ" with lore "&f • &7Buradan bir önceki sayfaya dönebilirsin."
set {_slot} to 10
set {_day} to 1
while {_day} <= 7:
if {gun%{_day}%.%{_p}'s uuid%} is set:
if {gun%{_day}%alindi.%{_p}'s uuid%} is not set:
set slot {_slot} of metadata "gunlukodul" of {_p} to gold block named "&dɢüɴʟüᴋ öᴅüʟ #%{_day}%" with lore "&8**" and "&8**" and "" and " &7• ᴅᴜʀᴜᴍ: &6ᴀʟɪɴᴀʙiʟiʀ"
else:
set slot {_slot} of metadata "gunlukodul" of {_p} to diamond block named "&dɢüɴʟüᴋ öᴅüʟ #%{_day}%" with lore "&8**" and "&8**" and "" and " &7• ᴅᴜʀᴜᴍ: &aᴀʟɪɴᴅɪ"
else:
set slot {_slot} of metadata "gunlukodul" of {_p} to coal block named "&dɢüɴʟüᴋ öᴅüʟ #%{_day}%" with lore "&8**" and "&8**" and "" and " &7• ᴅᴜʀᴜᴍ: &cᴋiʟiᴛʟi" and " &7┖ ѕüʀᴇ: &c "
add 1 to {_slot}
add 1 to {_day}
open metadata tag "gunlukodul" of {_p} to {_p}
on inventory click:
if event-inventory = metadata tag "gunlukodul" of player:
cancel event
if event-slot = 18:
console command "dm open anamenu %player%"
play sound "entity.experience_orb.pickup" with volume 100 with pitch 1 to player
send "{@prefix} &7Ana menü açıldı." to player
set {_day} to 1
set {_slot} to 10
while {_slot} <= 16:
if event-slot = {_slot}:
if {gun%{_day}%.%player's uuid%} is set:
if {gun%{_day}%alindi.%player's uuid%} is not set:
set {gun%{_day}%alindi.%player's uuid%} to true
play sound "entity.allay.item_given" with volume 100 with pitch 0 to player
gunlukodul(player)
else:
play sound "entity.allay.item_taken" with volume 100 with pitch 0 to player
else:
play sound "entity.allay.item_thrown" with volume 100 with pitch 0 to player
add 1 to {_day}
add 1 to {_slot}