Skript Paylaşımı Sat Skripti Menülü

  • Konuyu Başlatan Konuyu Başlatan kingOf0
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 5.178
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

kingOf0

"~SimitSu"
Katılım
14 Haziran 2016
Mesajlar
1.057
Elmaslar
746
Puan
16.270
Konum
getPlayer("SimitSu").getLocation()
Minecraft
SimitSu

Discord:

kingOf0!#4055

yeni_logo - Kopya.png

Merhaba Mc-Tr üyeleri. Bu konumuzda bir zamanlar kendi kullandığım sat skript'ini paylaşıyorum

Skript:
Kod:
options:
    p: &aMc-&cTr &8→
    diapara: 100 # ADET!
    emepara: 250
    golpara: 70
    iropara: 50
    coapara: 40
    lapara: 50
command /sat:
    trigger:
        create a gui with virtual chest with 6 rows named "Satılacakları buraya Koy":
            open last gui to player
            run when close the gui:
                set {_Variable::*} to all items of gui-inventory
                loop {_Variable::*}:
                    if loop-value isn't diamond or iron ingot or golden ingot or emerald or coal or lapis:
                        give {_Variable::*} to player
                        send "{@p} Bunları satamazsın!"                       
                        stop
                       
                set {_dia} to number of diamond in event-inventory
                set {_eme} to number of emerald in event-inventory
                set {_gol} to number of gold ingot in event-inventory
                set {_coa} to number of coal in event-inventory
                set {_iro} to number of iron ingot in event-inventory
                set {_lap} to number of lapis in event-inventory
                set {_total} to ({_lap} * {@lapara}) + ({_iro} * {@iropara}) + ({_coa} * {@coapara}) + ({_gol} * {@golpara}) + ({_eme} * {@emepara}) + ({_dia} * {@diapara})
                if size of {_Variable::*} > 0:
                    add ({_iro} * {@iropara}) to player's balance
                    add ({_coa} * {@coapara}) to player's balance
                    add ({_gol} * {@golpara}) to player's balance
                    add ({_eme} * {@emepara}) to player's balance
                    add ({_dia} * {@diapara}) to player's balance
                    add ({_lap} * {@diapara}) player's balance
        
                    send "{@p} Bunları başarıyla sattın, Hesabına  %{_total}% eklendi!"
                else:
                    send "{@p} Satmak için bir şeyler yerleştirmelisin, havayı satamazsın!"

Gereksinimler:
Skript
Skquery
Tuske
Vault & Herhangi bir Ekonomi plugini(Essentials vs)

(Eğer hata alıyorsanız son sürüm Tuske Ve Skript(dev37c) kullanınız.)

İndir:
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.

Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.


Skriptten bahsedersek:
Evet bu skript siz ./sat yazdığınızda bir menü açıyor ve bu menüye satmak istediğiniz itemleri yerleştiriyorsunuz ve kapatıyorsunuz itemler otomatik satılıyor

Yapılacaklar:
Satılacak itemleri oyun içi ayarlama eklenecek
Her türlü itemi satma eklenecek


2018-06-25_22.12.52.png

Skriptin olayı bu kadar daha fazla resim eklemenin lüzumu yok
yeni_logo.png
 

Ekli dosyalar

  • 2018-06-25_22.13.01.png
    2018-06-25_22.13.01.png
    173,1 KB · Görüntüleme: 323
Son düzenleme:
Bu skripti kim yazdı?
 
2-2.5 ay önce Ben yazdım? son 1 ayda başkasıda yazdıysa bilmyiorum ama bu skript bana ait
 
Önceden bu skripti başka bir yerde görmüştüm.
 
Önceden bu skripti başka bir yerde görmüştüm.
Bu skripti mc-tr için yazmaya başladım ama mc-tr ile kötü bi durum yaşadık o yüzden
2-3 hafta civarı önce bi yerde daha paylaşmıştım. Geçen günlerde mc-tr ile ilgili sorunlarım çözüldü o yüzden mc-tr de de paylaşmak istedim
 
güzelmiş satılacakları buraya koy falan guili iyi olmuş /demirsat /kaktüs sat yerine tek komut nice
 
