Jump to content

FlapKakker

Member
  • Posts

    40
  • Joined

  • Last visited

Posts posted by FlapKakker

  1. On 1/4/2022 at 12:38 AM, Ikey said:

    So, I have added the skript that you sent me and changed it up a little to fit my event skript, but it doesn't seem to be working. I haven't added the variables from my skript to this one yet but I just wanted to test it by itself to see if it worked.

    Does this look alright?

    command /event.lb [<text>]:
       trigger:
          loop {times::*}:
             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-2
                   set {_n} to {_n}-1
                wait 1 tick
                send "&7 "
                send "&6&lTop 10 Race Times"
                loop {_high.to.low.list::*}:
                   add 1 to {_result}
                   set {_player} to loop-value-1 parsed as an offline player
                   if {_player} is offline:
                      send "&e&l%{_result}%. &c%{_player}% &8&l» &e%{race::%loop-value-1%}%" to player
                   else:
                      send "&e&l%{_result}%. &a%{_player}% &8&l» &e%{race::%loop-value-1%}%" to player
                   if {_result} is 10:
                      send "&7 "
                      stop

    Is there anything you can see that is wrong in here?
    Thanks.

    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. On 9/4/2021 at 10:34 PM, northern said:

    Add me on discord Marcus#5000

    I added you on discord!

     

    On 9/5/2021 at 6:54 AM, aashumc said:

    Add me on discord codz69

    you seem very skilled i can give you constructive feedback and we can work together. Maybe you could teach me a thing or 2 about skript! as im relativley new

    Added you on discord!

  3. 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!

     

  4. 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!

  5. 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

     

  6. 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

    Fishing1.png.d1923580508019c394ff4226ec0cb976.pngFishing2.png.3b184af56fd40fa83d70af095d835aa7.png

    - Custom Virtual Crates: with mass open function

    Crates1.png.90aafb68f615f386e27d47185cbe29ca.pngCrates2.png.76afdd9d6f16fc08bc57d760d82bf55f.png

    - Custom Enchants for pickaxe, sword and armor with leveling system for pickaxe & armor

    CE.png.4d749b6cf601ec5b06065d8cc8caa1cb.pngsword.png.9b4d6d429b74a4508bfc6c6c65094bda.pngarmor.png.67e79d2f02b28015781e3da3dc61d79d.pngpickaxe.png

    - Virtual robots

    robot.png.3a3f255c5869dbdb273a32cdbb258aae.png

    - and much more

  7. On 8/31/2021 at 10:55 PM, itsKimo said:

    u should probably count the persons levels in a total variable like {totallevel.%player's uuid%} because if ur making a leaderboard for levels ppl lose levels on rebirth im assuming

    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

     

  8. 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

     

  9. 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}%"

     

  10. 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}%"

     

  11. 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"

     

  12. 12 hours ago, AbusingNub said:

    A quick google can find something along these lines

    command explosivepickaxe:
    	aliases: epickaxe, ep, epick
    	permission: epickaxe.use
    	permission message: &7&l<< &4&lError&7&l >> &r&cYou do not have the required permission to perform this command
    	trigger:
    		give a diamond pickaxe with lore "&5Explosive" to the player
    
    on block break:
    	if player have permission "epickaxe.use":
    		if player is holding a diamond pickaxe with lore "&5Explosive":
    			loop blocks in radius 2 of event-block:
    				if loop-block is stone or cobblestone or obsidian or any ore:
    					add loop-block to {_explosive.%player%::*}
    					loop {_explosive.%player%::*}:
    						drop loop-value
    						set loop-block to air

    There is also a custom enchant plugin on Minehut or a well known custom enchant skript online that both offer a range of different enchants with custom abilities.

    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). 

  13. 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.

  14. 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. 

  15. On 8/7/2021 at 2:33 PM, Razaire said:

    is this is a release or help?

    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!

  16. 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?

    • Like 1
×
×
  • Create New...