Jump to content

FlapKakker

Member
  • Posts

    40
  • Joined

  • Last visited

Everything posted by FlapKakker

  1. Hi! I have been skripting my own custom enchants skript in the last couple of weeks but took a break the last week. Everything was working fine before this week. When i launched my server, the custom enchants skript was starting to throw errors about certain lines in the code. The error I'm receiving is the following: "Can't understand this loop: 'loop lore of {_p}'s tool split at "||" '". Did skript receive an update and did they change the syntax of splitting strings? Anyway if anyone has the same issue and knows a solution or work around, please let me know! Thanks! function getEnchantLevel(p: player, lore: text) :: integer: # this line no longer works loop lore of {_p}'s tool split at "||": if loop-value contains {_lore}: set {_n::*} to uncoloured loop-value split at " " return {_n::3} parsed as integer stop return 0
  2. You might just want to change stone to cobblestone in the last line of code?
  3. Look up on google: minecraft hex colors
  4. Hello I've been looking for a way to cancel player's hotbar swapping. So placing their cursor in the other inventory (lets say a chest for example) and pressing any hotbar key to swap the item from that hotbar slot into the chest. I found a couple of possible expressions (https://docs.skunity.com/syntax/search/Hotbar switch) but I cannot seem to make it work. Can anyone help me, thanks in advance! Kind regards
  5. Hey all I'm currently making a skript that reads messages from a specific channel on discord. The issue i'm currently having is that the only messages that appear in the channel are messages written by the same bot that reads the messages. The bot doesnt seem to be able to read its own messages with on guild message received. Does anyone know a work around or an alternative so that the bot reads its own messages as well? Thanks in advance! on guild message received: discord id of event-channel is "x" set {_player} to ("%event-message%" parsed as offline player) set {_u} to uuid of {_player} send "%{_player}%" to all players
  6. When servers are re-enabled, i'll it
  7. Hi, Im trying to make a leaderboard (shows top 5 token balances) and i need to display the amount with the player's username. The issue I'm encountering is that i can't seem to transform the player's uuid to the player's name. When looking around on the internet i found this: player from [uuid] %string% (https://docs.skunity.com/syntax/search/id:1379) Example: set {_player} to player from uuid "be501....." => but this throws an error: can't understand this condition This is my current code: set {_tokenTop::*} to sorted {tokens::*} loop {_tokenTop::*}: set {_u} to loop-index parsed as offline player's uuid set {_player} to player from uuid "%{_u}%" send "%{_tokenTop::%loop-index%}% and %{_player}%" to player tokens::* = list variable with index = player's uuid at the moment, this will show all the values stored in the list variable and not the top 5, I am aware! Thanks in advance
  8. There is no direct way to send a tooltip in a broadcast. Use send formatted "msg" to all players instead. Hope this helps. (PS: tested your code and it works if u use send to all players)
  9. I figured, i dont got any plugin spots left, so i just removed (direction from {_x} to player) so the player gets pushed from where he is standing atm. Not ideal but u got to work with what u have
  10. Hey there, me again! I was running the skript and encountered two minor errors: - on line 23: push loop-player (direction from {_loc} to player) with force 3 - on line 47: push loop-player (direction from {_x} to player) with force 1 => both give the error: Can't understand the condition/effect Additionally: - on line 56: set {bossentity::%victim%} to victim => gives the error: an entity cannot be saved & the contents will be lost when server stops (I dont think this one is to worrying) Do you have a quick solution for these? I'll do some online digging as well into the push player events! Thanks for everything!
  11. Thanks a lot, I'll be able to work with this. Thanks for all the work!
  12. Hey everyone I'm looking for a way to hide enchantments on an item. I know skript addons can do this, but i dont have any plugin slots left. I was wondering if anyone knows a solution in vanilla script. The only thing I found online was the vanilla minecraft command /give @p .... but i'm really looking for a solution that works like this: give 1 of item named "whatever" with lore "whatever" and with custom nbt "{HideFlags:number}" to player (This is not working atm) Thanks in advance!
  13. They use an item to spawn it Example: Boss 1 is a skeleton => use a bone as item to spawn it
  14. Custom boss skript - configurable mob: name, health, messages in chat, armor, weapons - if possible some skills (i know this might be hard in skript): push players back, launch players in the air, cobweb them - allowing to be spawned in specific worldguard regions - specific rewards - message in chat upon completion with top killers This is an elaborate request. But you would also help me out greatly by providing a basis to create & spawn a custom mob with rewards. Thanks in advance if you are willing to give it a shot!
×
×
  • Create New...