Jump to content
Sign in to follow this  
dinomite

Alliances/Teams

Recommended Posts

LINK https://pastebin.com/raw/adS1JAHx

DEPENDENCIES Skript (unconfirmed)

Simple alliances script with extensive configuration options, online + offline status (*not network-wide), and PvP compatibility (no friendly fire).

 

o/ Thanks for checking this out and please leave any constructive comments especially pertaining to bugs.

Share this post


Link to post
Share on other sites
every second:
	loop all players:
		loop all players:
			{%loop-player-1's uuid%::%loop-player-2's uuid%} >= 1:
				remove 1 from {%loop-player-1's uuid%::%loop-player-2's uuid%}
			{%loop-player-1's uuid%::%loop-player-2's uuid%} < 1:
				delete {%loop-player-1's uuid%::%loop-player-2's uuid%}
				send "&7&oYour request has expired!" to loop-player-1
				send "&7&oYour request from %loop-player-1% has expired!" to loop-player-2


I am pretty dumb, but looping players twice? I do not thing that is needed.

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, SuperOrca said:

every second:
	loop all players:
		loop all players:
			{%loop-player-1's uuid%::%loop-player-2's uuid%} >= 1:
				remove 1 from {%loop-player-1's uuid%::%loop-player-2's uuid%}
			{%loop-player-1's uuid%::%loop-player-2's uuid%} < 1:
				delete {%loop-player-1's uuid%::%loop-player-2's uuid%}
				send "&7&oYour request has expired!" to loop-player-1
				send "&7&oYour request from %loop-player-1% has expired!" to loop-player-2


I am pretty dumb, but looping players twice? I do not thing that is needed.

Agree. You only need to loop all players once.

  • Like 1

I've been doing skript for 4 years. I don't find my self a "better" skripter or do competitions against others.

I just wish people can just get along & just help each out and be kind to one and another.

 

I have been hosting ValkNet for 5 years

ever since 2015 when i joined minehut around February or January.

 

I'm the owner of ValkyrieNetwork (known as ValkNet) | https://discord.gg/rPTYbQY

A great service that i provide for the minehut community!

 

Contact:

Discord: https://discord.gg/rPTYbQY

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...