Jump to content

Can someone make me a skript pls


Yo_The_pro19
 Share

Recommended Posts

                Redeem skript

 

Hello I need help with a skript I would like it so I do /moneysheet <amount> to give you paper that when you right click it pays you the amount

Also I would like the same thing just /ranknote <rank> and you right click to get the rank then what rank it says uses luck perms to join that rank or group

 

Thx 

Curtis24

ign: Curtis24

Server: aquagen (aquagen.minehut.gg)

Edited by Curtis24

 

350kb.gif.0ff78007b131dd46bab00eb5980d6c35.gif

Yo_the_pro19

owner of Aqua-lands.net

rank: VIP 

 

 

Link to comment
Share on other sites

i already maybe something for /ranknote
not finished with /moneysheet tho

if you want /ranknot already here it is:
 

command /ranksheet [<player>] [<text>]:
  permission: ranksheet.give
  permission message: You don't have permission to use this command
  trigger:
    if arg-1 is set:
      if arg-2 is set:
        if arg-2 is "default":
          give arg-1 paper named "ranksheet" with lore "This Ranksheet will give you rank: default"
      else:
        send "please specify a rank:"
        send "(ranks here)"
    else:
      send "please specify a player!"
on rightclick:
  loop all players:
    if loop-player is holding a paper named "ranksheet" with lore "This Ranksheet will give you rank: default":
      remove paper named "ranksheet" from loop-player
      make console execute command "/lp user %loop-player% parent add default"

not fully tested if their are any bugs just tell me

Link to comment
Share on other sites

command /withdraw [<integer>]:
  trigger:
    if arg-1 is not set:
      send "&cYou need to set an amount to withdraw! &7Ex: (/withdraw 1000)"
    else:
      if {money::%player's uuid%} >= arg-1:
        give 1 paper named "&aBanknote &7(Rightclick to redeem)" with lore "&a$%arg-1%" to player
        remove arg-1 from {money::%player's uuid%}
      else:
        send "&cYou cant afford that!"

on rightclick:
  player is holding paper named "&aBanknote &7(Rightclick to redeem)"
  set {_m::*} to name of the player's held item split at "$"
  add {_m::2} to {money::%player's uuid%}
  remove 1 of held item from player

i havent tested it in game but it loads without errors. also change the variable to whatever u like. lmk if it doesnt work

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share



×
×
  • Create New...