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

  • 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!

King_Creeperz

Member
Oct 6, 2020
45
0
8
I am requesting skript ideas!!

Send them to me and they will be ready in 30m-6h
[doublepost=1629667615,1629227971][/doublepost]Hmm why isn't anyone replying. it is prob the forum is dead lol.
 
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:
command /fcreate <string>:
    description: Creates a faction
    executable by: players
    trigger:
        if {factions::%uuid of player%::hasfaction} is not 1:
            set {factions::%uuid of player%::factionlocation} to location of player
            set {factions::%uuid of player%::factionname} to "%arg-1%"
            set {factions::%uuid of player%::isowner} to 1
            set {factions::%uuid of player%::hasfaction} to 1
            message "Created the faction <green>%arg-1%<reset> and set its home to your location"
        else:
            message "you are already in a faction"

#command /invite <string>:
#    send "test" to %arg-1%

command /fdelete:
    description: Deletes your faction
    executable by: players
    trigger:
        if {factions::%uuid of player%::isowner} is 1:
            message "are you sure you want to <red><bold>delete<reset> %{factions::%uuid of player%::factionname}%?"
            message "this action <red><bold>cannot be undone<reset>"
            message "type /fconfirm delete <faction name> if you are sure"
        else:
            message "you aren't the owner of this faction!"

command /fconfirm <string> <string>:
    description: Confirms the deletion of your faction
    executable by: players
    trigger:
        message "1:%arg-1% 2:%arg-2%"
        if {%arg-1%} is "delete":
            message "delete"
            if {factions::%uuid of player%::hasfaction} is 1:
                if {factions::%uuid of player%::isowner} is 1:
                    set {factions::%uuid of player%::hasfaction} to 0
                    set {factions::%uuid of player%::factionname} to 0
                    set {factions::%uuid of player%::isowner} to 0
                    set {factions::%uuid of player%::factionlocation} to "none"


command /fsethome:
    description: Sets your faction home
    executable by: players
    trigger:
        if {factions::%uuid of player%::hasfaction} is 1:
            if {factions::%uuid of player%::isowner} is 1:
                if "%block below player%" is not "air" or "lava":
                    set {factions::%uuid of player%::faction location} to location of player
                    message "set <lime>%{factions::%uuid of player%::factionname}%'s<reset> home to <grey>%location of player%<reset>"
                else:
                    message "you arent standing in a safe location"

command /fhome:
    description: Teleports you to your faction home
    executable by: players
    trigger:
        if {factions::%uuid of player%::hasfaction} is 1:
            message "Teleporting you to %{factions::%uuid of player%::factionname}%'s home"
            teleport player to {factions::%uuid of player%::factionlocation}

command /finfo:
    description: Prevides you with information about your current faction
    executable by: players
    trigger:
        if {factions::%uuid of player%::hasfaction} is 1:
            message "name: %{factions::%uuid of player%::factionname}%"
            message "location: %{factions::%uuid of player%::factionlocation}%"
            if {factions::%uuid of player%::isowner} is 1:
                message "You are the owner of %{factions::%uuid of player%::factionname}%"
            else:
                message "you are a member of %{factions::%uuid of player%::factionname}%"
        else:
            message "you aren't in a faction"
        message "this skript was written by mrclipse"

on chat:
    if {factions::%uuid of player%::hasfaction} is 1:
        cancel event
        send "[%{factions::%uuid of player%::factionname}%] <%player%> %message%" to all players

command /fhelp:
    trigger:
        message "<green>/fcreate <faction name><reset> >> <green>creates a faction with the name specified and sets the home to your location<reset>"
        message "<green>/fdelete<reset> >> <green>prompts you with confirmation to delete your faction<reset>"
        message "<green>/fsethome<reset> >> <green>sets your faction home to your current location<reset>"
        message "<green>/fhome<reset> >> <green>teleports you to your factions home<reset>"
        message "<green>/finfo<reset> >> <green>shows info on the faction you are in<reset>"
        message "<green>/fhelp<reset> >> <green>shows you the commands of mrclipse's faction plugin, you're looking at it right now!<reset>"
[doublepost=1632002229,1631995260][/doublepost]I fixed it:
Still working on /join command though

Code:
command /fcreate [<text>]:
    description: Creates a faction
    executable by: players
    trigger:
        if {factions::%uuid of player%::hasfaction} is not 1:
            if arg-1 is not "none":
                set {factions::%uuid of player%::factionlocation} to location of player
                set {factions::%uuid of player%::factionname} to arg-1
                set {factions::%uuid of player%::isowner} to 1
                set {factions::%uuid of player%::hasfaction} to 1
                message "Created the faction <green>%arg-1%<reset> and set its home to your location"
            else:
                message "For technical reasons you can't name your faction none, sorry!"
        else:
            message "you are already in a faction"

