options:
cooldown: 30 #Bekleme süresidir. 30 yaparsan rapor komutunu 30 saniyede bir kullanabilirler.
on join:
wait 10 second
set {sure.%player%} to 1
on load:
send "&6Raporlar Aktif" to console
if folder "plugins/skript/Raporlar" doesn't exists:
create folder "pluins/skript/Raporlar"
if file "plugins/skript/Raporlar/raporlar.yml" doesn't exists:
create file "plugins/skript/Raporlar/Raporlar.yml"
if file "plugins/skript/Raporlar/benioku.txt" doesn't exists:
create file "plugins/skript/Raporlar/benioku.txt"
wf "Raporlar" to "plugins/skript/benioku.txt"
wf "/rapor <oyuncu> <sebep> Komutu Uygulandiginda raporlar.yml adli dosyaya rapor iletilir." to "plugins/skript/raporlar/benioku.txt"
command /rapor <player> <text>:
usage: /rapor <oyuncu> <sebep>
trigger:
{sure.%player%} is set:
wf "%player% , %arg 1% adli oyuncuyu rapor etmis >>>> %arg 2%" to "plugins/skript/raporlar.yml"
send "&6Raporunuz iletildi." to player
delete {sure.%player%}
wait 30 second
set {sure.%player%} to 1
#--------- RAPOR SK BY MCILTROT34 (KEMAL895) ---------#
#--------- AYARLAR --------#
on script load:
send "******************" to console
send " > Rapor SK < " to console
send " > KemaL895 < " to console
send "******************" to console
if {rapor.sayi} is not set:
set {rapor.sayi} to 0
options:
skype: Skype Adresiniz
prefix: &b[&6Rapor&b]
#-------- KOMUTLAR ---------#
command /rapor:
trigger:
open chest with 1 rows named "&bRapor Menü" to player
format slot 0 of player with book named "&bŞuana Kadar Toplam Rapor Sayısı" with lore "&2%{rapor.sayi}%" to close then run "send {rapor.sayi}"
format slot 1 of player with paper named "&6Birini Rapor Et" with lore "&2Birini rapor etmek için tıkla !" to close then run "raporetmenu %player%"
format slot 2 of player with diamond named "&6Yetkili Skype Adresleri" with lore "{@skype}" to close then run "send {@skype}"
command /raporetmenu [<player>]:
trigger:
command sender is console
if arg 1 is not set:
set {raporchat.%player%} to true
set {raporasamachat.%player%} to "1"
send "{@prefix} &aLütfen Rapor Edeceğiniz Kişinin Adını Yazınız. Eğer Düzgün Rapor Yazmaz İseniz Sunucudan Uzaklaştırılabilirsiniz." to player
add 1 to {rapor.sayi}
else:
set {raporchat.%arg 1%} to true
set {raporasamachat.%arg 1%} to "1"
send "{@prefix} &aLütfen Rapor Edeceğiniz Kişinin Adını Yazınız. Eğer Düzgün Rapor Yazmaz İseniz Sunucudan Uzaklaştırılabilirsiniz." to arg 1
add 1 to {rapor.sayi}
command /raporet:
trigger:
set {raporchat.%player%} to true
set {raporasamachat.%player%} to "1"
send "{@prefix} &aLütfen Rapor Edeceğiniz Kişinin Adını Yazınız. Eğer Düzgün Rapor Yazmaz İseniz Sunucudan Uzaklaştırılabilirsiniz." to player
add 1 to {rapor.sayi}
#--------- MEKANIKLER ---------#
on chat:
if {raporchat.%player%} is true:
cancel event
if {raporasamachat.%player%} is "1":
set {raporedilen.%player%} to message
send "{@prefix} &aLütfen Rapor Sebebinizi Yazınız."
wait 1 second
set {raporasamachat.%player%} to "2"
stop
if {raporasamachat.%player%} is "2":
set {raporsebebi.%player%} to message
send "{@prefix} &aRaporunuz iletilmiştir. İyi Oyunlar Dileriz :)"
log "Rapor Eden : %player%" to "raporlar.log"
log "Rapor Edilen : %{raporedilen.%player%}%" to "raporlar.log"
log "Rapor Sebebi : %{raporsebebi.%player%}%" to "raporlar.log"
log "**************************************************" to "raporlar.log"
loop all players:
if loop-player is op:
send "{@prefix} &aBir Rapor Geldi !"
send "{@prefix} &3Rapor Eden &0: &2%player%" to loop-player
send "{@prefix} &3Rapor Edilen &0: &2%{raporedilen.%player%}%" to loop-player
send "{@prefix} &3Rapor Sebebi &0: &2%{raporsebebi.%player%}%" to loop-player
clear {raporchat.%player%}
clear {raporasamachat.%player%}
clear {raporedilen.%player%}
clear {raporsebebi.%player%}
stop
Teşekkürler, işime yaradı. :)2 yıl önce yaptığım bi skript, deneyebilirsin. Wildskript ve skquery kullanmayı unutma.
Kod:#--------- RAPOR SK BY MCILTROT34 (KEMAL895) ---------# #--------- AYARLAR --------# on script load: send "******************" to console send " > Rapor SK < " to console send " > KemaL895 < " to console send "******************" to console if {rapor.sayi} is not set: set {rapor.sayi} to 0 options: skype: Skype Adresiniz prefix: &b[&6Rapor&b] #-------- KOMUTLAR ---------# command /rapor: trigger: open chest with 1 rows named "&bRapor Menü" to player format slot 0 of player with book named "&bŞuana Kadar Toplam Rapor Sayısı" with lore "&2%{rapor.sayi}%" to close then run "send {rapor.sayi}" format slot 1 of player with paper named "&6Birini Rapor Et" with lore "&2Birini rapor etmek için tıkla !" to close then run "raporetmenu %player%" format slot 2 of player with diamond named "&6Yetkili Skype Adresleri" with lore "{@skype}" to close then run "send {@skype}" command /raporetmenu [<player>]: trigger: command sender is console if arg 1 is not set: set {raporchat.%player%} to true set {raporasamachat.%player%} to "1" send "{@prefix} &aLütfen Rapor Edeceğiniz Kişinin Adını Yazınız. Eğer Düzgün Rapor Yazmaz İseniz Sunucudan Uzaklaştırılabilirsiniz." to player add 1 to {rapor.sayi} else: set {raporchat.%arg 1%} to true set {raporasamachat.%arg 1%} to "1" send "{@prefix} &aLütfen Rapor Edeceğiniz Kişinin Adını Yazınız. Eğer Düzgün Rapor Yazmaz İseniz Sunucudan Uzaklaştırılabilirsiniz." to arg 1 add 1 to {rapor.sayi} command /raporet: trigger: set {raporchat.%player%} to true set {raporasamachat.%player%} to "1" send "{@prefix} &aLütfen Rapor Edeceğiniz Kişinin Adını Yazınız. Eğer Düzgün Rapor Yazmaz İseniz Sunucudan Uzaklaştırılabilirsiniz." to player add 1 to {rapor.sayi} #--------- MEKANIKLER ---------# on chat: if {raporchat.%player%} is true: cancel event if {raporasamachat.%player%} is "1": set {raporedilen.%player%} to message send "{@prefix} &aLütfen Rapor Sebebinizi Yazınız." wait 1 second set {raporasamachat.%player%} to "2" stop if {raporasamachat.%player%} is "2": set {raporsebebi.%player%} to message send "{@prefix} &aRaporunuz iletilmiştir. İyi Oyunlar Dileriz :)" log "Rapor Eden : %player%" to "raporlar.log" log "Rapor Edilen : %{raporedilen.%player%}%" to "raporlar.log" log "Rapor Sebebi : %{raporsebebi.%player%}%" to "raporlar.log" log "**************************************************" to "raporlar.log" loop all players: if loop-player is op: send "{@prefix} &aBir Rapor Geldi !" send "{@prefix} &3Rapor Eden &0: &2%player%" to loop-player send "{@prefix} &3Rapor Edilen &0: &2%{raporedilen.%player%}%" to loop-player send "{@prefix} &3Rapor Sebebi &0: &2%{raporsebebi.%player%}%" to loop-player clear {raporchat.%player%} clear {raporasamachat.%player%} clear {raporedilen.%player%} clear {raporsebebi.%player%} stop
ImKami#9999
Rica ederiz , yardimimiz dokunduysa ne mutlu bize.Teşekkürler, işime yaradı. :)
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!