Jump to content

FlapKakker

Member
  • Posts

    40
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

FlapKakker's Achievements

Rookie

Rookie (3/6)

5

Reputation

  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"
×
×
  • Create New...