1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon Skellett - The beast addon! 1.9.8

All your Skript needs in one addon!

  1. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    Yeah I found this thread too, but I'm trying to find out if there is a way to detect if a certain slot is set to something, and if so do stuff. If that made any sense.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    In syntax.yml
    Code (Skript):
    1.  StylishBoards:
    2.   - (stylish|style|simple) [score][ ]board %string% (1¦(is set|[does] exist[s])|2¦(is(n't| not) set|does(n't| not) exist[s]))
    3.   - '[the] (stylish|style|simple) [score][ ][board] of %player%'
    4.   - '%player%''s (stylish|style|simple) [score][ ][board]'
    5.   - '[skellett] (delete|remove) [the] id [based] [score] [(with [id]|named)] %string%
    6.     (in|from|for|of) (stylish|style|simple) [score][ ]board [with] [name[d]] %string%'
    7.   - '[skellett] create [a[n]] [new] id [based] [score] [(with [id]|named)] %string%
    8.     [(with|and)] [(text|string)] %string% [(in|with|for|and)] slot %number% (in|for|of)
    9.     (stylish|style|simple) [score][ ]board [with] [name[d]] %string%'
    10.   - '[skellett] [(update|edit)] [the] slot [of] id [based] [score] [(with [id]|named)]
    11.     %string%'
    12.   - '[skellett] (delete|remove) [the] (stylish|style|simple) [score][ ][board] [with]
    13.     [name[d]] %string%'
    14.   - '[skellett] create [a] [new] (stylish|style|simple) [score][ ]board [with] [name[d]]
    15.     %string%'
    16.   - '[skellett] [(update|edit)] [the] [(stylish|style|simple)] [score][ ]board [of]
    17.     id [based] [score] [(with [id]|named)] %string%'
    18.   - '[skellett] [(update|edit)] [the] (text|name|display|data|string) [of] id [based]
    19.     [score] [(with [id]|named)] %string%'
    20.   - '[skellett] [(update|edit)] [the] [display] title of (stylish|style|simple) [score][
    21.     ][board] [named] %string%'
    22.   - '[skellett] [(update|edit)] [the] (stylish|style|simple) [score][ ][board] %string%[''s]
    23.     [display] title'
     
    • Useful Useful x 1
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    ding ding, perfect. thanks <o/
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    Hey @LimeGlass , could you change the TabListAPI?
    The resource isn't updated since the 1.10!
    Thanks :emoji_grinning:
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    I am trying to see if Skript can recognise if a player is on the trust list for Grief Prevention claims but it's not working.

    Any idea what the correct script line is or if this isn't possible, can it be added to Skellet please?
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    you told someone around 2 weeks ago that since the on npc click was broken, we needed to workaround using 'if clicked entity is a npc:' but skript tells you that it 'cant compare a entity with a npc'
    --- Double Post Merged, Sep 5, 2017, Original Post Date: Sep 5, 2017 ---
    nvm is a citizen, i need to read

    and nvm again, is a citizens also doesn't work

    working player around
     
    #407 ShaneBee, Sep 5, 2017
    Last edited by a moderator: Sep 5, 2017
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    Hello again @LimeGlass, I decided to take back my projects but still stucked at the multiple rows issue,
    I just tried that function but it gives me this error:

    Code (Skript):
    1. function mysql(queue: text, s: text) :: object:
    2.   set {_resultset} to mysql result of query "%{_queue}%"
    3.   return mysql object "%{_s}%" in {_resultset}
    4.  
    5. command /prb:
    6.   permission: Martin.Martin
    7.   executable by: console
    8.   trigger:        
    9.     set {_this} to mysql("SELECT * FROM hsglobal.sugerencias", "Jugador")
    10.     send "%{_this}%" to the console
    Code (Skript):
    1. >sk reload pruebas
    2. [13:14:24 ERROR]: Cannot use return effect outside of a function! (pruebas.sk, line 4: return mysql object "%{_s}%" in {_resultset}')
    3. [13:14:24 INFO]: [Skript] Reloading pruebas.sk...
    4. [13:14:24 INFO]: [Skript] Encountered 1 error while reloading pruebas.sk!
    5.  
     
    #409 ShaneBee, Sep 11, 2017
    Last edited by a moderator: Sep 11, 2017
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    LimeGlass updated Skellett - The addon with a beast name with a new update entry:

    MySQL properties

    Read the rest of this update entry...
     
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    @LimeGlass HELP!

    Please check my last message about the MySQL issue
     
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    That's not a Skellett issue. Try setting it to a local variable then returning that variable.
     
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    Could you give me an example please?
    I tried a lot of things, I do not know what I am doing wrong
     
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    Something like this:
    Code (Skript):
    1. set {_return} to mysql object "%{_s}%" in {_resultset}
    2. return {_return}
     
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    This error does not let me live in peace..

    Code (Skript):
    1. [23:50:54 ERROR]: {_return} can only be set to one object, not more (pruebas.sk, line 3: set {_return} to mysql object "%{_s}%" in {_resultset}')
    2. [23:50:54 ERROR]: Cannot use return effect outside of a function! (pruebas.sk, line 4: return {_return}')
    3.  
     
  16. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    Didn't see that it's an object, which needs to be a list variable. It should be {_return::*} but it probably will still throw "cannot use return blah blah blah."
     
  17. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    Yes, the same thing, I just have a doubt, it is possible for Skript to handle multiple rows/collumns by it self or using anyother addon?
    If not then no problem I could make a simple java plugin for my projects, these are very simple, I just want to query some things..
    if yes then how to?
    --- Double Post Merged, Sep 15, 2017, Original Post Date: Sep 15, 2017 ---
    I believe this is a bug of Skellet

    Test 1:
    This work as intended, (Since this can not handle multiple complete rows, just partial based on collumn, I had to perform 2 queries)

    Code (Skript):
    1.  
    2. command /prb:
    3.   permission: Martin.Martin
    4.   executable by: console
    5.   trigger:
    6.     set {_resultSet} to mysql result of query "SELECT * FROM hsglobal.registroDonacionesMP"
    7.     set {_data1::*} to mysql string "Jugador" in {_resultSet}
    8.     set {_resultSet2} to mysql result of query "SELECT * FROM hsglobal.registroDonacionesMP"
    9.     set {_data2::*} to mysql string "NumeroCobro" in {_resultSet2}
    10.  
    11.     send "%{_resultSet}%"
    12.     send "%{_resultSet2}%"
    13.     send "%{_data1::1}% %{_data2::1}%"
    14.     send "%{_data1::2}% %{_data2::2}%"  

    Result 1:
    Code (Skript):
    1. [13:38:52 INFO]: com.mysql.jdbc.JDBC42ResultSet@259ceb1c
    2. [13:38:52 INFO]: com.mysql.jdbc.JDBC42ResultSet@5d8ee688
    3. [13:38:52 INFO]: CraftMan 2978519698
    4. [13:38:52 INFO]: barecito 2979213743
    5. [13:38:52 INFO]: [Hunter] Y ese comando? Seguro que lo escribiste bien?
    About the last log line:
    [13:38:52 INFO]: [Hunter] Y ese comando? Seguro que lo escribiste bien?
    Which is same to "unknown command message"
    I dont know why it is showing up that message

    Test 2:
    This does not work as intended

    Code (Skript):
    1. command /prb:
    2.   permission: Martin.Martin
    3.   executable by: console
    4.   trigger:  
    5.     set {_resultSet} and {_resultSet2} to mysql result of query "SELECT * FROM hsglobal.registroDonacionesMP"
    6.     set {_data1::*} to mysql string "Jugador" in {_resultSet}              #parsing 1
    7.     set {_data2::*} to mysql string "NumeroCobro" in {_resultSet2}         #parsing 2
    8.  
    9.     send "%{_resultSet}%"
    10.     send "%{_resultSet2}%"
    11.     send "%{_data1::1}% %{_data2::1}%"
    12.     send "%{_data1::2}% %{_data2::2}%"  

    Result 2:

    Code (Skript):
    1. [13:40:46 INFO]: com.mysql.jdbc.JDBC42ResultSet@6e57332d
    2. [13:40:46 INFO]: com.mysql.jdbc.JDBC42ResultSet@6e57332d
    3. [13:40:46 INFO]: CraftMan <none>
    4. [13:40:46 INFO]: barecito <none>
    5. [13:40:46 INFO]: [Hunter] Y ese comando? Seguro que lo escribiste bien?
    Again the same message:
    [13:40:46 INFO]: [Hunter] Y ese comando? Seguro que lo escribiste bien?

    Why after the "parsing 1" Skellett can not parse the {_resultSet2}?
    If I invert it from

    Code (Skript):
    1.   set {_data1::*} to mysql string "Jugador" in {_resultSet}              #parsing 1
    2.   set {_data2::*} to mysql string "NumeroCobro" in {_resultSet2}         #parsing 2
    to

    Code (Skript):
    1.   set {_data2::*} to mysql string "NumeroCobro" in {_resultSet2}         #parsing 2  
    2.   set {_data1::*} to mysql string "Jugador" in {_resultSet}              #parsing 1
    It will parse correctly the "parsing 2" but not "parsing 1"

    Bug?
    Hope it helps to identify the issue
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    We all know about this, it's not a bug. Just make multiple queries... Or a function to handle it all with the async thread in it
     
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    add NBT Tags plz :>
     
  20. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    can you add a way to get/set someone's luckperms/vault rank?
     
Loading...