Bir plugin paketinden bir skript buldum ama editlerken tabları bozdum acaba yardım edebilir misiniz çok uzun bir skript yapmak istemeyenler haklı :)
Kod:
variables:
{madenci.%player%.level} = 0
{oduncu.%player%.level} = 0
{kazici.%player%.level} = 0
command /gorev [<text>] [<text>] [<offline player>]:
trigger:
if arg-1 is set:
if arg-1 is "durum":
if {madenci.%player%.gorev} is 1:
send "&6Lapis Görevi: &b&l%{madenci.%player%.level}%/5000"
else:
if {oduncu.%player%.gorev} is 1:
send "&6Odun Görevi: &b&l%{oduncu.%player%.level}%/5000"
else:
if {kazici.%player%.gorev} is 1:
send "&6Kum Görevi: &b&l%{kazici.%player%.level}%/10000"
if arg-1 is "join":
if arg-2 is set:
if arg-3 is not set:
if arg-2 is "madenci":
if {madenci.%player%.gorev} is not set:
if {oduncu.%player%.gorev} is not set:
if {kazici.%player%.gorev} is not set:
set {madenci.%player%.gorev} to 1
send "&8&l[&aMC&7-&4T&fR&8&l] &7Madenci Meslegine Girdin." to player
send "&8&l[&aMC&7-&4T&fR&8&l] &7Gorevin&f: &65000 Adet Lapis Kazmak." to player
send "&8&l[&aMC&7-&4T&fR&8&l] &aOdulun&f: &6350K 2 Adet NarinSandik Anahtari, 1 SansliSandik Anahtari ve 1 Adet ObisdyenSandik Anahtari" to player
send "&8&l[&aMC&7-&4T&fR&8&l] &bGorevinin Bitmesine Az Kalmisken Envanterini Bosaltmayi Unutma" to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Zaten Bir Gorevin Var. &cKazici" to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Zaten Bir Gorevin Var. &cOduncu" to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Zaten Bu Gorevdesin." to player
exit
if arg-2 is "oduncu":
if {madenci.%player%.gorev} is not set:
if {oduncu.%player%.gorev} is not set:
if {kazici.%player%.gorev} is not set:
set {oduncu.%player%.gorev} to 1
send "&8&l[&aMC&7-&4T&fR&8&l] &7Gorevin&f: &65000 Adet Odun Kasmak." to player
send "&8&l[&aMC&7-&4T&fR&8&l] &aOdulun&f: &6350K 2 Adet NarinSandik Anahtari, 1 SansliSandik Anahtari ve 1 Adet ObisdyenSandik Anahtari" to player
send "&8&l[&aMC&7-&4T&fR&8&l] &bGorevinin Bitmesine Az Kalmisken Envanterini Bosaltmayi Unutma" to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Zaten Bir Gorevin Var. &cKazici" to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Zaten Bu Gorevdesin." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Zaten Bir Gorevin Var. &cMadenci" to player
exit
if arg-2 is "kazici":
if {madenci.%player%.gorev} is not set:
if {oduncu.%player%.gorev} is not set:
if {kazici.%player%.gorev} is not set:
set {kazici.%player%.gorev} to 1
send "&8&l[&aMC&7-&4T&fR&8&l] &7Gorevin&f: &610000 Adet Kum Kazmak." to player
send "&8&l[&aMC&7-&4T&fR&8&l] &aOdulun&f: &6350K 2 Adet NarinSandik Anahtari ve 1 SansliSandik Anahtari." to player
send "&8&l[&aMC&7-&4T&fR&8&l] &bGorevinin Bitmesine Az Kalmisken Envanterini Bosaltmayi Unutma" to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Zaten Bu Gorevdesin." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Zaten Bir Gorevin Var. &cOduncu" to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Zaten Bir Gorevin Var. &cMadenci" to player
exit
if arg-1 is set:
if arg-1 is "leave":
if arg-2 is set:
if arg-2 is "madenci":
if arg-3 is not set:
if {madenci.%player%.gorev} is 1:
if {oduncu.%player%.gorev} is not set:
if {kazici.%player%.gorev} is not set:
clear {madenci.%player%.gorev}
clear {madenci.%player%.level}
clear {madenci.%player%.levels}
send "&8&l[&aMC&7-&4T&fR&8&l] &7Madenci Gorevinden Ayrildin." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Gorevin Zaten Kazicilik." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Gorevin Zaten Odunculuk." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Gorevin Zaten Madencilik Degil." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Sondaki 1 Argumenti Silin." to player
exit
if arg-2 is "oduncu":
if arg-3 is not set:
if {oduncu.%player%.gorev} is 1:
if {madenci.%player%.gorev} is not set:
if {kazici.%player%.gorev} is not set:
clear {oduncu.%player%.gorev}
clear {oduncu.%player%.level}
clear {oduncu.%player%.levels}
send "&8&l[&aMC&7-&4T&fR&8&l] &7Oduncu Gorevinden Ayrildin." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Gorevin Zaten Kazicilik." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Gorevin Zaten Madencilik." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Gorevin Zaten Odunculuk Degil." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Sondaki 1 Argumenti Silin." to player
exit
if arg-2 is "kazici":
if arg-3 is not set:
if {kazici.%player%.gorev} is 1:
if {madenci.%player%.gorev} is not set:
if {oduncu.%player%.gorev} is not set:
clear {kazici.%player%.gorev}
clear {kazici.%player%.level}
clear {kazici.%player%.levels}
send "&8&l[&aMC&7-&4T&fR&8&l] &7Kazici Gorevinden Ayrildin." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Gorevin Zaten Odunculuk." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Gorevin Zaten Madencilik." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Senin Gorevin Zaten Kazicilik Degil." to player
exit
else:
send "&8&l[&aMC&7-&4T&fR&8&l] &7Sondaki 1 Argumenti Silin." to player
exit
on break of lapis ore:
if {madenci.%player%.gorev} is 1:
if {madenci.%player%.levels} is not set:
add 1 to {madenci.%player%.level}
execute console command "tm amsg -silent %player% &b&l%{madenci.%player%.level}%/5000"
if {madenci.%player%.level} is bigger than or equal to 5000:
clear {madenci.%player%.level}
clear {madenci.%player%.levels}
clear {madenci.%player%.gorev}
send "&8&l[&aMC&7-&4T&fR&8&l] &c%player% Adli Oyuncu &6Lapis Gorevini Tamamladi." to players
send "&8&l[&aMC&7-&4T&fR&8&l] &6Gorevden Otomatik Olarak Ayrildin."
execute console command "eco give %player% 350000"
execute console command "give %player% 131 1 name:&aSansliSandik_&4Anahtari"
execute console command "give %player% 131 2 name:&aNarinSandik_&4Anahtari"
execute console command "give %player% 131 1 name:&aObsidyenSandik_&4Anahtari"
exit
on break of log:
if {oduncu.%player%.gorev} is 1:
if {oduncu.%player%.levels} is not set:
add 1 to {oduncu.%player%.level}
execute console command "tm amsg -silent %player% &b&l%{oduncu.%player%.level}%/5000"
if {oduncu.%player%.level} is bigger than or equal to 5000:
send "&8&l[&aMC&7-&4T&fR&8&l] &c%player% Adli Oyuncu &6Odun Gorevini Tamamladi." to players
send "&8&l[&aMC&7-&4T&fR&8&l] &6Gorevden Otomatik Olarak Ayrildin."
clear {oduncu.%player%.level}
clear {oduncu.%player%.levels}
clear {oduncu.%player%.gorev}
execute console command "eco give %player% 350000"
execute console command "give %player% 131 1 name:&aSansliSandik_&4Anahtari"
execute console command "give %player% 131 2 name:&aNarinSandik_&4Anahtari"
execute console command "give %player% 131 1 name:&aObsidyenSandik_&4Anahtari"
exit
on break of sand:
if {kazici.%player%.gorev} is 1:
if {kazici.%player%.levels} is not set:
add 1 to {kazici.%player%.level}
execute console command "tm amsg -silent %player% &b&l%{kazici.%player%.level}%/10000"
if {kazici.%player%.level} is bigger than or equal to 10000:
send "&8&l[&aMC&7-&4T&fR&8&l] &c%player% Adli Oyuncu &6Kum Gorevini Tamamladi." to players
send "&8&l[&aMC&7-&4T&fR&8&l] &6Gorevden Otomatik Olarak Ayrildin."
clear {kazici.%player%.level}
clear {kazici.%player%.levels}
clear {kazici.%player%.gorev}
execute console command "eco give %player% 350000"
execute console command "give %player% 131 1 name:&aSansliSandik_&4Anahtari"
execute console command "give %player% 131 2 name:&aNarinSandik_&4Anahtari"
exit