SOTW Request

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

nicoxdry

Member
Mar 22, 2017
27
0
1
21
Im working on a script that will give players Resistance for 5 hours
I want the command to be like this /sotw start
and then for stopping /Sotw stop
When i type /sotw start it will broadcast a message
then there will be 5 hours of resistance for everyone

Category:
Pvp
Suggested name: SOTW

What I want:
I want the command to be like this /sotw start
and then for stopping /Sotw stop
When i type /sotw start it will broadcast a message
then there will be 5 hours of resistance for everyone


Ideas for commands:
/Sotw Start


/Sotw Stop

Ideas for permissions:
Sotw.start
Sotw.stop


When I'd like it by: Around this week
 
Im working on a script that will give players Resistance for 5 hours
I want the command to be like this /sotw start
and then for stopping /Sotw stop
When i type /sotw start it will broadcast a message
then there will be 5 hours of resistance for everyone

Category:
Pvp
Suggested name: SOTW

What I want:
I want the command to be like this /sotw start
and then for stopping /Sotw stop
When i type /sotw start it will broadcast a message
then there will be 5 hours of resistance for everyone


Ideas for commands:
/Sotw Start


/Sotw Stop

Ideas for permissions:
Sotw.start
Sotw.stop


When I'd like it by: Around this week
Basic but should work:
code_language.skript:
Command /swot [<text>]:
    Trigger:
        If arg is "start":
            If player has permission "swot.start":
                Set {swot} to 300
                broadcast "&6&lSwot activated! Enjoy your boost!"
            Else:
                Message "&cDon't try it. Your not able to execute this cool command!"
        If arg is "stop":
            If player has permission "swot.atop":
                If {swot} is set:
                    Delete {swot}
                    Broadcast "&c&lSWOT deactivated by %player%! Time to take revenge!"
                Else:
                    Message "SWOT is not activated yet!"
            Else:
                Message "&cYou have no permissions bitch xD"
Every minute:
    If {swot} is greater than 0:
        Remove 1 from {swot}
        Loop all players:
            Apply regeneration to loop-player for 62 seconds
        Stop
    Delete {swot}
    Broadcast  "&c&lSWOT is now deactivated!