Skript Addon for MythicMobs mmSkriptAddon

Discussion in 'Resource Exchange' started by BerndiVader, Feb 14, 2017.

  1. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    219
    A Skript Addon for MythicMobs. For 4.0.0 Build 1930 or greater. 2.5.11 is not supported yet.

    For syntax, examples & download of the lastest build visit mmSkriptAddon at GitHub:

    https://github.com/BerndiVader/mmSkriptAddon
     
    #1
    fly and Krowerom like this.
  2. Rickyling

    Rickyling Community Manager
    Community Manager Supporter Moderator Quality Assurance

    Joined:
    Jul 24, 2015
    Messages:
    685
    Likes Received:
    214
    This is incredibly comprehensive. Amazing work as always Berndi!
     
    #2
  3. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    219
    Update: on mythicmobs skillevent

    https://github.com/BerndiVader/mmSkriptAddon

    MythicMob mob.yml:
    Code:
    skriptpig:
      Type: pig
      Display: 'Skriptskill Pig'
      Skills:
      - skriptskill{skill=msg;args="Hallo wie gehts, <target.name>?"} @trigger ~onInteract 1
    Skript script:
    Code:
    on mythicmobs skriptskillevent:
        if event-skillname is "msg":
                event-target is a player
                send event-skillargs to event-target
     
    #3
  4. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    219
    Added CustomSkriptConditions. Now you can create your own Conditions in Skript

    For more details and download go to https://github.com/BerndiVader/mmSkriptAddon

    Code:
    MythicMobs skill.yml:
    skskill:
      Conditions:
      - skriptcondition{c=weather;args=clear}
      Coolddown: 1
      Skills:
      - skriptskill{s=msg;args="Nice weather today! Isnt it, <target.name>?"}
    
    Skript part:
    on mythicmobs skriptconditionevent:
        if condition-name is "weather":
            if condition-args is "clear":
                if weather in world of condition-entity is clear:
                    set condition meet to true
                else:
                    set condition meet to false
     
    #4
  5. Rickyling

    Rickyling Community Manager
    Community Manager Supporter Moderator Quality Assurance

    Joined:
    Jul 24, 2015
    Messages:
    685
    Likes Received:
    214
    This is amazing.
    You wouldn't be able to make a Denizen spin off would you? I'd pay to see that happen.
     
    #5
  6. Krowerom

    Krowerom Active Member

    Joined:
    Apr 22, 2016
    Messages:
    550
    Likes Received:
    182
    I'm gonna have to wait for the 2.5.11 compatible version (you said 'Yet', so I am hoping that you're gonna work on a 2.5.11 version!)
    None of the 4.0.0 have worked with my server/mobs - I've found that the mobs need to be more specific than I was being with some settings/skills.
    Also, I ran out of cash, so can't subscribe to get the latest dev builds any more, so 1901 was my last 4.0.0 build :(
     
    #6
  7. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    219
    Updated to MythicMobs 4.0 Release Version.
     
    #7
  8. Krowerom

    Krowerom Active Member

    Joined:
    Apr 22, 2016
    Messages:
    550
    Likes Received:
    182
    :) nice one, thanks B
     
    #8
  9. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    219
    Added new effect

    Code:
    make activemob %activemob% cast skill %string% with trigger %entity% at target %entity%
    
    make activemob %activemob% cast skill %string% with trigger %entity% at location %location%
     
    #9
  10. Keeper

    Keeper New Member
    New

    Joined:
    Jan 29, 2016
    Messages:
    7
    Likes Received:
    0
    I have one error in mmsk add-on..

    [14:27:11 INFO]: [Skript] Reloading the config and all scripts...
    [14:27:19 INFO]: Loaded a total of 777473 english aliases
    [14:27:19 WARN]: There are no aliases defined for the following ids: 213, 214, 215, 216, 217, 441
    [14:27:19 ERROR]: event-types.activemob is not an item stack (start.sk, line 2: if displayname of event-activemob is "Super Zombie":')
    [14:27:19 INFO]: Loaded 2 scripts with a total of 8 triggers and 0 commands in 0.21 seconds
    [14:27:19 INFO]: [Skript] Encountered 1 error while reloading the config and all scripts!
    >

    skript:

    on mythicmob deathevent:
    if displayname of event-activemob is "Super Zombie":
    loop all items of mobdrop event-mobdrop:
    if "%loop-mobitem%" contains "<do_not_drop>":
    remove mobitem loop-mobitem from mobdrop event-mobdrop

    how to solve this error?
     
    #10
    Last edited: Feb 20, 2017
  11. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    219
    Hi! The syntax for the displayname of the activemob is "displayname of activemob %activemob%"

    In your case:

    Code:
    if displayname of activemob event-activemob is "Super Zombie":
     
    #11
  12. Keeper

    Keeper New Member
    New

    Joined:
    Jan 29, 2016
    Messages:
    7
    Likes Received:
    0
    omg.. thanks!

    And, I want to send message to attacker when kill a mob whose name is "test"

    so I wrote "message "hi" to attacker" in event( on mythicmob deathevent: ), but it didn't activate.

    That's because "[15:58:58 ERROR]: Cannot use 'attacker' outside of a damage/death/destroy event (start.sk, line 3: message "hi" to attacker')"

    then, I changed sentence "message "hi" to attacker" to "message "hi" to player"

    but it also didn't activate.

    That's because "[16:04:19 ERROR]: There's no player in an on mythicmobdeathevent event (start.sk, line 3: message "hi" to player')"

    What should I do solve this problem?


    skript:



    on mythicmob deathevent:
    if displayname of activemob event-activemob is "test":
    message "hi" to attacker
     
    #12
    Last edited: Feb 20, 2017
  13. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    219
    Np, about the mythicmob deathevent. i havent thought about attacker and stuff yet. in the meanwhile you can use the usually death event and check if its a mythicmob:

    [
    Code:
    on death of living entity:
        attacker is player
        if victim instanceof activemob:
            set {_am} to activemob of victim
            if displayname of activemob {_am} is "test":
                send "hi" to attacker
    
     
    #13
    Keeper likes this.
  14. Keeper

    Keeper New Member
    New

    Joined:
    Jan 29, 2016
    Messages:
    7
    Likes Received:
    0
    Thank you guy :D

    But I do know another code now Xd

    It is
    on damage:
    if victim's name contains "test":
    message "hi" to attacker

    anyway, have a nice day!
     
    #14
  15. fly

    fly Active Member

    Joined:
    Feb 10, 2016
    Messages:
    440
    Likes Received:
    98
    This is a lifesaver. Works like a charm.
    Marvelous.
    Thank God I moved on to 1.12
     
    #15
  16. fly

    fly Active Member

    Joined:
    Feb 10, 2016
    Messages:
    440
    Likes Received:
    98
    Hey I've been using your addon for about 20 hours and been quite successful in creating stuff that was quite impossible before with MM.
    But some stuff seem to be broken and I really cant get my head around what the problem is currently.
    I've been trying to spawn a mob using your addon but I just keep on getting SEVERE skript errors on every attempt.

    Code:
    command /spawnMM:
        trigger:
            set {_loc} to player's location
            set {_world} to player's world
            set {_mt} to "TM_effect"
            wait 2 seconds
            set {_imsi} to spawn mythicmob {_mt} at location {_loc} in world {_world}
            broadcast "spawned %{_imsi}%"
    
    the error is definitely in the spawn line,
    Here's the Skript severe error:
    Code:
    5:50:15 [SEVERE] #!#!
    5:50:15 [SEVERE] #!#! [Skript] Severe Error:
    5:50:15 [SEVERE] #!#!
    5:50:15 [SEVERE] #!#! Something went horribly wrong with Skript.
    5:50:15 [SEVERE] #!#! This issue is NOT your fault! You can't probably fix it yourself, either.
    5:50:15 [SEVERE] #!#! It looks like you are using some plugin(s) that alter how Skript works (addons).
    5:50:15 [SEVERE] #!#! Here is full list of them:
    5:50:15 [SEVERE] #!#! BetonQuest (https://www.spigotmc.org/resources/betonquest.2117/) skRayFall (http://sk.rayfall.net/) SkQuery Skellett (https://forums.skunity.com/resources/skellett-the-addon-with-a-beast-name.24/) mmSkriptAddon
    5:50:15 [SEVERE] #!#! We could not identify which of those are specially related, so this might also be Skript issue.
    5:50:15 [SEVERE] #!#! You should try disabling those plugins one by one, trying to find which one causes it.
    5:50:15 [SEVERE] #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue.
    5:50:15 [SEVERE] #!#! In that case, you will be given instruction on how should you report it.
    5:50:15 [SEVERE] #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin.
    5:50:15 [SEVERE] #!#! Only if the author tells you to do so, report it as Skript issue (url below)
    5:50:15 [SEVERE] #!#! Issue tracker: https://github.com/bensku/Skript/issues (only if you know what you're doing!)
    5:50:15 [SEVERE] #!#!
    5:50:15 [SEVERE] #!#! Stack trace:
    5:50:15 [SEVERE] #!#!
    5:50:15 [SEVERE] #!#! Version Information:
    5:50:15 [SEVERE] #!#!   Skript: 2.2-dev30d (latest)
    5:50:15 [SEVERE] #!#!   Bukkit: 1.12-R0.1-SNAPSHOT
    5:50:15 [SEVERE] #!#!   Minecraft: 1.12
    5:50:15 [SEVERE] #!#!   Java: 1.8.0_144 (Java HotSpot(TM) 64-Bit Server VM 25.144-b01)
    5:50:15 [SEVERE] #!#!   OS: Windows 10 amd64 10.0
    5:50:15 [SEVERE] #!#!
    5:50:15 [SEVERE] #!#! Running CraftBukkit: false
    5:50:15 [SEVERE] #!#! Running Spigot (or compatible): true
    5:50:15 [SEVERE] #!#! Running Paper (or compatible): true
    5:50:15 [SEVERE] #!#!
    5:50:15 [SEVERE] #!#! Current node: null
    5:50:15 [SEVERE] #!#! Thread: Server thread
    5:50:15 [SEVERE] #!#!
    5:50:15 [SEVERE] #!#! Language: english
    5:50:15 [SEVERE] #!#! Link parse mode: STRICT
    5:50:15 [SEVERE] #!#!
    5:50:15 [SEVERE] #!#! End of Error.
    5:50:15 [SEVERE] #!#!
    
    Any leads?
     
    #16
  17. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    219
    Yes. You have to use the world as string not as world object. Do "%{_world}%". Will change that though, cause its kind of stupid to not use it as world object. :)
     
    #17
  18. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    219
    #18
  19. fly

    fly Active Member

    Joined:
    Feb 10, 2016
    Messages:
    440
    Likes Received:
    98
    Wow, thanks a lot. Better than most plugin devs :)
     
    #19
  20. Keeper

    Keeper New Member
    New

    Joined:
    Jan 29, 2016
    Messages:
    7
    Likes Received:
    0
    I want mmmobs to do skill if I right-click them.

    but I can't know how to do.

    Could u tell me how to do it?

    I want mmmobs to drop mmitems and remove themselves if I right-click them in being my inventory full of items.
     
    #20

Share This Page