Yabancı bir sitede gördügüm skript

Pentatonix

Zombi Katili
En iyi cevaplar
0
arkadaşlar dev.bukkit forumunda bu skripti gördüm ama anlayamadım nasıl bir şey ?
Kod:
#+--------------------------------------+
#| Main Command                        |
#+--------------------------------------+

command /ability <text> <text>:
    trigger:

#+--------------------------------------+
#| Ability use                          |
#+--------------------------------------+

        arg 1 is "use":

#+----------------------------+
#| Mage                      |
#+----------------------------+

#+--------------------+
#| Fire              |
#+--------------------+

            arg 2 is "Ignite":
                {class::%player%} is "mage"
                {class.spec::%player%} is "fire"
                {class.level::%player%} is greater than or equal to 10
                set {_level.%player%} to {class.level::%player%} * 0.10
                player's level progress is larger than 0.40 / {_level.%player%}
                if targeted entity exists:
                    ignite targeted entity
                    player's gamemode is not creative
                    reduce player's level progress by 0.40 / {_level.%player%}
                else if block above targeted block is air:
                    set block above targeted block to fire
                    reduce the player's level progress by 0.40 / {_level.%player%}
           
            arg 2 is "Fireball":
                {class::%player%} is "mage"
                {class.spec::%player%} is "fire"
                {class.level::%player%} is greater than or equal to 30
                {class::%player%} is "mage"
                player's level progress is larger than 0.10
                shoot fireball from player at speed 1
                reduce player's level progress by 0.10

            arg 2 is "Strike":
                {class::%player%} is "mage"
                {class.spec::%player%} is "fire"
                {class.level::%player%} is greater than or equal to 70
                {class::%player%} is "mage"
                player's level progress is larger than 0.50
                shoot tnt from player at speed 5
                reduce player's level progress by 0.50

#+--------------------------------------+
#| Ability select                      |
#+--------------------------------------+

        arg 1 is "select":

#+----------------------------+
#| Mage                      |
#+----------------------------+

    # Global ability 1
            arg 2 is "":
                {class::%player%} is "mage"
                set {ability::%player%} to "%arg 2%"
   
    # Global ability 2
            arg 2 is "":
                {class::%player%} is "mage"
                {class.level::%player%} is greater than or equal to 20
                set {ability::%player%} to "%arg 2%"

    # Global ability 3
            arg 2 is "":
                {class::%player%} is "mage"
                {class.level::%player%} is greater than or equal to 40
                set {ability::%player%} to "%arg 2%"

    # Global ability 4
            arg 2 is "":
                {class::%player%} is "mage"
                {class.level::%player%} is greater than or equal to 60
                set {ability::%player%} to "%arg 2%"

    # Global ability 5
            arg 2 is "":
                {class::%player%} is "mage"
                {class.level::%player%} is greater than or equal to 80
                set {ability::%player%} to "%arg 2%"

#+--------------------+
#| Fire              |
#+--------------------+

    # Fire ability 1
            arg 2 is "Ignite":
                {class::%player%} is "mage"
                {class.spec::%player%} is "fire"
                {class.level::%player%} is greater than or equal to 10
                set {ability::%player%} to "%arg 2%"

    # Fire ability 2
            arg 2 is "Fireball":
                {class::%player%} is "mage"
                {class.spec::%player%} is "fire"
                {class.level::%player%} is greater than or equal to 30
                set {ability::%player%} to "%arg 2%"

    # Fire ability 3
            arg 2 is "":
                {class::%player%} is "mage"
                {class.spec::%player%} is "fire"
                {class.level::%player%} is greater than or equal to 50
                set {ability::%player%} to "%arg 2%"

    # Fire ability 4
            arg 2 is "Strike":
                {class::%player%} is "mage"
                {class.spec::%player%} is "fire"
                {class.level::%player%} is greater than or equal to 70
                set {ability::%player%} to "%arg 2%"

