Jump to content

Landec

Member
  • Posts

    35
  • Joined

  • Last visited

Posts posted by Landec

  1. I found a money note skript but it does not have a /give command (and maybe a /take). The command would look like/give <player> <amount> (dont forget the permissions). I really need it for a new server I'm making. I'll post the skript below:

     

    Quote

     

    #   Bank Notes Remasterd
    #   Made By Shy#7014 (dm if there are any bugs/issues. Thank you!)

    function withdraw(amount: number, p: player):
        set {_u} to {_p}'s uuid
        if {_amount} is less than or equal to 0:
            send "&cError! you can not withdraw less than 0!" to {_p}
        else if {balance::%{_u}%} >= {_amount}:
            send "&aWithdrew %{_amount}% from your account!" to {_p}
            remove {_amount} from {balance::%{_u}%}
            give {_p} paper named "&6&lBank Note" with lore "&aIssued by: %{_p}%" and "&aAmount: $%{_amount}%"
        else:
            send "&cError! Insufficient Balance." to {_p}

    function deposit(p: player):
        set {_u} to {_p}'s uuid
        set {_amount} to uncolored line 2 of lore of {_p}'s held item
        replace all "Amount: $" in {_amount} with ""
        set {_item} to {_p}'s held item
        remove 1 of {_item} from {_p}
        set {_amount} to {_amount} parsed as integer
        add {_amount} to {balance::%{_u}%}
        send "&a Sucessfully deposited $%{_amount}% &ainto your account!" to {_p}

    command /banknote [<text>] [<integer>]:
        usage: /note help
        aliases: /note
        trigger:
            if arg 1 is "help":
                send "&aUsage: /note (deposit/withdraw) (amount)"
            else if arg 1 is "withdraw":
                if arg 2 is set:
                    withdraw(arg-2, player)
                else:
                    send "&cError! Please specify an amount."
            else if arg 1 is "deposit":
                if player's held item is paper:
                    if name of player's held item is "&6&lBank Note":
                        deposit(player)
                    else:
                        send "&cError! You are not holding a banknote."
                else:
                    send "&cError! You are not holding a banknote."

    on right click with paper:
        if name of player's held item is "&6&lBank Note":
            deposit(player)

     

     

  2. yes thanks it works for everything i need it for although for people looking at this skript it doesnt work for snowballs.

    1 hour ago, _Tarna_ said:

    on projectile hit: event-projectile is arrow event-block is tnt set event-block to air

     

  3. 7 hours ago, _Tarna_ said:

    What is the error you are getting with that? Because that us the exact example from the SkriptHub logs and it should work. 

    Also this is the Marketplace category. It is used for someone to request or offer something. Next time if you need skript help, you can ask in this Skript Category or #skript on the Minehut Discord

    The skript is listed below with the error message

    also sorry about posting in the wrong area I always get it wrong.

     

    Screenshot (9).png

  4. does anyone know how to fix this when i enter the skript clearly given in the skript docs for skrayfall tab it gives me an error. I would really like to use skrayfall for my tab because ive used it for everything else so it would be great it someone could tell me how to fix it.

    every 1 second:
        loop all players:
            set tab header to "&8- &bTablist &8-" and footer to "&7Hi there, &b%loop-player%&7!" for loop-player
  5. 9 hours ago, _Tarna_ said:

    Try this. not sure if it works cause I've never done it like this or tested it.

    
    on break:
    	player's gamemode is not creative
    	clear drops
    	set {_drops::*} to drops of block with player's tool
    	give player {_drops::*}

    Also next time, if you want someone to make a skript for you, ask in the Marketplace Category

    The skript didn't work it said players drops are for when they die. I think ill post this somewhere else and see if there is a non skript solution.

  6. On 10/4/2019 at 11:53 PM, xX__Strqfe__Xx said:

     

    due to the bugs in the code i fixed it for everyones sake there just insnt an owner so you will have to make your own skript for that

     

     

    # Note: np = No permission. p = Prefix.

    options:
        np: &6&lRANKS &8| &cNo permission.
        p:    &6&lRANKS &8|
            
    command /rank [<text>] [<offline player>] [<text>]:
        permission: ranks.rank
        permission message: {@np}
        aliases: grant, setrank
        trigger:
            if argument 1 is not set:
                send "&6&m&l--------------------------------------------------"
                send "&e/rank set (player) (rank) &8» &7Sets a player's rank."
                send "&e/rank list &8» &7Shows a list of all the groups on the server."
                send "&e/rank info &8» &7Shows info about the Skript."
                send "&6&m&l--------------------------------------------------"
            else if argument 1 is "set":
                if argument 2 is set:
                    if argument 3 is "MANAGER" or "MANAGER":
                        set {rank.%arg 2%} to "&c&dMANAGER&c"
                        send "{@p} &e%arg-2%'s &7rank is now to set to &c&l&7."
                        send "{@p} &7Your rank has been set to &c&dMANAGER&7." to argument 2
                    if argument 3 is "Mod" or "Moderator":
                        set {rank.%arg 2%} to "&e&lMOD&e"
                        send "{@p} &e%arg-2%'s &7rank is now to set to &e&lMOD&7."
                        send "{@p} &7Your rank has been set to &e&lMOD&7." to argument 2
                    if argument 3 is "Helper" or "Support":
                        set {rank.%arg 2%} to "&b&lHELPER&b"
                        send "{@p} &e%arg-2%'s &7rank is now to set to &b&lHELPER&7."
                        send "{@p} &7Your rank has been set to &b&lHELPER&7." to argument 2
                    if argument 3 is "default":
                        set {rank.%arg 2%} to "&7"
                        send "{@p} &e%arg-2%'s &7rank is now to set to &7default."
                        send "{@p} &7Your rank has been set to &7default." to argument 2
                    if argument 3 is not "default", "Helper", "Support", "Moderator", "Mod", "MANAGER" or "MANAGER":
                        send "{@p} &7That is not a role. Do &e/rank list &7to see the roles available."
                else:
                    send "{@p} &7Please specify a user to set the rank for."
            else if argument 1 is "list":
                send "&6&m&l--------------------------------------------------"
                send "&c&lMANAGER &8&l» &7Has every permission."
                send "&c&lMOD &8&l» &7Has punishment and gamemode permissions."
                send "&6&lHELPER &8&l» &7Has kick and fly permissions."
                send "&7default &8&l» &7Not much."
                send "&6&m&l--------------------------------------------------"
            else if argument 1 is "info":
                send "&6&m&l--------------------------------------------------"
                send "&7This Ranks Skript was created by"
                send "&eToroVoro."
                send "&6&m&l--------------------------------------------------"

    on chat:
        set chat format to "%{rank.%player%}% %player% &8&l» &7%message%"

  7. 4 minutes ago, Landec said:

    Not sure if this will 100% work but try it. 

    it works although does it give each individual player a random item or does every player get the same item

  8. 10 minutes ago, _Tarna_ said:

    The person above sent a skript thats a global toggle meaning a staff member can toggle weather or not people get items. If you want a per person toggle, meaning each person can toggle it for themselves, here it is.

    
    every 30 seconds:
    	give a random item out of all items to all players where [{random::%input's uuid%} is set]
    
    command /toggle:
    	trigger:
    		if {random::%player's uuid%} is set:
    			delete {random::%player's uuid%}
    			send "random items disabled"
    		else:
    			set {random::%player's uuid%} to true
    			send "random items enabled"

    Not sure if this will 100% work but try it. 

    ok ill try it thx

×
×
  • Create New...