command /invite [<player>]:
    trigger:
        if {factions::%uuid of player%::hasfaction} is 1:
            if {factions::%uuid of player%::isowner} is 1:
                message "you invited %arg-1% to join %{factions::%uuid of player%::factionname}%"
                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
                set {factions::%uuid of arg-1%::currentinvite} to {factions::%uuid of player%::factionname}

command /join [<text>]:
    trigger:
        if {factions::%uuid of player%::currentinvite} is not "none":
            if {factions::%uuid of player%::hasfaction} is 0:
                if arg-1 is {factions::%uuid of player%::currentinvite}:
                    set {factions::%uuid of player%::factionname} to {factions::%uuid of player%::currentinvite}
                    set {factions::%uuid of player%::}
            else:
                message "you are already in a faction"
        else:
            message "you are not currently invited to any factions"
command /test:
    trigger:
        message "%{factions::%uuid of player%::currentinvite}%"

command /fdelete:
    description: Deletes your faction
    executable by: players
    trigger:
        if {factions::%uuid of player%::isowner} is 1:
            message "are you sure you want to <red><bold>delete<reset> %{factions::%uuid of player%::factionname}%?"
            message "this action <red><bold>cannot be undone<reset>"
            message "type /fconfirm delete <faction name> if you are sure"
        else:
            message "you aren't the owner of this faction!"

command /fconfirm [<type>] [<text>]:
    description: Confirms the deletion of your faction
    executable by: players
    trigger:
        message "1:%arg-1% 2:%arg-2%"
        if {%arg-1%} is "delete":
            message "delete"
            if {factions::%uuid of player%::hasfaction} is 1:
                if {factions::%uuid of player%::isowner} is 1:
                    set {factions::%uuid of player%::hasfaction} to 0
                    set {factions::%uuid of player%::factionname} to 0
                    set {factions::%uuid of player%::isowner} to 0
                    set {factions::%uuid of player%::factionlocation} to "none"


command /fsethome:
    description: Sets your faction home
    executable by: players
    trigger:
        if {factions::%uuid of player%::hasfaction} is 1:
            if {factions::%uuid of player%::isowner} is 1:
                if "%block below player%" is not "air" or "lava":
                    set {factions::%uuid of player%::faction location} to location of player
                    message "set <lime>%{factions::%uuid of player%::factionname}%'s<reset> home to <grey>%location of player%<reset>"
                else:
                    message "you arent standing in a safe location"

command /fhome:
    description: Teleports you to your faction home
    executable by: players
    trigger:
        if {factions::%uuid of player%::hasfaction} is 1:
            message "Teleporting you to %{factions::%uuid of player%::factionname}%'s home"
            teleport player to {factions::%uuid of player%::factionlocation}

command /finfo:
    description: Prevides you with information about your current faction
    executable by: players
    trigger:
        if {factions::%uuid of player%::hasfaction} is 1:
            message "name: %{factions::%uuid of player%::factionname}%"
            message "location: %{factions::%uuid of player%::factionlocation}%"
            if {factions::%uuid of player%::isowner} is 1:
                message "You are the owner of %{factions::%uuid of player%::factionname}%"
            else:
                message "you are a member of %{factions::%uuid of player%::factionname}%"
        else:
            message "you aren't in a faction"
        message "this skript was written by mrclipse"

on chat:
    if {factions::%uuid of player%::hasfaction} is 1:
        cancel event
        send "[%{factions::%uuid of player%::factionname}%] <%player%> %message%" to all players

on join:
    set {factions::%uuid of player%::currentinvite} to "none"

command /fhelp:
    trigger:
        message "<green>/fcreate <faction name><reset> >> <green>creates a faction with the name specified and sets the home to your location<reset>"
        message "<green>/fdelete<reset> >> <green>prompts you with confirmation to delete your faction<reset>"
        message "<green>/fsethome<reset> >> <green>sets your faction home to your current location<reset>"
        message "<green>/fhome<reset> >> <green>teleports you to your factions home<reset>"
        message "<green>/finfo<reset> >> <green>shows info on the faction you are in<reset>"
        message "<green>/fhelp<reset> >> <green>shows you the commands of mrclipse's faction plugin, you're looking at it right now!<reset>"
[doublepost=1632191803][/doublepost]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!