Spigot SkillAPI v3.108

Flexible class and skill system with mass configuration and unique menus and features!

  1. #542 Battlelore22, Aug 25, 2016
    Last edited: Aug 25, 2016
  2. Thanks for repair, but it seems there is a new problem
    - Experience does not occur, and the emergence of new problems
    Example:
    LV: 32 EXP: 0/1024000 rejoin the normal exit
    LV: 32 EXP: 10000/1024000 exit rejoin experience zero 0/1024000

    Thank repair negative experience, but the experience does not seem to save
     
  3. Thank you, the auto levelling worked with settings the cost per level. However, one thing that intrigued me, is that my custom attributes are not being shown, for instance

    Code (Text):
       settings.setBase(HEAL_AMOUNT, 135);
            settings.setScale(HEAL_AMOUNT, 5);
    This is not shown on the skill levelling GUI.
     
  4. When I make a skill how do i reference the values for messages?

    Like I make a custom skill that adds custom values.

    The message in the skill will say: "points for skillname: {attr: skillname.value}"

    but when it executes i get nothing but "points for skillname: {attr: skillname.value}"
     
  5. That hasn't been resolved yet. I am looking into it though.
    If you change experience formulas, it will adjust the experience. Leave the formulas alone and it should persist.
    For the settings to show up in a skill icon, you must add it to the icon's lore yourself. It provides filters for all your settings using the format {attr:yourKey}. For example, if your HEAL_AMOUNT constant is "heal-amount", you would use {attr:heal-amount}. Note that when coding skills, settings are cached in a config. You may need to delete skill configs for code changes to apply.
    Don't use spaces and "skillname" is not part of it. It should be the "icon key" assuming you're using the editor followed by the config key of the setting you want. Damage mechanic for instance has it's amount stored as "value". Setting the icon key to "dmg" would let you use {attr:dmg.value} to show the numbers.
     

  6. Im using your editor and the skill icon key name for the stored value is "CURRENTTP" and the value is just whatever it ends up being after all the other value adds and multiplications...
     
  7. Oh, sorry, I misread your question. For messages, it's just {CURRENTTP} if that's what you sent it to.
     
    • Like Like x 1
  8. I did not modify the formula
    formula
    formula:
    x: '1'
    y: '6'
    z: '18'

    LV: 18 EXP: 100/450 Exit rejoin
    It will become EXP: 0/450
    Like I said before, are not automatically saved experience
    is this normal?
     
    #549 yyb563421689, Aug 26, 2016
    Last edited: Aug 26, 2016
  9. Im remaking the config every time i test.

    So, its impossible to automatically add custom settings just via code ? I would need to modify the config as well ?

    Again, thanks alot for your attention.
     
  10. That's not normal. Let me look into it.
    You do not need to modify the config to add new values. You need to delete/modify the config to apply updated values from the code.
     
  11. via-dealt is only providing fractions of a whole number or 1.0 or 1.5 on crit. This seems to me a percentage represented via decimal integer.

    The actual damage dealt is accurate and correct. It's only the placeholder for the messages that is doing this.

    Can you fix this?
     
  12. when i have channel with damage on skill
    then after i cast the skill the damage is not working...
     
  13. Hi Eniripsa!
    I have a problem with race/class restrictions.

    I have made a skill that give the perm to a race to use a specific class, but when i go with a default player on my server, it can select every race and every class (i already denied the permission skillapi.class).
    But the strange thing, if a player choose a race that has the skill it can do /class skill and click on the race but he don't find the skill (invisible? o.ò)
    If a player choose a race that hasn't the skill and than a class "forbidden", it let you pick the class but if the player do /class skill it say "you haven't skill".


    this is the skill code:

    Code (Text):
    loaded: 'true'
    class guerriero:
      name: 'class guerriero'
      type: 'Passive'
      max-level: 1
      skill-req-lvl: 1
      needs-permission: 'false'
      attributes:
        cost-base: '0'
        cooldown-scale: '0'
        cost-scale: '0'
        level-scale: '0'
        level-base: '0'
        mana-base: '0'
        mana-scale: '0'
        cooldown-base: '0'
      icon: 'PAPER'
      icon-data: 0
      icon-lore:
      - '&d{name} &7({level}/{max})'
      - '&2Type: &6{type}'
      - ''
      - '{req:level}Level: {attr:level}'
      - '{req:cost}Cost: {attr:cost}'
      - ''
      - '&2Mana: {attr:mana}'
      - '&2Cooldown: {attr:cooldown}'
      desc:  []
      components:
        Initialize:
          type: 'trigger'
          data:
            icon-key: ''
          children:
            Permission-b:
              type: 'mechanic'
              data:
                perm: 'skillapi.class.guerriero'
                counts: 'True'
                icon-key: 'class guerriero'
                seconds-scale: '0'
                seconds-base: '999999'
              children:  {}
            Self-c:
              type: 'target'
              data:
                icon-key: ''
              children:  {}
    this is 2 races code (with and without the skill):

    Umano (Human)
    Code (Text):
    Umano:
      name: 'Umano'
      prefix: '&dU'
      group: 'race'
      mana: '&2Mana'
      max-level: 100
      parent: ''
      needs-permission: 'false'
      attributes:
        health-base: '1'
        spirit-scale: '0'
        strength-base: '0'
        dexterity-base: '0'
        dexterity-scale: '0'
        mana-base: '1'
        health-scale: '0'
        vitality-scale: '0'
        spirit-base: '0'
        intelligence-scale: '0'
        strength-scale: '0'
        mana-scale: '0'
        vitality-base: '0'
        intelligence-base: '0'
      mana-regen: 1.0
      tree: 'REQUIREMENT'
      skills:
      - 'class guerriero'
      icon: 'BREAD'
      icon-data: 0
      icon-lore:
      - '&dUmano'
      - ''
      - '&7Discendenti di Haaldir, Dio del destino.'
      - '&7Fazione: &bAurora&r'
      - '&7Classi disponibili:'
      - '&7- &4Guerriero&r'
      - '&7- &9Mago&r'
      - '&7- &2Cacciatore&r'
      - '&7- &6Assassino&r'
      - '&7- &eCrociato&r'
      exp-source: 345
    Elfo (Elf)
    Code (Text):
    Elfo:
      name: 'Elfo'
      prefix: '&aE'
      group: 'race'
      mana: '&2Mana'
      max-level: 100
      parent: ''
      needs-permission: 'false'
      attributes:
        health-base: '1'
        spirit-scale: '0'
        strength-base: '0'
        dexterity-base: '0'
        dexterity-scale: '0'
        mana-base: '1'
        health-scale: '0'
        vitality-scale: '0'
        spirit-base: '0'
        intelligence-scale: '0'
        strength-scale: '0'
        mana-scale: '0'
        vitality-base: '0'
        intelligence-base: '0'
      mana-regen: 1.0
      tree: 'REQUIREMENT'
      skills:  []
      icon: 'WATER_LILY'
      icon-data: 0
      icon-lore:
      - '&aElfo'
      - ''
      - '&7Discendenti di Yuna, Dea della fertilità.'
      - '&7Fazione: &bAurora&r'
      - '&7Classi disponibili:'
      - '&7- &9Mago&r'
      - '&7- &2Cacciatore&r'
      - '&7- &aDruido&r'
      exp-source: 345
    How can i solve this?
     
  14. Make sure you don't have a conflicting plugin such as NCP that is blocking the damage. If it still occurs with only SkillAPI/MCCore active, let me know.
    Passive skills with no cost such as the one you made are not shown by default. If you want them to display, you can enable "show-auto-skills" in the config.yml file. As for the players being able to use the class immediately, make sure the class is requiring permissions. The plugin checks for "skillapi.class" and "skillapi.class.{className}" permissions, so try having both of those removed by default.
     
  15. Hello. In my code I got this: 'settings.set(CFGNames.WEP_DAMAGE.desc, 50, 5);'
    And when I try to get this value, I got: 'settings.getInt(CFGNames.WEP_DAMAGE.desc, level);'
    But the int that is returned is the level. For example, if the skill is level 3, it returns me '3'.
    What should I do to get the Base + Scale?

    (getBase() and getScale() ALWAYS returns me '0'.)
     
  16. Hi, i haven't those perm in the globalgroup.yml (i use group manager) but the problem persist, the player can use everything class whitout permissions and the "need permission" for class is set to true.
    No errors in console.
     
    #557 Barbotto, Aug 31, 2016
    Last edited: Aug 31, 2016
  17. you need to REMOVE those permissions to make your situation work. They are given automatically by default to every player.

    for instance if pex

    group:

    /pex group groupname add -skillapi.class.classname *

    that group wont have access to that classname.

    But since you use groupmanager I THINK if I remember:

    Groupname
    - -skillapi.class.classname
     

  18. Bruno leggi il mio primo messaggio, non scrivermi cose ovvie per favore ^^
    I permessi li ho già negati.
    Mi cito:


    SOLVED SOLVED SOLVED!

    The problem was that:

    Global groups has 2 permissions files inside the plugins.
    globalgroups.yml <- inside the main folder of the plugin
    groups.yml <- inside the folder words of the plugin

    i just removed permissions inside globalgroups.yml but not in groups.yml and it doesn't refreshed with restart.
    Updated groups.yml and all works now :D
     
    #559 Barbotto, Aug 31, 2016
    Last edited: Aug 31, 2016
  19. When working with code, remember values are often remembered in configs. You may need to delete the corresponding config for code values to apply. As for how to grab the number, it's "getAttr(key, level, default)" that you want. "getInt" is actually "getInt(key, default)". There's javadocs and other useful information for coding found on the wiki, or more specifically, here: https://github.com/Eniripsa96/SkillAPI/wiki/Code-API
    Glad it's working!
     
    • Like Like x 1