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

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Offering Free Requesting Skript Ideas! | You send them. I'll make them

Discussion in 'Offering' started by King_Creeperz, Aug 17, 2021.

Tags:
  1. King_Creeperz

    King_Creeperz Member

    Joined:
    Oct 6, 2020
    Messages:
    44
    Likes Received:
    0
    I am requesting skript ideas!!

    Send them to me and they will be ready in 30m-6h
    --- Double Post Merged, Aug 22, 2021, Original Post Date: Aug 17, 2021 ---
    Hmm why isn't anyone replying. it is prob the forum is dead lol.
     
  2. mrclipse

    mrclipse Member

    Joined:
    Sep 18, 2021
    Messages:
    11
    Likes Received:
    0
    I would love it if you could help me with my faction skript im making

    im stuck on lines 13-14 do I do like send "text" to {%arg-1%}

    Code (Text):
    1. command /fcreate <string>:
    2.     description: Creates a faction
    3.     executable by: players
    4.     trigger:
    5.         if {factions::%uuid of player%::hasfaction} is not 1:
    6.             set {factions::%uuid of player%::factionlocation} to location of player
    7.             set {factions::%uuid of player%::factionname} to "%arg-1%"
    8.             set {factions::%uuid of player%::isowner} to 1
    9.             set {factions::%uuid of player%::hasfaction} to 1
    10.             message "Created the faction <green>%arg-1%<reset> and set its home to your location"
    11.         else:
    12.             message "you are already in a faction"
    13.  
    14. #command /invite <string>:
    15. #    send "test" to %arg-1%
    16.  
    17. command /fdelete:
    18.     description: Deletes your faction
    19.     executable by: players
    20.     trigger:
    21.         if {factions::%uuid of player%::isowner} is 1:
    22.             message "are you sure you want to <red><bold>delete<reset> %{factions::%uuid of player%::factionname}%?"
    23.             message "this action <red><bold>cannot be undone<reset>"
    24.             message "type /fconfirm delete <faction name> if you are sure"
    25.         else:
    26.             message "you aren't the owner of this faction!"
    27.  
    28. command /fconfirm <string> <string>:
    29.     description: Confirms the deletion of your faction
    30.     executable by: players
    31.     trigger:
    32.         message "1:%arg-1% 2:%arg-2%"
    33.         if {%arg-1%} is "delete":
    34.             message "delete"
    35.             if {factions::%uuid of player%::hasfaction} is 1:
    36.                 if {factions::%uuid of player%::isowner} is 1:
    37.                     set {factions::%uuid of player%::hasfaction} to 0
    38.                     set {factions::%uuid of player%::factionname} to 0
    39.                     set {factions::%uuid of player%::isowner} to 0
    40.                     set {factions::%uuid of player%::factionlocation} to "none"
    41.  
    42.  
    43. command /fsethome:
    44.     description: Sets your faction home
    45.     executable by: players
    46.     trigger:
    47.         if {factions::%uuid of player%::hasfaction} is 1:
    48.             if {factions::%uuid of player%::isowner} is 1:
    49.                 if "%block below player%" is not "air" or "lava":
    50.                     set {factions::%uuid of player%::faction location} to location of player
    51.                     message "set <lime>%{factions::%uuid of player%::factionname}%'s<reset> home to <grey>%location of player%<reset>"
    52.                 else:
    53.                     message "you arent standing in a safe location"
    54.  
    55. command /fhome:
    56.     description: Teleports you to your faction home
    57.     executable by: players
    58.     trigger:
    59.         if {factions::%uuid of player%::hasfaction} is 1:
    60.             message "Teleporting you to %{factions::%uuid of player%::factionname}%'s home"
    61.             teleport player to {factions::%uuid of player%::factionlocation}
    62.  
    63. command /finfo:
    64.     description: Prevides you with information about your current faction
    65.     executable by: players
    66.     trigger:
    67.         if {factions::%uuid of player%::hasfaction} is 1:
    68.             message "name: %{factions::%uuid of player%::factionname}%"
    69.             message "location: %{factions::%uuid of player%::factionlocation}%"
    70.             if {factions::%uuid of player%::isowner} is 1:
    71.                 message "You are the owner of %{factions::%uuid of player%::factionname}%"
    72.             else:
    73.                 message "you are a member of %{factions::%uuid of player%::factionname}%"
    74.         else:
    75.             message "you aren't in a faction"
    76.         message "this skript was written by mrclipse"
    77.  
    78. on chat:
    79.     if {factions::%uuid of player%::hasfaction} is 1:
    80.         cancel event
    81.         send "[%{factions::%uuid of player%::factionname}%] <%player%> %message%" to all players
    82.  
    83. command /fhelp:
    84.     trigger:
    85.         message "<green>/fcreate <faction name><reset> >> <green>creates a faction with the name specified and sets the home to your location<reset>"
    86.         message "<green>/fdelete<reset> >> <green>prompts you with confirmation to delete your faction<reset>"
    87.         message "<green>/fsethome<reset> >> <green>sets your faction home to your current location<reset>"
    88.         message "<green>/fhome<reset> >> <green>teleports you to your factions home<reset>"
    89.         message "<green>/finfo<reset> >> <green>shows info on the faction you are in<reset>"
    90.         message "<green>/fhelp<reset> >> <green>shows you the commands of mrclipse's faction plugin, you're looking at it right now!<reset>"
    --- Double Post Merged, Sep 18, 2021, Original Post Date: Sep 18, 2021 ---
    I fixed it:
    Still working on /join command though

    Code (Text):
    1. command /fcreate [<text>]:
    2.     description: Creates a faction
    3.     executable by: players
    4.     trigger:
    5.         if {factions::%uuid of player%::hasfaction} is not 1:
    6.             if arg-1 is not "none":
    7.                 set {factions::%uuid of player%::factionlocation} to location of player
    8.                 set {factions::%uuid of player%::factionname} to arg-1
    9.                 set {factions::%uuid of player%::isowner} to 1
    10.                 set {factions::%uuid of player%::hasfaction} to 1
    11.                 message "Created the faction <green>%arg-1%<reset> and set its home to your location"
    12.             else:
    13.                 message "For technical reasons you can't name your faction none, sorry!"
    14.         else:
    15.             message "you are already in a faction"
    16.  
    17. command /invite [<player>]:
    18.     trigger:
    19.         if {factions::%uuid of player%::hasfaction} is 1:
    20.             if {factions::%uuid of player%::isowner} is 1:
    21.                 message "you invited %arg-1% to join %{factions::%uuid of player%::factionname}%"
    22.                 message "%player% invites you to join their faction, %{factions::%uuid of player%::factionname}%","to join type /join %{factions::%uuid of player%::factionname}%" to arg-1
    23.                 set {factions::%uuid of arg-1%::currentinvite} to {factions::%uuid of player%::factionname}
    24.  
    25. command /join [<text>]:
    26.     trigger:
    27.         if {factions::%uuid of player%::currentinvite} is not "none":
    28.             if {factions::%uuid of player%::hasfaction} is 0:
    29.                 if arg-1 is {factions::%uuid of player%::currentinvite}:
    30.                     set {factions::%uuid of player%::factionname} to {factions::%uuid of player%::currentinvite}
    31.                     set {factions::%uuid of player%::}
    32.             else:
    33.                 message "you are already in a faction"
    34.         else:
    35.             message "you are not currently invited to any factions"
    36. command /test:
    37.     trigger:
    38.         message "%{factions::%uuid of player%::currentinvite}%"
    39.  
    40. command /fdelete:
    41.     description: Deletes your faction
    42.     executable by: players
    43.     trigger:
    44.         if {factions::%uuid of player%::isowner} is 1:
    45.             message "are you sure you want to <red><bold>delete<reset> %{factions::%uuid of player%::factionname}%?"
    46.             message "this action <red><bold>cannot be undone<reset>"
    47.             message "type /fconfirm delete <faction name> if you are sure"
    48.         else:
    49.             message "you aren't the owner of this faction!"
    50.  
    51. command /fconfirm [<type>] [<text>]:
    52.     description: Confirms the deletion of your faction
    53.     executable by: players
    54.     trigger:
    55.         message "1:%arg-1% 2:%arg-2%"
    56.         if {%arg-1%} is "delete":
    57.             message "delete"
    58.             if {factions::%uuid of player%::hasfaction} is 1:
    59.                 if {factions::%uuid of player%::isowner} is 1:
    60.                     set {factions::%uuid of player%::hasfaction} to 0
    61.                     set {factions::%uuid of player%::factionname} to 0
    62.                     set {factions::%uuid of player%::isowner} to 0
    63.                     set {factions::%uuid of player%::factionlocation} to "none"
    64.  
    65.  
    66. command /fsethome:
    67.     description: Sets your faction home
    68.     executable by: players
    69.     trigger:
    70.         if {factions::%uuid of player%::hasfaction} is 1:
    71.             if {factions::%uuid of player%::isowner} is 1:
    72.                 if "%block below player%" is not "air" or "lava":
    73.                     set {factions::%uuid of player%::faction location} to location of player
    74.                     message "set <lime>%{factions::%uuid of player%::factionname}%'s<reset> home to <grey>%location of player%<reset>"
    75.                 else:
    76.                     message "you arent standing in a safe location"
    77.  
    78. command /fhome:
    79.     description: Teleports you to your faction home
    80.     executable by: players
    81.     trigger:
    82.         if {factions::%uuid of player%::hasfaction} is 1:
    83.             message "Teleporting you to %{factions::%uuid of player%::factionname}%'s home"
    84.             teleport player to {factions::%uuid of player%::factionlocation}
    85.  
    86. command /finfo:
    87.     description: Prevides you with information about your current faction
    88.     executable by: players
    89.     trigger:
    90.         if {factions::%uuid of player%::hasfaction} is 1:
    91.             message "name: %{factions::%uuid of player%::factionname}%"
    92.             message "location: %{factions::%uuid of player%::factionlocation}%"
    93.             if {factions::%uuid of player%::isowner} is 1:
    94.                 message "You are the owner of %{factions::%uuid of player%::factionname}%"
    95.             else:
    96.                 message "you are a member of %{factions::%uuid of player%::factionname}%"
    97.         else:
    98.             message "you aren't in a faction"
    99.         message "this skript was written by mrclipse"
    100.  
    101. on chat:
    102.     if {factions::%uuid of player%::hasfaction} is 1:
    103.         cancel event
    104.         send "[%{factions::%uuid of player%::factionname}%] <%player%> %message%" to all players
    105.  
    106. on join:
    107.     set {factions::%uuid of player%::currentinvite} to "none"
    108.  
    109. command /fhelp:
    110.     trigger:
    111.         message "<green>/fcreate <faction name><reset> >> <green>creates a faction with the name specified and sets the home to your location<reset>"
    112.         message "<green>/fdelete<reset> >> <green>prompts you with confirmation to delete your faction<reset>"
    113.         message "<green>/fsethome<reset> >> <green>sets your faction home to your current location<reset>"
    114.         message "<green>/fhome<reset> >> <green>teleports you to your factions home<reset>"
    115.         message "<green>/finfo<reset> >> <green>shows info on the faction you are in<reset>"
    116.         message "<green>/fhelp<reset> >> <green>shows you the commands of mrclipse's faction plugin, you're looking at it right now!<reset>"
    --- Double Post Merged, Sep 21, 2021 ---
    I mostly finished that project for now, but I would love to have some sort of a piano or if you really want a challenge, clarinet in skript where you can either stand on notes or click them

    Tysm!
     

Share This Page

Loading...