Yeni bir Steve doğdu!
- Katılım
- 4 Aralık 2018
- Mesajlar
- 18
- Tepki puanı
- 0
- Puanları
- 0
- Discord
Hocam skripte hata mesajı var mı?olmadı şöyle denesek ordaki komut hangisiyse onun yerine itemspawner get Demir Blok Spawner olarak degiştirebilirmisiniz ?
command /hediyesp:
trigger:
if {hediyesp::%player%} isn't set:
set {hediyesp::%player%} to true
send "&bMitterWeal &8» &7HediyeSP Aldınız." to player
execute console command "komut"
set {hediyesp::%player%} to 1
else:
send "&bMitterWeal &8» &7HediyeSP Zaten Aldınız." to player
hediye sp aldınız diye yazı geliyo ama hiç bi şey gelmiyoŞimdi komut yazan yere sp verme komutunu yaz direk.
Sen bunu söylemiştin sanırım önceden de benim aklımda vardı sanırım.
Kod:command /hediyesp: trigger: if {hediyesp::%player%} isn't set: set {hediyesp::%player%} to true send "&bMitterWeal &8» &7HediyeSP Aldınız." to player execute console command "komut" set {hediyesp::%player%} to 1 else: send "&bMitterWeal &8» &7HediyeSP Zaten Aldınız." to player
Sen verilecek spawnerı oluşturdun mu?hediye sp aldınız diye yazı geliyo ama hiç bi şey gelmiyo
evet oluşturdum spawnerin adı Demir Blok SpawnerSen verilecek spawnerı oluşturdun mu?
Hocam peki yere koyunca spawner mı yoksa kendi bloğu mu?evet oluşturdum spawnerin adı Demir Blok Spawner
şöyle yere koyunca demir blok olarak koyuyo ama demir blok spamlıyo aynı spawner gibi /itemspawner get Demir Blok Spawner koduyla alınca oluyo sadece /hediyesp de olmuyoHocam peki yere koyunca spawner mı yoksa kendi bloğu mu?
command /itemspawner [<text>] [<text>]:
trigger:
if executor is console:
if player has permission "skriptmarketi.itemspawner":
set {_izin} to true
if {_izin} is not set:
message "%{isl::prefix}% &cYetkiniz bulunmamakta!"
stop
if arg-1 is "create":
if arg-2 is set:
set {_spawners::*} to yaml list "Spawner-List" from file "../../FItemSpawner/spawners.yml"
loop {_spawners::*}:
if "%arg-2%" is "%loop-value%":
set {_msg} to "%{isl::already-created}%"
replace all "{SPAWNER}" with "%arg-2%" in {_msg}
message "%{isl::prefix}% %{_msg}%"
stop
add "%arg-2%" to yaml list "Spawner-List" from file "../../FItemSpawner/spawners.yml"
set yaml value "Spawners.%arg-2%.ItemID" from file "../../FItemSpawner/spawners.yml" to 1
set yaml value "Spawners.%arg-2%.BlockID" from file "../../FItemSpawner/spawners.yml" to 1
set yaml value "Spawners.%arg-2%.DropTime" from file "../../FItemSpawner/spawners.yml" to 1
set yaml value "Spawners.%arg-2%.DropAmount" from file "../../FItemSpawner/spawners.yml" to 1
set yaml value "Spawners.%arg-2%.DropName" from file "../../FItemSpawner/spawners.yml" to "&7Taş"
set yaml value "Spawners.%arg-2%.Name" from file "../../FItemSpawner/spawners.yml" to "&7%arg-2%"
set {_msg} to "%{isl::successfully-created}%"
replace all "{SPAWNER}" with "%arg-2%" in {_msg}
message "%{isl::prefix}%%{_msg}%"
message "%{isl::prefix}%&fUse : &a/itemspawner reload"
else if arg-1 is "get":
if arg-2 is set:
loop {s::spawners::*}:
if "%arg-2%" is "%{s::spawners::%arg-2%}%":
give 1 of {s::block::%arg-2%} named "%{s::name::%arg-2%}%" to player
stop
set {_msg} to "%{isl::doesnt-exist}%"
replace all "{SPAWNER}" with "%arg-2%" in {_msg}
message "%{isl::prefix}% %{_msg}%"
else:
message "%{isl::prefix}% Write a spawner name!"
else if arg-1 is "list":
set {_s} to 0
message "%{isl::spawners}%"
loop {s::spawners::*}:
add 1 to {_s}
message "&a- &f%loop-value%"
if {_s} is 0:
message "&cNo Spawners"
else:
message "&aGet info : &f/itemspawner info (spawner-name)"
else if arg-1 is "reload":
message "%{isl::prefix}% %{isl::reloading}%"
invoke "getConfig"
invoke "getSpawners"
message "%{isl::prefix}% %{isl::reloaded}%"
set {_s} to 0
message "&2&lLoaded Spawners;"
loop {s::spawners::*}:
add 1 to {_s}
message "&a- &f%loop-value%"
if {_s} is 0:
message "&c&oNo spawners"
else if arg-1 is "delete":
message "%{isl::prefix}% &cThe skript doesn't support delete!"
else if arg-1 is "info":
if arg-2 is set:
loop {s::spawners::*}:
if "%arg-2%" is "%{s::spawners::%arg-2%}%":
message "&8&l&m-------/&d&lF&2&lItem&a&lSpaw&f&lner&8&l&m\-------"
message "&2&l• &fNAME - &a%{s::spawners::%arg-2%}%"
message "&2&l• &fBLOCK - &a%{s::block::%arg-2%}%"
message "&2&l• &fITEM - &a%{s::items::%arg-2%}%"
message "&8&l&m-------/&d&lF&2&lItem&a&lSpaw&f&lner&8&l&m\-------"
stop
set {_msg} to "%{isl::doesnt-exist}%"
replace all "{SPAWNER}" with "%arg-2%" in {_msg}
message "%{isl::prefix}% %{_msg}%"
else if arg-1 is "admin":
if arg-2 is "ac":
message "%{isl::prefix}% &7Admin modu &aaktif!"
set {adminmod::%player%} to true
else if arg-2 is "kapat":
message "%{isl::prefix}% &7Admin modu &caktif!"
delete {adminmod::%player%}
else:
message "&6Kullanım: &e/itemspawner admin <ac/kapat>"
else if arg-1 is "help":
message "&8&l&m-------/&d&lF&2&lItem&a&lSpaw&f&lner&8&l&m\-------"
message "&2&l• &f/itemspawner create (spawner-name) - &aCreate a spawner into spawners.yml!"
message "&2&l• &f/itemspawner delete (spawner-name) - &aDelete a spawner from spawners.yml!"
message "&2&l• &f/itemspawner get (spawner-name) - &aGives you a spawner!"
message "&2&l• &f/itemspawner admin (ac/kapat) - &aAdmin modu!!"
message "&2&l• &f/itemspawner list - &aList the spawners!"
message "&2&l• &f/itemspawner reload - &aReload the skript!"
message "&8&l&m-------/&d&lF&2&lItem&a&lSpaw&f&lner&8&l&m\-------"
else:
message "&5Author : &dMitterWeaL"
message "&5Version : &d1"
message "&5&lITEM SPAWNER SKRIPT!"
message "&a/itemspawner help"