Skellett - The beast addon!

Addon Skellett - The beast addon! 2.0.10

  • 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!

Hi,
@LimeGlass : I have some troubles to configure SkelettProxy on Spigot side. Everytime i change the port in the file "SkellettProxy.yml", Skellett don't want to use this port and change it to 7332. Is this normal? In Bungee side, i have no problem to change the port.
 
Every few days I see that this addon gets an update and some really cool new features. I would love to use it but I can't because whenever I load it onto my server every script breaks and won't reload. This may have been brought up before but I can't find any thread related to this issue. I posted a pastebin below of my local server startup.

http://pastebin.com/dYCBffhA

Thank you, any help would be appreciated!
Uninstall Umbaska problem solved. You have like 3 other plugins that don't work aswell. You have a ton of plugins and a ton of worlds man. Your server is huge and under alot of work.

You're using craftbukkit? I suggest using spigot 1.11 this should fix most of your errors.
[doublepost=1488668164,1488667816][/doublepost]
Hi,
@LimeGlass : I have some troubles to configure SkelettProxy on Spigot side. Everytime i change the port in the file "SkellettProxy.yml", Skellett don't want to use this port and change it to 7332. Is this normal? In Bungee side, i have no problem to change the port.
The port has to be a 4 digit number or else it will throw errors, so Skellett saves it and re writes a save port.


@LimeGlass :

Getting an NPC's location is causing a null pointer exception for me:


code_language.skript:
create a citizen named "BLUE" at location of player as a villager
set {_npc} to last created citizen id
set {_loc} to the location of npc "%{_npc}%"
broadcast "%{_loc}%"

Error:
https://www.hastebin.com/vuxofuhica.vbs

Maybe you can give a simple example on how to successfully spawn an npc and getting its location.
I find the documentation on skunity for skellett is not accurate.

Is it possible that skellett's citizen effects & expression are not working correctly together with skRayfall's citizen stuff?
I need to mix them, because some effects are currently only implemented in skRayFall.

Basically what I am trying to achieve is: spawning 2 NPCs, make them attack each other and store some stuff in variables, like their locations, their IDs etc. for later use.

Another example that will cause Null Pointer Exception (mixing skRayFall + Skellett Citizen Features):

code_language.skript:
        create a citizen named "Steve" at location of player
        set {_id} to last created citizen id
        set {_test} to "%{_id}%" parsed as number
        set {_loc} to location of npc {_test}
        make citizen {_test} say "HI! %{_loc}%" to player
https://www.hastebin.com/boxicudage.vbs



And this throws errors:
set {_disguise} to new disguise with type "PIG ZOMBIE"
this works (but not in functions):
set {_disguise} to new disguise with type PIG ZOMBIE
a few things with this code

1.) The create npc command returns an Npc directly from the expression
code_language.skript:
set {_npc} a new citizen named "BLUE" at location of player as "VILLAGER"
2.) The rest of the stuff won't work because of this.
3.) the type has to be in a string. This will fix your disguise error aswell. The disguise type has to be in a string aswell.
 
That's just a local server that has a ton of testing stuff on it. My live server has half of that. Does 1.11 fix the incompatibility between Umbaska and Skellet?
 
That's just a local server that has a ton of testing stuff on it. My live server has half of that. Does 1.11 fix the incompatibility between Umbaska and Skellet?
Not really. Umbaska only works for versions 1.9 and lower. Unless you're using the newer Umbaska 3. That should fix all the issues.
 
1.) The create npc command returns an Npc directly from the expression
code_language.skript:
set {_npc} a new citizen named "BLUE" at location of player as "VILLAGER"
2.) The rest of the stuff won't work because of this.

Ok, so I can not mix skRayfall's NPC expressions with your stuff.
Would you be able to add some basic citizens features like "make npc attack ..." or "delete npc" ?
 
Ok, so I can not mix skRayfall's NPC expressions with your stuff.
Would you be able to add some basic citizens features like "make npc attack ..." or "delete npc" ?
You can delete and unregister npc's with Skellett. Also the Citizens API is massive. I plan on releasing atleast 1 syntax for it every update. That way it will get done eventually.
 
You can delete and unregister npc's with Skellett. Also the Citizens API is massive. I plan on releasing atleast 1 syntax for it every update. That way it will get done eventually.

But what type is the variable of (in the following example)?

set {npc} a new citizen named "BLUE" at location of player as "VILLAGER"

Can I save an NPC into a global variable and read/use it later?

The following things I'd need:
  • Make NPC attack something (even another NPC)
  • Make NPC vulnerable
  • Toggle the look close option of NPC
  • Set Health of NPC
  • Set move speed of NPC
 