#+--------------------+
#| Earth              |
#+--------------------+

    # Earth ability 1
            arg 2 is "":
                {class::%player%} is "mage"
                {class.spec::%player%} is "earth"
                {class.level::%player%} is greater than or equal to 10
                set {ability::%player%} to "%arg 2%"
   
    # Earth ability 2
            arg 2 is "":
                {class::%player%} is "mage"
                {class.spec::%player%} is "earth"
                {class.level::%player%} is greater than or equal to 30
                set {ability::%player%} to "%arg 2%"

    # Earth ability 3
            arg 2 is "":
                {class::%player%} is "mage"
                {class.spec::%player%} is "earth"
                {class.level::%player%} is greater than or equal to 50
                set {ability::%player%} to "%arg 2%"

    # Earth ability 4
            arg 2 is "":
                {class::%player%} is "mage"
                {class.spec::%player%} is "earth"
                {class.level::%player%} is greater than or equal to 70
                set {ability::%player%} to "%arg 2%"
   

#+--------------------+
#| Water              |
#+--------------------+

    # Water ability 1
            arg 2 is "":
                {class::%player%} is "mage"
                {class.spec::%player%} is "water"
                {class.level::%player%} is greater than or equal to 10
                set {ability::%player%} to "%arg 2%"
   
    # Water ability 2
            arg 2 is "":
                {class::%player%} is "mage"
                {class.spec::%player%} is "water"
                {class.level::%player%} is greater than or equal to 30
                set {ability::%player%} to "%arg 2%"

    # Water ability 3
            arg 2 is "":
                {class::%player%} is "mage"
                {class.spec::%player%} is "water"
                {class.level::%player%} is greater than or equal to 50
                set {ability::%player%} to "%arg 2%"

    # Water ability 4
            arg 2 is "":
                {class::%player%} is "mage"
                {class.spec::%player%} is "water"
                {class.level::%player%} is greater than or equal to 70
                set {ability::%player%} to "%arg 2%"

on right click holding stick:
    name of tool of player is "&fWand"
    set {_level.%player%} to {class.level::%player%} * 0.10
    if {class::%player%} is "mage":
        if {class.spec::%player%} is "fire":
            set {_2} to "s;2;i;fire;n;&3Ignite;l;&7[&9%rounded 40 / {_level.%player%}% Mana&7]||&7Sets targets and blocks||&7on fire;c;force %player% ability select Ignite;"
            set {_4} to "s;4;i;fire charge;n;&3Fireball;l;&7[&910 Mana&7]||&7Fire a ghast ball;c;force %player% ability select Fireball;"
            set {_6} to "s;6;i;fire;n;&6Fire;l;Warning, hot.;c;ability select fire;"
            set {_8} to "s;8;i;tnt;n;&3Strike;l;&7[&950 Mana&7]||&7Fires a block of TNT;c;force %player% ability select Strike;"
        else if {class.spec::%player%} is "earth":
            set {_2} to "s;2;i;stone;n;&7Earth;l;Warning, sharp.;c;ability select earth;"
            set {_4} to "s;4;i;stone;n;&7Earth;l;Warning, sharp.;c;ability select earth;"
            set {_6} to "s;6;i;stone;n;&7Earth;l;Warning, sharp.;c;ability select earth;"
            set {_8} to "s;8;i;stone;n;&7Earth;l;Warning, sharp.;c;ability select earth;"
        else if {class.spec::%player%} is "water":
            set {_2} to "s;2;i;water;n;&9Water;l;Warning, cold.;c;ability select water;"
            set {_4} to "s;4;i;water;n;&9Water;l;Warning, cold.;c;ability select water;"
            set {_6} to "s;6;i;water;n;&9Water;l;Warning, cold.;c;ability select water;"
            set {_8} to "s;8;i;water;n;&9Water;l;Warning, cold.;c;ability select water;"
        set {_1} to "s;1;i;portal;n;&fGlobal DMG;l;Warning, It's everywhere||and deadly;c;ability select global;"
        set {_3} to "s;3;i;portal;n;&fGlobal SUP;l;Warning, It's everywhere||pretty helpful though;c;ability select global;"
        set {_5} to "s;5;i;portal;n;&fGlobal DEF;l;Warning, It's everywhere||and knows how to take a punch;c;ability select global;"
        set {_7} to "s;7;i;portal;n;&fGlobal SUP;l;Warning, It's everywhere||pretty helpful though;c;ability select global;"
        set {_9} to "s;9;i;portal;n;&fGlobal DMG;l;Warning, It's everywhere||and deadly;c;ability select global;"
        show "%{_1}%%{_2}%%{_3}%%{_4}%%{_5}%%{_6}%%{_7}%%{_8}%%{_9}%" with 1 row named "&4Spell Selector" to player

