Jump to content

FlapKakker

Member
  • Posts

    40
  • Joined

  • Last visited

Everything posted by FlapKakker

  1. U can skip 80% of that code by doing set {topbal::*} to sorted {balance::*} from highest to lowest with format "@index:@value" Rest u got to figure out
  2. Even though it is necro: every x seconds: loop all players: if "%region at player%" contains "regionname": do stuff
  3. In order for the community to help you, please provide use with some code!
  4. I added you on discord! Added you on discord!
  5. It's always the same and this skript can be found anywhere on the internet! loop {YourListVariable::*: add 1 to {_size} if {_low.to.high.list::%loop-value%} is not set: set {_low.to.high.list::%loop-value%} to loop-index else: set {_n} to 0 loop {_size} times: set {_n} to {_n}+1 {_low.to.high.list::%loop-value-1%.%{_n}%} is not set set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index stop loop wait 1 tick set {_n} to size of {_low.to.high.list::*} loop {_low.to.high.list::*}: set {_high.to.low.list::%{_n}%} to loop-value set {_n} to {_n}-1 wait 1 tick #now you'll have to loop {_high.to.low.list::*} to access the descending leaderboard list!
  6. You use an if statement to check if the player has a named blaze rod in his hand. The else condition should trigger when the player DOES NOT hold a blaze rod named zapper currently, yet u again check if the player's tool is a named blaze rod. Therefore, the else statement, will trigger if he isnt holding a named blaze rod and end immediately. This can be confusing, and if you want i can discuss it further in personal messages!
  7. For anyone still looking for the solution, I dont know if anyone even is lol, you can find it down below #levels loop {prestige::*}: add 1 to {_size2} if {_low.to.high.list.levels::%loop-value%} is not set: set {_low.to.high.list.levels::%loop-value%} to loop-index else: set {_n2} to 0 loop {_size2} times: set {_n2} to {_n2}+1 {_low.to.high.list.levels::%loop-value-1%.%{_n2}%} is not set set {_low.to.high.list.levels::%loop-value-1%.%{_n2}%} to loop-index stop loop wait 1 tick set {_n2} to size of {_low.to.high.list.levels::*} loop {_low.to.high.list.levels::*}: set {_high.to.low.list.levels::%{_n2}%} to loop-value set {_n2} to {_n2}-1 wait 1 tick #loop second time loop {_high.to.low.list.levels::*}: add 1 to {_size4} set {_player} to "%loop-value%" parsed as offline player set {_level} to {level::%{_player}%} set {_prestige} to {prestige::%{_player}%} if {_low.to.high.list.levels2::%{_prestige}%.%{_level}%} is not set: set {_low.to.high.list.levels2::%{_prestige}%.%{_level}%} to loop-value #broadcast "no %{_low.to.high.list.levels2::%{_prestige}%.%{_level}%}%" #broadcast "%{_level}%" else: set {_n4} to 0 loop {_size4} times: set {_n4} to {_n4}+1 {_low.to.high.list.levels2::%{_prestige}%.%{_level}%.%{_n4}%} is not set set {_low.to.high.list.levels2::%{_prestige}%.%{_level}%.%{_n4}%} to loop-value-1 #broadcast "yes %{_low.to.high.list.levels2.%{_prestige}%.%{_level}%.%{_n4}%}%" #broadcast "%{_level}%" stop loop wait 1 tick set {_n5} to size of {_low.to.high.list.levels2::*} loop {_low.to.high.list.levels2::*}: set {high.to.low.list.levels2::%{_n5}%} to loop-value set {_n5} to {_n5}-1 wait 1 tick #message set {_topnumber} to 0 set {_ind2} to 0 loop {high.to.low.list.levels2::*}: #broadcast "%{_high.to.low.list.levels2::%loop-index%}% eeee" add 1 to {_ind2} if {_ind2} < 6: add 1 to {_topnumber} set {_player} to "%loop-value%" parsed as offlineplayer #broadcast "%{_player}% player" make console execute command "/holo setline leveltop %{_ind2} + 2% &d##%{_topnumber}% &f%{_player}% &f- &fP:%{prestige::%loop-value%}%&f Lvl. %{level::%loop-value%}%" #broadcast "%{_ind2}% %{_ind2} + 2%" else: make console execute command "/holo reload leveltop" stop loop + keep in mind that you CANNOT/SHOULDNT run this every second or on a command! When many people join your server, the list variables will be huge and looping over them will take considerable resources. You should make a timed event (e.g.: 30 minutes) and announce in chat that lagg may occur whilst loading the new leaderboards
  8. Dear minehut community, I'm a pretty new skript developer that offers its services to the community. Down below you can find some screenshots of previously made skripts as example of what I can do. Hit me up if you need any of the listed skripts or require something custom. Do keep in mind that I ask a small fee through paypal for any skript you receive. If you have any feedback for me or on my skripts, please don't hesitate to contact me as I'd like to become better in the future. If requested, skripts can be tested on a testing server to see how they work Kind regards Current portfolio: - Custom Fishing - Custom Virtual Crates: with mass open function - Custom Enchants for pickaxe, sword and armor with leveling system for pickaxe & armor - Virtual robots - and much more
  9. indeed ieuw nested vars haha, and thanks for the reply! They indeed reset upon prestiging, but still counting the total doesnt enable me to sort within the sorted prestige list :s
  10. Hello there! Glad you stumbled upon this post hehe! I'm currently trying to make a leaderboard for my players. It should sort the players based on their prestige and within that list, sorted based on their level. I'm already able to sort based on one list, but I can't figure out how to sort the levels inside the sorted prestige list! You can find my code snippet to sort based on levels down below. Thanks in advance if you can help me out! Example of what i need: (i know it should be uuid, but havent had time to change all my files yet ) (dont mind the layout) - Prestige top: #1 Verwarmingman: P:15 Lvl:54 #2 ezezez: P:10 Lvl:89 #3 Notch: P:3 Lvl:11 #4 ElPepe: P:1 Lvl:30 #5 ggfds: P:0 Lvl:5 Example of what I currently have: - Level top: #1 ezezez: Lvl:89 #2 Verwarmingman: Lvl:54 #3 ElPepe: Lvl:30 #4 Notch: Lvl:11 #5 ggfds: Lvl:5 #levels loop {level::*}: add 1 to {_size2} if {_low.to.high.list.levels::%loop-value%} is not set: set {_low.to.high.list.levels::%loop-value%} to loop-index else: set {_n2} to 0 loop {_size2} times: set {_n2} to {_n2}+1 {_low.to.high.list.levels::%loop-value-1%.%{_n2}%} is not set set {_low.to.high.list.levels::%loop-value-1%.%{_n2}%} to loop-index stop loop wait 1 tick set {_n2} to size of {_low.to.high.list.levels::*} loop {_low.to.high.list.levels::*}: set {_high.to.low.list.levels::%{_n2}%} to loop-value set {_n2} to {_n2}-1 wait 1 tick
  11. Result still <none> and I tried the following code set {_rank} to placeholder "%%vault_eco_top_balance_1%%" send "%{_rank}%" PS: u added "to player" at the end of the set expression, i think that is supposed to go on the next line with send "%{_rank}%"
  12. Quick response! I'll give it a shot
  13. Hey everyone, I recently found the vault placeholders for papi and I was wondering if I could use them in skript. The following placeholders are available: Economy: %vault_eco_balance% %vault_eco_balance_commas% %vault_eco_balance_fixed% %vault_eco_balance_formatted% %vault_eco_top_balance_#% %vault_eco_top_balance_fixed_#% %vault_eco_top_balance_formatted_#% %vault_eco_top_balance_commas_#% %vault_eco_top_player_#% %vault_eco_top_rank% I need to get top balance of the server. Anyone knows an expression to make this work or to be able to use the placeholder? Fyi: I already tried the following which returned <none>. Thanks in advance! set {_rank} to placeholder "vault_eco_top_balance_1" send "%{_rank}%"
  14. Sorry I couldn't be of more help to you
  15. I'm not sure because I use skript-gui, but doesnt the first like (<---) need a ":" at the end and proper indentation of the format lines command /John: trigger: open virtual chest with size 1 named "&aMr John" to player <-------- format gui slot 11 of player with diamond sword named "&bWeapons" format gui slot 11 of player with chainmail chestplate named "&fArmour" format gui slot 15 of player with lime concrete named "&aRepair" For example: command /John: trigger: open virtual chest with size 1 named "&aMr John" to player: format gui slot 11 of player with diamond sword named "&bWeapons" format gui slot 11 of player with chainmail chestplate named "&fArmour" format gui slot 15 of player with lime concrete named "&aRepair"
  16. no integers only take (0, 1, 2, etc) and numbers can take decimals (1.12;2.1336589; etc)
  17. Did you check if your discord bot contains anything that might cause a message to been read multiple times?
  18. Could u add some code snippets so we can actually see what is going on!
  19. Be careful when using skripts like this that use no regions. Don't get me wrong, this is a decent skript (however, using functions for custom enchants is a little more efficient if you have many) but this can mess up a lot on your server since the enchant can procc everywhere. You should add statements that check if the player or the event block is inside a specific region (such as mine-A or something) and maybe even check if the exploded blocks are within the specific reason since you don't want players to break/explode blocks outside of the specified region (I assumed you would need this for a prison server).
  20. Hey, I was wondering if there is any syntax available in skript to spawn a mob that rides a specific player? I'm trying to add some text above or below a player's displayname and was wondering if I just could spawn in an invisible mob (slime, chicken, what ever) and add a specific name to it (e.g.: Level 1, point is to display the level of the player above or below his/her display name). Additionally, I would make it so that the direction the mob is facing is the same as the direction the player is facing.Thanks in advance. I know an option exists to bind a hologram from Holographic display to a player, but the issue is that whenever the player moves, the hologram moves behind it with a little delay. I'm looking for something without the delay.
  21. didn't you forget to add the following? make console execute command "/op %arg-1%" Or is it the point of this skript to mess with people in game?
  22. I think I found the issue. It has indeed to do with the new way of handling 1000+ lines files on minehut. If you have files over 1000 lines, never ever edit and save them in the webbrowser. Saving will overwrite the file and add the truncation at the top which will in the end lead to your file breaking. Follow minehut's suggestion and always download 1000+ line files and edit them on your PC and not in the webbrowser. Afterwards, copy paste the new text into the webbrowser and save.
  23. This was a request for help. However, I was able to solve the issue by replacing loop lore of {_p}'s tool split at "||": with loop lore of {_p}'s tool: seems like the game automatically treats a new line in a lore as the next loop value!
  24. Due to the update of the minehut file handling on the dashboard, whenever I change something in my essentials config it breaks and regenerates the default config. Downloading the essentials config also does not provide you with the full config. It gives u the 1000 line limited file and you cannot access any lines that appear before that. Anyone got a solution or encountered the same issue?
×
×
  • Create New...