Make NPC attack something (even another NPC)
Working on it.
Make NPC vulnerable

code_language.skript:
[the] protect[(ed|ion)] [state] (of|from) (npc|citizen) %npc%
(npc|citizen) %npc%'s protect[(ed|ion)] [state]
code_language.skript:
set the protected state of npc {_npc} to true
You can also use the npc damage event and cancel event.
Toggle the look close option of NPC
code_language.skript:
[(make|change)] (npc|citizen) %npc%['s] look[ing] (at|in|towards) [direction [of]] [location] %location%
I'm also working on the look trait. I need to add support for all traits. Which i'm working on.
Set Health of NPC
code_language.skript:
set {_entity} to entity from npc {_npc}
set health of {_entity} to 50
Set move speed of NPC

code_language.skript:
set {_entity} to entity from npc {_npc}
set walking speed of {_entity} to 1 #SkQuery
 
  • Like
Reactions: pepper82
Working on it.


code_language.skript:
[the] protect[(ed|ion)] [state] (of|from) (npc|citizen) %npc%
(npc|citizen) %npc%'s protect[(ed|ion)] [state]
code_language.skript:
set the protected state of npc {_npc} to true
You can also use the npc damage event and cancel event.

code_language.skript:
[(make|change)] (npc|citizen) %npc%['s] look[ing] (at|in|towards) [direction [of]] [location] %location%
I'm also working on the look trait. I need to add support for all traits. Which i'm working on.

code_language.skript:
set {_entity} to entity from npc {_npc}
set health of {_entity} to 50


code_language.skript:
set {_entity} to entity from npc {_npc}
set walking speed of {_entity} to 1 #SkQuery

Sounds good, can't wait for these features.
And can I save an NPC into a global variable so I can use it later in other skripts as well? What type is the variable of then?
 
I made a small game server, using 'stylish scoreboard' to Create a scoreboard, the name is 'xbxy'
Each player entering the server will show the scoreboard
I found in the test
Some players show the contents of the client will be different
Is there any way
Get
Player client scoreboard content?
 
You should be able to save it fine. It saves as an Npc from Citizens
Ok, will try soon.

Another question regarding bossbars:
How would I permanently delete a bossbar?
And how can I add a player to the bossbar at later time?

Example:
code_language.skript:
command /boss:
   trigger:
       set {bar} to new bossbar
       set the visibility of bossbar {bar} to true

command /boss2:
   trigger:
       add player to bossbar {bar}

This does not work, because it says I can not store bossbar in a variable like this.
 
Last edited by a moderator:
I made a small game server, using 'stylish scoreboard' to Create a scoreboard, the name is 'xbxy'
Each player entering the server will show the scoreboard
I found in the test
Some players show the contents of the client will be different
Is there any way
Get
Player client scoreboard content?
Create a scoreboard with the player's name in the ID ("Test-%player%). Then when you call the scoreboard by the ID use the player's name again ("Test-%player%)
[doublepost=1488842562,1488842287][/doublepost]
Ok, will try soon.

Another question regarding bossbars:
How would I permanently delete a bossbar?
And how can I add a player to the bossbar at later time?

Example:
code_language.skript:
command /boss:
   trigger:
       set {bar} to new bossbar
       set the visibility of bossbar {bar} to true

command /boss2:
   trigger:
       add player to bossbar {bar}

This does not work, because it says I can not store bossbar in a variable like this.
Bossbars get cleared on server restart, Spigot handles the bossbars. All you need to do is hide the bossbars. There is no way to delete them since it's a strange way of how Spigot manages them. They basically disapear once you lost the variable containing them.

You have to use BossBars in local variables. You can use a while loop to execute this.

code_language.skript:
on join:
    set {_bar} to a new bossbar
    add player to bossbar {_bar}
    while player is online:
        if {player::%player%::bossbar::title} is set:
            set title of bossbar {_bar} to {player::%player%::bossbar::title}
        wait a second
Now all you have todo is set the variable {player::%player%::bossbar::title} to some string and your bossbar will handle the rest.
[doublepost=1488842641][/doublepost]
@LimeGlass When you fix mysql?
What do you mean?
 
@LimeGlass
Can you add support for HolographicDisplays?
I think is better and more stable than Holograms

Chers
[doublepost=1488935734,1488918581][/doublepost]
@LimeGlass

I got it working but with different sections.
I do not know if I can use this:
At least is not working for me.
code_language.skript:
    #Consultamos la DATA del jugador
    set {_result} to mysql result of query "SELECT * From stats.relacionJugadores WHERE Nombre = '%player%'"
    set {DATA-%player%::*} to mysql string "Victorias" in {_result}
    set {DATA-%player%::*} to mysql string "Derrotas" in {_result}
    set {DATA-%player%::*} to mysql string "Dinero" in {_result}
    set {DATA-%player%::*} to mysql string "Chips" in {_result}
    set {DATA-%player%::*} to mysql string "MejoresCartas" in {_result}
    set {DATA-%player%::*} to mysql string "ApMaxGanDinero" in {_result}
    set {DATA-%player%::*} to mysql string "ApMaxGanTokens" in {_result}
    set {DATA-%player%::*} to mysql string "ApMaxGanChips" in {_result}
     
    set {tiempoTurno-%player%} to 0
    set {mejoresCartas-%player%} to "ninguna"
    set {ApMaxGanDinero-%player%} to 0
    set {ApMaxGanTokens-%player%} to 0
    set {ApMaxGanChips-%player%} to 0
 
    set {victorias-%player%} to "%{DATA-%player%::1}%"
    set {derrotas-%player%} to "%{DATA-%player%::2}%"
    set {dinero-%player%} to "%{DATA-%player%::3}%"
    set {chips-%player%} to "%{DATA-%player%::4}%"
    set {mejoresCartas-%player%} to "%{DATA-%player%::5}%"
    set {ApMaxGanDinero-%player%} to "%{DATA-%player%::6}%"
    set {ApMaxGanTokens-%player%} to "%{DATA-%player%::7}%"
    set {ApMaxGanChips-%player%} to "%{DATA-%player%::8}%"
 
    message "%{victorias-%player%}%" to the console
    message "%{derrotas-%player%}%" to the console
    message "%{dinero-%player%}%" to the console
    message "%{chips-%player%}%" to the console
    message "%{mejoresCartas-%player%}%" to the console
    message "%{ApMaxGanDinero-%player%}%" to the console
    message "%{ApMaxGanTokens-%player%}%" to the console
    message "%{ApMaxGanChips-%player%}%" to the console
    message "=========" to the console
    message "%{DATA-%player%::1}%" to the console
    message "%{DATA-%player%::2}%" to the console
    message "%{DATA-%player%::3}%" to the console
    message "%{DATA-%player%::4}%" to the console
    message "%{DATA-%player%::5}%" to the console
    message "%{DATA-%player%::6}%" to the console
    message "%{DATA-%player%::7}%" to the console
    message "%{DATA-%player%::8}%" to the console

ee6cd79ee3f743e2b7113828f188d71a.png


If I use:

code_language.skript:
    #Consultamos la DATA del jugador
    set {_result} to mysql result of query "SELECT * From stats.relacionJugadores WHERE Nombre = '%player%'"
    set {avictorias-%player%::*} to mysql string "Victorias" in {_result}
    set {aderrotas-%player%::*} to mysql string "Derrotas" in {_result}
    set {adinero-%player%::*} to mysql string "Dinero" in {_result}
    set {achips-%player%::*} to mysql string "Chips" in {_result}
    set {amejoresCartas-%player%::*} to mysql string "MejoresCartas" in {_result}
    set {aApMaxGanDinero-%player%::*} to mysql string "ApMaxGanDinero" in {_result}
    set {aApMaxGanTokens-%player%::*} to mysql string "ApMaxGanTokens" in {_result}
    set {aApMaxGanChips-%player%::*} to mysql string "ApMaxGanChips" in {_result}
 
 
    set {victorias-%player%} to "%{avictorias-%player%::1}%"
    set {derrotas-%player%} to "%{aderrotas-%player%::1}%"
    set {dinero-%player%} to "%{adinero-%player%::1}%"
    set {chips-%player%} to "%{achips-%player%::1}%"
    set {mejoresCartas-%player%} to "%{amejoresCartas-%player%::1}%"
    set {ApMaxGanDinero-%player%} to "%{aApMaxGanDinero-%player%::1}%"
    set {ApMaxGanTokens-%player%} to "%{aApMaxGanTokens-%player%::1}%"
    set {ApMaxGanChips-%player%} to "%{aApMaxGanChips-%player%::1}%"
 
    message "%{victorias-%player%}%" to the console
    message "%{derrotas-%player%}%" to the console
    message "%{dinero-%player%}%" to the console
    message "%{chips-%player%}%" to the console
    message "%{mejoresCartas-%player%}%" to the console
    message "%{ApMaxGanDinero-%player%}%" to the console
    message "%{ApMaxGanTokens-%player%}%" to the console
    message "%{ApMaxGanChips-%player%}%" to the console
    message "=========" to the console
    message "%{avictorias-%player%::1}%" to the console
    message "%{aderrotas-%player%::1}%" to the console
    message "%{adinero-%player%::1}%" to the console
    message "%{achips-%player%::1}%" to the console
    message "%{amejoresCartas-%player%::1}%" to the console
    message "%{aApMaxGanDinero-%player%::1}%" to the console
    message "%{aApMaxGanTokens-%player%::1}%" to the console
    message "%{aApMaxGanChips-%player%::1}%" to the console

9c5bc91c51024944b88d033a89fafe00.png


This works nice, at least we can use now one query instead eight, but
do I must to use eight sections? Or can I use one section as the first example, I do not know if this is a bug or a worng coding from my side.

Thanks for fix this.

A more simple version, I can not go more, would be nice if I can use only one section and not eight variables.

code_language.skript:
    #Consultamos la DATA del jugador  
    set {_result} to mysql result of query "SELECT * From stats.relacionJugadores WHERE Nombre = '%player%'"
    set {DataTemp-%player%::*} to mysql string "Victorias" in {_result}
    set {victorias-%player%} to "%{DataTemp-%player%::1}%"  
    set {DataTemp-%player%::*} to mysql string "Derrotas" in {_result}
    set {derrotas-%player%} to "%{DataTemp-%player%::1}%"
    set {DataTemp-%player%::*} to mysql string "Dinero" in {_result}
    set {dinero-%player%} to "%{DataTemp-%player%::1}%"
    set {DataTemp-%player%::*} to mysql string "Chips" in {_result}
    set {chips-%player%} to "%{DataTemp-%player%::1}%"
    set {DataTemp-%player%::*} to mysql string "MejoresCartas" in {_result}
    set {mejoresCartas-%player%} to "%{DataTemp-%player%::1}%"
    set {DataTemp-%player%::*} to mysql string "ApMaxGanDinero" in {_result}
    set {ApMaxGanDinero-%player%} to "%{DataTemp-%player%::1}%"
    set {DataTemp-%player%::*} to mysql string "ApMaxGanTokens" in {_result}
    set {ApMaxGanTokens-%player%} to "%{DataTemp-%player%::1}%"
    set {DataTemp-%player%::*} to mysql string "ApMaxGanChips" in {_result}
    set {ApMaxGanChips-%player%} to "%{DataTemp-%player%::1}%"
  
   
    message "=========" to the console
    message "%{victorias-%player%}%" to the console
    message "%{derrotas-%player%}%" to the console
    message "%{dinero-%player%}%" to the console
    message "%{chips-%player%}%" to the console
    message "%{mejoresCartas-%player%}%" to the console
    message "%{ApMaxGanDinero-%player%}%" to the console
    message "%{ApMaxGanTokens-%player%}%" to the console
    message "%{ApMaxGanChips-%player%}%" to the console
    message "=========" to the console



@LimeGlass I updated to the latest version, and none of the fixed code works anymore, it just send a 0 value.
I tried downgrading this and neither, this code was working fine and now, I do not know how to fix this.
[doublepost=1488939924][/doublepost]
Did you fix that?
 
@LimeGlass
Can you add support for HolographicDisplays?
I think is better and more stable than Holograms

Chers
[doublepost=1488935734,1488918581][/doublepost]



@LimeGlass I updated to the latest version, and none of the fixed code works anymore, it just send a 0 value.
I tried downgrading this and neither, this code was working fine and now, I do not know how to fix this.
[doublepost=1488939924][/doublepost]
Did you fix that?
I don't understand what the issue is. Make sure your login details are set correct. And it returns as a list.
[doublepost=1488951526][/doublepost]
@LimeGlass
Can you add support for HolographicDisplays?
I think is better and more stable than Holograms

Chers
[doublepost=1488935734,1488918581][/doublepost]



@LimeGlass I updated to the latest version, and none of the fixed code works anymore, it just send a 0 value.
I tried downgrading this and neither, this code was working fine and now, I do not know how to fix this.
[doublepost=1488939924][/doublepost]
Did you fix that?
Try using get object
 
We are using HolographicDisplays, too. Support for it would be great.
[doublepost=1489001963,1488966970][/doublepost]
I don't understand what the issue is. Make sure your login details are set correct. And it returns as a list.
[doublepost=1488951526][/doublepost]
Try using get object

I found a bug. Today I updated to latest skellett version and I get NPEs like this:

https://www.hastebin.com/cexohacare.vbs

The line of code in the script causing it is:
set {_box}'s name to "&6MysteryBox ""Die Schattengilde"""
I had to change it to
set {_box}'s display name to "&6MysteryBox ""Die Schattengilde"""
to make it work again, but it's not the best solution.

Any chance you can fix this?