SHOW:
|
|
- or go back to the newest paste.
| 1 | - | #A UTILISER AVEC UN SKRIPT DE COINS (https://www.youtube.com/watch?v=-atvmv7dA58) |
| 1 | + | #Hey guys! Someone asked me to make a Rank Skript. And here we are, this skript is going to just be for prefix, i whil make for this scirpt and serie bc it is much work! Permisisons etc are not in this skript!! |
| 2 | # Link will be down i description!! | |
| 3 | - | on rightclick on sign: |
| 3 | + | |
| 4 | - | if line 1 of clicked block is "[Shop]": |
| 4 | + | options: |
| 5 | - | if line 2 of clicked block is "Buy": |
| 5 | + | p: &8[&C&lYou&f<ube&8] #The Prefix |
| 6 | - | set {_price} to line 3 of clicked block
|
| 6 | + | |
| 7 | - | set {_item} to line 4 of clicked block
|
| 7 | + | command /rank [<text>] [<offline player>] [<text>]: #the command |
| 8 | - | if {_price} parsed as a number > {coins.%player's UUID%}:
|
| 8 | + | permission: rank.admin |
| 9 | - | send "&c[Shop] Vous n'avez pas assez d'argent pour acheter %{_item}%"
|
| 9 | + | permission message: {@p} &cNo permissions!
|
| 10 | - | stop |
| 10 | + | trigger: |
| 11 | - | |
| 11 | + | if arg 1 is not set: |
| 12 | send "&c-----------------------------------------------------" | |
| 13 | - | remove {_price} parsed as a number from {coins.%player's UUID%}
|
| 13 | + | send "&4/rank set <player> <rank> &8:: &7Set a player's rank" |
| 14 | - | give player {_item} parsed as item
|
| 14 | + | send "&4/rank list &8:: &7Shows yo the list of all groups" |
| 15 | - | send "&a[Shop] Vous avez bien acheté %{_item}% pour %{_price}%$ ! Il vous reste %{coins.%player's UUID%}% coins !"
|
| 15 | + | send "&4/rank reset <player> &8:: &7Resets the rank of a player to &7&lMember" |
| 16 | - | if line 2 of clicked block is "Sell": |
| 16 | + | send "&4/rank info &8:: &7Shows some info about this skript" |
| 17 | - | set {_price} to line 3 of clicked block
|
| 17 | + | send "&4/rank prefix <player> <prefix> &8:: &7Give someone a custom prefix" |
| 18 | - | set {_item} to line 4 of clicked block
|
| 18 | + | send "&c-----------------------------------------------------" |
| 19 | - | if player is holding {_item} parsed as a item:
|
| 19 | + | if arg 1 is "set": |
| 20 | - | remove {_item} parsed as an item from player's inventory
|
| 20 | + | if arg 2 is set: |
| 21 | - | add {_price} parsed as a number to {coins.%player's UUID%}
|
| 21 | + | if arg 3 is "owner": |
| 22 | - | send "&a[Shop] Vous avez bien vendu %{_item}% pour %{_price}%$ ! Vous avez %{coins.%player's UUID%}% coins !"
|
| 22 | + | set {rank.%arg 2%} to "&4&lOwner"
|
| 23 | - | stop |
| 23 | + | broadcast "{@p} &6%arg 2% &eis our NEW &4&lOwner"
|
| 24 | - | |
| 24 | + | if arg 3 is "co-owner": |
| 25 | set {rank.%arg 2%} to "&9&lCo-Owner"
| |
| 26 | - | send "&c[Shop] Vous ne tenez pas %{_item}% dans la main !"
|
| 26 | + | broadcast "&6%arg 2%&e is our NEW &9&lCo-Owner" |
| 27 | - | on sign change: |
| 27 | + | if arg 3 is "co-owner": |
| 28 | - | if line 1 is "[Shop]": |
| 28 | + | set {rank.%arg 2%} to "&d&lSubOwner"
|
| 29 | - | if player don't have permission "shop.create": |
| 29 | + | broadcast "&6%arg 2%&e is our NEW &d&lSubOwner" |
| 30 | - | send "&c[Shop] Tu n'a pas la permission de créer un shop !" |
| 30 | + | if arg 3 is "co-owner": |
| 31 | - | cancel event |
| 31 | + | set {rank.%arg 2%} to "&e&lAdmin鯖"
|
| 32 | - | stop |
| 32 | + | broadcast "&6%arg 2%&e is our NEW &e&lAdmin様" |
| 33 | - | if player has permission "shop.create": |
| 33 | + | if arg 3 is "sr-admin": |
| 34 | - | if line 2 is "Buy": |
| 34 | + | set {rank.%arg 2%} to "&c&lSr. Admin"
|
| 35 | - | set {_line3} to line 3
|
| 35 | + | broadcast "{@p} &6%Arg 2% &eis our NEW &c&lSr. Admin"
|
| 36 | - | if {_line3} parsed as a number is a number:
|
| 36 | + | if arg 3 is "admin": |
| 37 | - | set {_line4} to line 4
|
| 37 | + | set {rank.%arg 2%} to "&c&lAdmin"
|
| 38 | - | if {_line4} parsed as an item is an item:
|
| 38 | + | broadcast "{@p} &6%arg 2% &eis a NEW &c&lAdmin"
|
| 39 | - | send "&a[Shop] Shop créé pour l'item %line 4% !" |
| 39 | + | if arg 3 is "sr-mod": |
| 40 | - | stop |
| 40 | + | set {rank.%arg 2%} to "&a&lSr. Mod"
|
| 41 | - | else: |
| 41 | + | broadcast "{@p} &6%arg 2% &eis our NEW &a&lSr. Mod"
|
| 42 | - | send "&c[Shop] Mauvaise syntaxe (1:[Shop] 2:Buy/Sell 3:Prix 4:ITEM " |
| 42 | + | if arg 3 is "mod": |
| 43 | - | cancel event |
| 43 | + | set {rank.%arg 2%} to "&a&lMod"
|
| 44 | - | stop |
| 44 | + | broadcast "{@p} &6%arg 2% &eis a NEW &a&lMod"
|
| 45 | if arg 3 is "helper": | |
| 46 | - | send "&c[Shop] Mauvaise syntaxe (1:[Shop] 2:Buy/Sell 3:Prix 4:ITEM " |
| 46 | + | set {rank.%arg 2%} to "&2&lHelper"
|
| 47 | - | cancel event |
| 47 | + | broadcast "{@p} &6%arg 2% &eis a NEW &2&lHelper"
|
| 48 | - | stop |
| 48 | + | if arg 3 is "h-builder": |
| 49 | - | if line 2 is "Sell": |
| 49 | + | set {rank.%arg 2%} to "&1&lH-Builder"
|
| 50 | - | set {_line3} to line 3
|
| 50 | + | broadcast "{@p} &6%arg 2% &eis our NEW &1&lHead-Builder"
|
| 51 | - | if {_line3} parsed as a number is a number:
|
| 51 | + | if arg 3 is "builder": |
| 52 | - | set {_line4} to line 4
|
| 52 | + | set {rank.%arg 2%} to "&1&lBuilder"
|
| 53 | - | if {_line4} parsed as an item is an item:
|
| 53 | + | broadcast "{@p} &6%arg 2% &eis a NEW &1&lBuilder"
|
| 54 | - | send "&a[Shop] Shop créé pour l'item %line 4% !" |
| 54 | + | if arg 3 is "member": |
| 55 | - | stop |
| 55 | + | set {rank.%arg 2%} to "&7&lMember"
|
| 56 | - | else: |
| 56 | + | if arg 1 is "list": |
| 57 | - | send "&c[Shop] Mauvaise syntaxe (1:[Shop] 2:Buy/Sell 3:Prix 4:ITEM " |
| 57 | + | send "&c--------------------------------------------" |
| 58 | - | cancel event |
| 58 | + | send "&4&lOwner &7==> &fGroup Name: &8owner" |
| 59 | - | stop |
| 59 | + | send "&9&lCo-Owner &7==> &fGroup Name: &8co-owner" |
| 60 | send "&c&lSr. Admin &7==> &fGrou Name: &8sr-admin" | |
| 61 | - | send "&c[Shop] Mauvaise syntaxe (1:[Shop] 2:Buy/Sell 3:Prix 4:ITEM " |
| 61 | + | send "&c&lAdmin &7==> &fGroup Name: &8admin" |
| 62 | - | cancel event |
| 62 | + | send "&a&lSr. Mod &7==> &fGroup Name: &8sr-mod" |
| 63 | - | stop |
| 63 | + | send "&a&lMod &7==> &fGroup Name: &8mod" |
| 64 | send "&2&lHelper &7==> &fGroup Name: &8helper" | |
| 65 | - | send "&c[Shop] Mauvaise syntaxe (1:[Shop] 2:Buy/Sell 3:Prix 4:ITEM " |
| 65 | + | send "&1&lH-Builder &7==> &fGrop Name: &8h-builder" |
| 66 | - | stop |
| 66 | + | send "&1&lBuilder &7==> &fGroup name: &8builder" |
| 67 | - | |
| 67 | + | send "&7&lMember &7==> &fGroup Name: &8member" |
| 68 | - | on break: |
| 68 | + | send "&c--------------------------------------------" |
| 69 | - | if event-block is a sign: |
| 69 | + | if arg 1 is "info": |
| 70 | - | if player don't have permission "shop.create": |
| 70 | + | send "&c--------------------------------------------" |
| 71 | - | if line 1 of event-block is "[Shop]": |
| 71 | + | send "&4Skript made by &ccarloverhamme" |
| 72 | - | cancel event |
| 72 | + | send "&4Version &c1.0" |
| 73 | - | on explode: |
| 73 | + | send "&c--------------------------------------------" |
| 74 | - | loop exploded blocks: |
| 74 | + | if arg 1 is "reset": |
| 75 | - | if loop-block is a sign: |
| 75 | + | if arg 2 is set: |
| 76 | - | if line 1 of loop-block is "[Shop]": |
| 76 | + | set {rank.%arg 2%} to "&7&lMember"
|
| 77 | - | cancel event |
| 77 | + | send "{@p} &cThe rank of &4%arg 2% &chas been reset to &7&lMember"
|
| 78 | send "{@p} &cYour rank has been reset to &7&lMember &cby &4%player%" to arg 2
| |
| 79 | else: | |
| 80 | send "{@p} &8Please specify a player!"
| |
| 81 | if arg 1 is "prefix": | |
| 82 | if arg 2 is set: | |
| 83 | if arg 3 is set: | |
| 84 | set {rank.%arg 2%} to "%coloured arg 3%"
| |
| 85 | send "{@p} &cPrefix of &4%arg 2% &chas been set to: %coloured arg-3%"
| |
| 86 | send "{@p} &cYour prefix is now changed by &4%player%&c. Prefix is now %coloured arg-3%" to arg 2
| |
| 87 | else: | |
| 88 | send "{@p} &8Please give avalid prefix!"
| |
| 89 | else: | |
| 90 | send "{@p} &8Please specify a player!" #all in 1 command
| |
| 91 | ||
| 92 | on chat: # chat format | |
| 93 | cancel event | |
| 94 | broadcast "%{rank.%player%}% &7%player% &8>> &f%message%"
| |
| 95 | ||
| 96 | on first join: # and for first join | |
| 97 | set {rank.%player%} to "&7&lMember"
| |
| 98 | ||
| 99 | on npc right click: | |
| 100 | if citizen is 2: | |
| 101 | cancel event | |
| 102 | open chest with 2 rows named "Lache ton pouce bleu !" to player | |
| 103 | wait 1 tick | |
| 104 | format slot 0 of player with red wool named "&4Abonne toi !" to be unstealable | |
| 105 | ||
| 106 | command /changeskin <number>: | |
| 107 | permission: cititest.adm | |
| 108 | permission message: Tu n'as pas les permissions ! | |
| 109 | trigger: | |
| 110 | change citizen arg 1 skin to "Miilooo" | |
| 111 | wait 5 seconds | |
| 112 | change citizen arg 1 skin to "6mOOn_" | |
| 113 | ||
| 114 | command /cititest <text>: | |
| 115 | permission: cititest.adm | |
| 116 | permission message: Tu n'as pas les permissions ! | |
| 117 | trigger: | |
| 118 | create a citizen named "%arg 1%" at location of player | |
| 119 | set {_item} to "%arg 2%"
| |
| 120 | make citizen {_n} hold {stone hoe
| |
| 121 | ||
| 122 | command /mortal <number>: | |
| 123 | trigger: | |
| 124 | make citizen arg 1 vulnerable |