# --> TILSIMLAR RPG SISTEMI <-- #
# Skripti kullanıyorsanız lütfen optionsdaki ayarlar hariç hiç bir kodla oynamayınız.
options:
p: &c&lTILSIM v1.0.sk &a&l>&r
on join:
if {tilsimk::%player%} is not set:
set {tilsimk::%player%} to 0
if {toprakt2::%player%} is not set:
set {toprakt2::%player%} to 0
command /admintilsim [<text>] [<text>]:
permission: tilsim.op
trigger:
if arg 1 is "ver":
if arg 2 is not set:
send "{@p} &b/admintilsim ver ''toprak,buz,ates''" to player
if arg 1 is "ver":
if arg 2 is "toprak":
give 1 brown dye named "&a&lToprak Tılsımı &6[KUTSAL]" to player
send "{@p} &bBaşarıyla &c%arg-2% &badlı tılsımı aldın." to player
else if arg 2 is "buz":
give 1 light blue dye named "&b&lBuz Tılsımı &6[KUTSAL]" to player
send "{@p} &bBaşarıyla &c%arg-2% &badlı tılsımı aldın." to player
else if arg 2 is "ates":
give 1 red dye named "&4&lAteş Tılsımı &6[KUTSAL]" to player
send "{@p} &bBaşarıyla &c%arg-2% &badlı tılsımı aldın." to player
if arg 1 is not set:
send "{@p} &b/admintilsim ver ''toprak,buz,ates''" to player
command /tilsim [<text>] [<text>]:
trigger:
if arg 1 is "cikar":
if arg 2 is not set:
if {toprakt::%player%} is 1:
send "{@p} &b/tilsim cikar toprak komutunu kullanın." to player
else if {buzt::%player%} is 1:
send "{@p} &b/tilsim cikar buz komutunu kullanın." to player
else if {atest::%player%} is 1:
send "{@p} &b/tilsim cikar ates komutunu kullanın." to player
if arg 1 is "cikar":
if arg 2 is "toprak":
set {tilsimk::%player%} to 0
set {toprakt::%player%} to 0
give 1 brown dye named "&a&lToprak Tılsımı &6[KUTSAL]" to player
send "{@p} &bBaşarıyla çıkartıldı!" to player
if arg 2 is "buz":
set {tilsimk::%player%} to 0
set {buzt::%player%} to 0
give 1 light blue dye named "&b&lBuz Tılsımı &6[KUTSAL]" to player
send "{@p} &bBaşarıyla çıkartıldı!" to player
if arg 2 is "ates":
set {tilsimk::%player%} to 0
set {atest::%player%} to 0
give 1 red dye named "&4&lAteş Tılsımı &6[KUTSAL]" to player
send "{@p} &bBaşarıyla çıkartıldı!" to player
on right click with brown dye:
if name of player's tool is "&a&lToprak Tılsımı &6[KUTSAL]":
if {tilsimk::%player%} is 0:
set {toprakt::%player%} to 1
set {tilsimk::%player%} to 1
remove 1 brown dye named "&a&lToprak Tılsımı &6[KUTSAL]" from player
send "{@p} &bBaşarıyla tılsımı taktınız. &c/tilsim durum" to player
else:
send "{@p} &bZaten bir tılsım kullanıyorsun! &c/tilsim cikar" to player
on right click with light blue dye:
if name of player's tool is "&b&lBuz Tılsımı &6[KUTSAL]":
if {tilsimk::%player%} is 0:
set {buzt::%player%} to 1
set {tilsimk::%player%} to 1
remove 1 light blue dye named "&b&lBuz Tılsımı &6[KUTSAL]" from player
send "{@p} &bBaşarıyla tılsımı taktınız. &c/tilsim durum" to player
else:
send "{@p} &bZaten bir tılsım kullanıyorsun! &c/tilsim cikar" to player
on right click with red dye:
if name of player's tool is "&4&lAteş Tılsımı &6[KUTSAL]":
if {tilsimk::%player%} is 0:
set {atest::%player%} to 1
set {tilsimk::%player%} to 1
remove 1 red dye named "&4&lAteş Tılsımı &6[KUTSAL]" from player
send "{@p} &bBaşarıyla tılsımı taktınız. &c/tilsim durum" to player
else:
send "{@p} &bZaten bir tılsım kullanıyorsun! &c/tilsim cikar" to player
on damage:
victim is player
damage cause is burning:
if {atest::%victim%} is 1:
cancel event
on any move:
if {atest::%player%} is 1:
loop blocks in radius 5 of player's location:
loop-block is fire:
set loop-block to air
on damage:
if damage was caused by drowning:
if {buzt::%victim%} is 1:
cancel event
on any move:
if {buzt::%player%} is 1:
loop blocks in radius 2 of player's location:
loop-block is water:
set loop-block to ice
if {buzt::%player%} is 1:
loop blocks in radius 2 of player's location:
loop-block is fire:
set loop-block to ice
on right click on dirt or grass:
if {toprakt::%player%} is 1:
if {toprakt2::%player%} is 0 or 1:
add 1 to {toprakt2::%player%}
else if {toprakt2::%player%} is 2:
push player upwards at speed 2
set {toprakt2::%player%} to 0
send "{@p} &bToprak bükülmesi başarılı!" to player
on damage:
victim is player
damage cause is fall:
if {toprakt::%victim%} is 1:
cancel event