command /force <player> <text>:
    permission: veraid.admin
    trigger:
        make arg 1 execute command "%arg 2%"

on experience spawn:
    cancel event

on join:
    while player is online:
        if player's level progress is below 0.99:
            set player's level progress to player's level progress + 0.001
        wait 1 tick

command /xp:
    trigger:
        set player's level to 0

on left click holding stick:
    if {ability::%player%} is "Ignite":
        make player execute command "ability use Ignite"
        cancel event
    if {ability::%player%} is "Fireball":
        make player execute command "ability use Fireball"
        cancel event
    if {ability::%player%} is "Strike":
        make player execute command "ability use Strike"
        cancel event
           
    if {spellselect::%player%} is "COF":
        set {_mana} to {mana::%player%}
        remove 5 from {_mana}
        if {_mana} is greater than -1:
            remove 5 from {mana::%player%}
            message "&9Mana %{mana::%player%}%/%{max.mana::%player%}%"
            loop blocks in radius 4 around targeted block:
                loop-block is air
                set loop-block to fire
        else:
            message "&cNot enough mana."

command /test [<text=fire>] [<integer=1>]:
    trigger:
        if arg 1 is "level":
            set {class.level::%player%} to arg 2
            message "&6Level set to %arg 2%"
            stop
        if {class::%player%} is set:
            delete {class::%player%}
            delete {class.spec::%player%}
            delete {class.level::%player%}
            message "&6Your class has been reset to nothing."
            stop
        message "&6You are now a level %arg 2% %arg 1% Mage for testing purposes."
        set {class::%player%} to "mage"
        set {class.spec::%player%} to "%arg 1%"
        set {class.level::%player%} to arg 2
        give player 1 stick named "&fWand"
 
Son düzenleme:
H

hsndmrts_

Ziyaretçi
oow baktımda şey anladığım kadarıyla levele göre büyücü asaları var :D tam istediğim şey bunu araştırıcam ben ayrıntılı bi şekilde anlatırım ki benim yazmam uzun sürer başka bi arkadaş benden önce davranır kesin
 

ta1ha

Sosyal Medya Yöneticisi
Emektar Üye
En iyi cevaplar
1
Konuya @ta1ha yı çağırıyorum 1 dakkada işi bitiriyor :)
^^
Evet güzel bir mage skripti.
Ateş, Su, Toprak, ve Hava büyücüsü olarak 4 class oluşturmuş.
1 skilli var hepsinin. Level atladıkça özelliği değişiyor.
Skillere animasyonlarını buraya koymamış ama adamın seçtiği skille gore wanda sag yada sol tıkladığında skilli atıyor.
Kod:
make player execute command "ability use Ignite"
Yapıyor daha doğrusu. Güzel bir skript, fena sayılmaz. Sadece sectirme kısmı burası. Asıl olay skillerde oraya bakmak lazım.
Ama animasyon kısmı önemli :)[DOUBLEPOST=1405849063,1405848936][/DOUBLEPOST]
Kod:
arg 2 is "Fireball":
                {class::%player%} is "mage"
                {class.spec::%player%} is "fire"
                {class.level::%player%} is greater than or equal to 30
                {class::%player%} is "mage"
                player's level progress is larger than 0.10
                shoot fireball from player at speed 1
                reduce player's level progress by 0.10

            arg 2 is "Strike":
                {class::%player%} is "mage"
                {class.spec::%player%} is "fire"
                {class.level::%player%} is greater than or equal to 70
                {class::%player%} is "mage"
                player's level progress is larger than 0.50
                shoot tnt from player at speed 5
                reduce player's level progress by 0.50
1-2 skill vermiş ama onlarda çok güzel durmuyor. Direk TNT atırmış yada fireball.
 
Üst