Bu skripti mc-tr için yazmaya başladım ama mc-tr ile kötü bi durum yaşadık o yüzden
2-3 hafta civarı önce bi yerde daha paylaşmıştım. Geçen günlerde mc-tr ile ilgili sorunlarım çözüldü o yüzden mc-tr de de paylaşmak istedim
Kod:
[19:12:04] [Server thread/INFO]: KanliGirdap issued server command: /sat
[19:12:04] [Server thread/INFO]: KanliGirdap [8f8ba10d-f352-301c-8408-3a06e022571b]: /sat
[19:12:04] [Server thread/ERROR]: #!#!
[19:12:04] [Server thread/ERROR]: #!#! [Skript] Severe Error:
[19:12:04] [Server thread/ERROR]: #!#!
[19:12:04] [Server thread/ERROR]: #!#! Something went horribly wrong with Skript.
[19:12:04] [Server thread/ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[19:12:04] [Server thread/ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
[19:12:04] [Server thread/ERROR]: #!#! Here is full list of them:
[19:12:04] [Server thread/ERROR]: #!#! skRayFall (https://sk.rayfall.net/) TuSKe (github.com/Tuke-Nuke/TuSKe) skUtilities (https://tim740.github.io/) SkQuery
[19:12:04] [Server thread/ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue.
[19:12:04] [Server thread/ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it.
[19:12:04] [Server thread/ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
[19:12:04] [Server thread/ERROR]: #!#! In that case, you will be given instruction on how should you report it.
[19:12:04] [Server thread/ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
[19:12:04] [Server thread/ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker.
[19:12:04] [Server thread/ERROR]: #!#!
[19:12:04] [Server thread/ERROR]: #!#! Stack trace:
[19:12:04] [Server thread/ERROR]: #!#! java.lang.ClassCastException: java.util.HashMap cannot be cast to java.util.WeakHashMap
[19:12:04] [Server thread/ERROR]: #!#!     at com.github.tukenuke.tuske.util.VariableUtil.<init>(VariableUtil.java:24)
[19:12:04] [Server thread/ERROR]: #!#!     at com.github.tukenuke.tuske.util.VariableUtil.getInstance(VariableUtil.java:17)
[19:12:04] [Server thread/ERROR]: #!#!     at com.github.tukenuke.tuske.sections.gui.EffOnCloseGUI.execute(EffOnCloseGUI.java:44)
[19:12:04] [Server thread/ERROR]: #!#!     at com.github.tukenuke.tuske.util.EffectSection.check(EffectSection.java:54)
[19:12:04] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Condition.run(Condition.java:56)
[19:12:04] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Conditional.walk(Conditional.java:51)
[19:12:04] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
[19:12:04] [Server thread/ERROR]: #!#!     at ch.njol.skript.lang.Trigger.execute(Trigger.java:57)
[19:12:04] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:286)
[19:12:04] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:243)
[19:12:04] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands.handleCommand(Commands.java:254)
[19:12:04] [Server thread/ERROR]: #!#!     at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:169)
[19:12:04] [Server thread/ERROR]: #!#!     at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:35)
[19:12:04] [Server thread/ERROR]: #!#!     at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78)
[19:12:04] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
[19:12:04] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:527)
[19:12:04] [Server thread/ERROR]: #!#!     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:512)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1466)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1279)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14)
[19:12:04] [Server thread/ERROR]: #!#!     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[19:12:04] [Server thread/ERROR]: #!#!     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:843)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:427)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:767)
[19:12:04] [Server thread/ERROR]: #!#!     at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:665)
[19:12:04] [Server thread/ERROR]: #!#!     at java.lang.Thread.run(Thread.java:748)
[19:12:04] [Server thread/ERROR]: #!#!
[19:12:04] [Server thread/ERROR]: #!#! Version Information:
[19:12:04] [Server thread/ERROR]: #!#!   Skript: 2.3.1 (custom version)
[19:12:04] [Server thread/ERROR]: #!#!     Flavor: selfbuilt-unknown
[19:12:04] [Server thread/ERROR]: #!#!     Date: unknown
[19:12:04] [Server thread/ERROR]: #!#!   Bukkit: 1.12.2-R0.1-SNAPSHOT
[19:12:04] [Server thread/ERROR]: #!#!   Minecraft: 1.12.2
[19:12:04] [Server thread/ERROR]: #!#!   Java: 1.8.0_191 (OpenJDK 64-Bit Server VM 25.191-b12)
[19:12:04] [Server thread/ERROR]: #!#!   OS: Linux amd64 4.15.0-43-generic
[19:12:04] [Server thread/ERROR]: #!#!
[19:12:04] [Server thread/ERROR]: #!#! Server platform: Paper
[19:12:04] [Server thread/ERROR]: #!#!
[19:12:04] [Server thread/ERROR]: #!#! Current node: null
[19:12:04] [Server thread/ERROR]: #!#! Current item: run when close
[19:12:04] [Server thread/ERROR]: #!#! Current trigger: command /sat (simple event) (sat.sk, line -1)
[19:12:04] [Server thread/ERROR]: #!#!
[19:12:04] [Server thread/ERROR]: #!#! Thread: Server thread
[19:12:04] [Server thread/ERROR]: #!#!
[19:12:04] [Server thread/ERROR]: #!#! Language: english
[19:12:04] [Server thread/ERROR]: #!#! Link parse mode: DISABLED
[19:12:04] [Server thread/ERROR]: #!#!
[19:12:04] [Server thread/ERROR]: #!#! End of Error.
[19:12:04] [Server thread/ERROR]: #!#!
Bu hatayı alıyorum sunucum ubuntuya kurulu tuske ve diyer addonların çogu çalışmıyor sürüm 1.12.2 adonlarım ve skript puligini güncel
 
skrıpt cok guzel ama denendımı ?
 
sadece dıa gold emerald demırmı yoksa hepsını satabılıyormu
 
Geliştirile bilir başarılar.​
 
kullanmayı düşünüyorum
 
Fonksiyon kullansan daha iyi olurdu
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst