Facebook
From Wet Peccary, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 183
  1. command /contract [<text>] [<player>] [<text>] [<text>]::
  2.         trigger:
  3.                 if arg-1 is "help":
  4.                         send "&7/contract give <player> <type> <amount>"
  5.                         send "&7/contract accept <player>"
  6.                         send "&7/contract deny <player>"
  7.                 if arg-1 is "give":
  8.                         send "&7You have sent a &a%arg-3% &7contract to &a%arg-2%&7!"
  9.                         send "&7You have recieved a &a%arg-3% &7contract from &a%player% &7for &a%arg-4% &7tokens!" to arg-2
  10.                         send "&7/contract accept <player> <type> <amount>" to arg-2
  11.                 if arg-1 is "accept":
  12.                         send "&7You have accepted &a%arg-2%&7's contract for &a%arg-3%&7!"
  13.                         remove arg-4 from {tokens.%player%}
  14.                         send "&a%player% &7has accepted &ayour &7contract!" to arg-2
  15.                         add arg-4 to {tokens.%arg-2%}
  16.                 if arg-1 is "deny":
  17.                         send "&7You have &adenied this contract!"
  18.                         stop
  19.                        
  20. command /pay [<player>] <text>]:
  21.         trigger:
  22.                 loop all players:
  23.                         if arg-1 is not set:
  24.                                 if arg-2 is not set:
  25.                                         send "&cIncorrect usage"
  26.                                         wait 2 seconds
  27.                                         send ""
  28.                                         send "&7The correct usage is &c/pay <player> <amount>"
  29.                         if arg-1 is set:
  30.                                 if arg-2 is set:
  31.                                         if arg-2 is less than {tokens.%loop-player%}"
  32.                                                 send "&7You don't have enough &ctokens&7! &8(%{tokens.%loop-player%}%&8)"
  33.                                         if arg-2 is more than {tokens.%loop-player%}
  34.                                                 remove arg-2 from {tokens.%loop-player%}
  35.                                                 add arg-2 to {tokens.%arg-1%}
  36.                                                 send "&7You have paid &c%arg-1% %arg-2% &7tokens!"
  37.                                                 send "&c%player% &7has paid you &c%arg-2% &7tokens!" to arg-1
  38.                                                 stop
  39.                                                
  40. every second in "world":
  41.         loop all players:
  42.                 wipe loop-player's sidebar
  43.                 set name of sidebar of loop-player to "&eTokens: &8| &e%{tokens.%loop-player%}%"
  44.                 set score "&c&m---------------" in sidebar of loop-player to 14
  45.                 set score "&7" in sidebar of loop-player to 13
  46.                 set score "  &ePlayer: &8» &e%loop-player%" in sidebar of loop-player to 12
  47.                 set score "  &eKills: &8» &e%{kills.%loop-player%}%" in sidebar of loop-player to 11
  48.                 set score "  &eDeaths &8» &e%{deaths.%loop-player%}%" in sidebar of loop-player to 10
  49.                 set score "  &ePlaytime &8» &e%{playtime.%loop-player%}%" in sidebar of loop-player to 9
  50.                 set score "&f" in sidebar of loop-player to 8
  51.                 set score "&7&oyeetblue.minehut.gg" in sidebar of loop-player to 7
  52.                 set score "&c&m---------------" in sidebar of loop-player to 6
  53.  
  54.  
  55. command /sell:
  56.         trigger:
  57.                 open chest with 5 row named "&cTokenSell" to player
  58.                 set {Inventory.%player%.Open} to true
  59.                 format slot 1 of player with diamond named "&aSell: Diamond" with lore "&7Value: &a$500" to close then run [make player execute command "/selldiamond12"]      
  60.                 format slot 2 of player with emerald named "&aSell: Emerald" with lore "&7Value: &a$250" to close then run [make player execute command "/sellemerald12"]
  61.                 format slot 3 of player with iron ingot named "&aSell: Iron Ingot" with lore "&7Value: &a$100" to close then run [make player execute command "/selliron12"]
  62.                 format slot 4 of player with gold ingot named "&aSell: Gold Ingot" with lore "&7Value: &a$50" to close then run [make player execute command "/sellgold12"]
  63.                 format slot 5 of player with coal named "&aSell: Coal" with lore "&7Value: &a$25" to close then run [make player execute command "/sellcoal12"]
  64.                 format slot 6 of player with stone named "&aSell: Stone" with lore "&7Value: &a$5" to close then run [make player execute command "/sellstone12"]
  65.                 format slot 12 of player with diamond block named "&aMade by: %player%" with lore "&7" to be unstealable
  66.                
  67. command /sellstone12:
  68.     trigger:
  69.         loop all items in player's inventory:
  70.             if loop-item is stone:
  71.                                 open chest with 1 row named "&cHow many items?" to player
  72.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemstone"]
  73.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemstone"]
  74.                                        
  75. command /1itemstone:
  76.         trigger:
  77.                 loop all items in player's inventory:
  78.                         if loop-item is stone:
  79.                                 remove 1 stone from player's inventory
  80.                                 add 5 to {tokens.%player%}
  81.                                 send player title "&7You sold &aStone &7for" with subtitle "&a$5 Dollars!" for 3 seconds
  82.                                
  83. command /10itemstone:
  84.         trigger:
  85.                 loop all items in player's inventory:
  86.                         if loop-item is stone:
  87.                                 remove 10 stone from player's inventory
  88.                                 add 50 to {tokens.%player%}
  89.                                 send player title "&7You sold &aStone &7for" with subtitle "&a$50 Dollars!" for 3 seconds
  90.                
  91. command /sellcoal12:
  92.     trigger:
  93.         loop all items in player's inventory:
  94.             if loop-item is coal:
  95.                                 open chest with 1 row named "&cHow many items?" to player
  96.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemcoal"]
  97.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemcoal"]
  98.                                        
  99. command /1itemcoal:
  100.         trigger:
  101.                 loop all items in player's inventory:
  102.                         if loop-item is coal:
  103.                                 remove 1 coal from player's inventory
  104.                                 add 25 to {tokens.%player%}
  105.                                 send player title "&7You sold &aCoal &7for" with subtitle "&a$25 Dollars!" for 3 seconds
  106.                                
  107. command /10itemcoal:
  108.         trigger:
  109.                 loop all items in player's inventory:
  110.                         if loop-item is coal:
  111.                                 remove 10 coal from player's inventory
  112.                                 add 250 to {tokens.%player%}
  113.                                 send player title "&7You sold &aCoal &7for" with subtitle "&a$250 Dollars!" for 3 seconds
  114.                                
  115. command /selliron12:
  116.     trigger:
  117.         loop all items in player's inventory:
  118.             if loop-item is iron ingot:
  119.                                 open chest with 1 row named "&cHow many items?" to player
  120.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemiron"]
  121.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemiron"]
  122.                                        
  123. command /10itemiron:
  124.         trigger:
  125.                 loop all items in player's inventory:
  126.                         if loop-item is iron ingot:
  127.                                 remove 10 iron ingot from player's inventory
  128.                                 add 1000 to {tokens.%player%}
  129.                                 send player title "&7You sold &aIron &7for" with subtitle "&a$1000 Dollars!" for 3 seconds
  130.                                
  131. command /1itemiron:
  132.         trigger:
  133.                 loop all items in player's inventory:
  134.                         if loop-item is iron ingot:
  135.                                 remove 1 iron ingot from player's inventory
  136.                                 add 100 to {tokens.%player%}
  137.                                 send player title "&7You sold &aIron &7for" with subtitle "&a$100 Dollars!" for 3 seconds
  138.  
  139.                        
  140. command /sellgold12:
  141.     trigger:
  142.         loop all items in player's inventory:
  143.             if loop-item is gold ingot:
  144.                                 open chest with 1 row named "&cHow many items?" to player
  145.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemgold"]
  146.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemgold"]
  147.                                        
  148. command /1itemgold:
  149.         trigger:
  150.                 loop all items in player's inventory:
  151.                         if loop-item is gold ingot:
  152.                                 remove 1 gold ingot from player's inventory
  153.                                 add 50 to {tokens.%player%}
  154.                                 send player title "&7You sold &aGold &7for" with subtitle "&a$50 Dollars!" for 3 seconds
  155.                                
  156. command /10itemgold:
  157.         trigger:
  158.                 loop all items in player's inventory:
  159.                         if loop-item is gold ingot:
  160.                                 remove 10 gold ingot from player's inventory
  161.                                 add 500 to {tokens.%player%}
  162.                                 send player title "&7You sold &aGold &7for" with subtitle "&a$500 Dollars!" for 3 seconds
  163.                                
  164. command /selldiamond12:
  165.     trigger:
  166.         loop all items in player's inventory:
  167.             if loop-item is diamond:
  168.                                 open chest with 1 row named "&cHow many items?" to player
  169.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itemdiamond"]
  170.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itemdiamond"]
  171.                        
  172. command /10itemdiamond:
  173.     trigger:
  174.                 loop all items in player's inventory:
  175.                         if loop-item is diamond:
  176.                                 remove 10 diamond from player's inventory
  177.                                 add 5000 to {tokens.%player%}
  178.                                 send player title "&7You sold &aDiamond &7for" with subtitle "&a$5000 Dollars!" for 3 seconds
  179.                                
  180. command /1itemdiamond:
  181.     trigger:
  182.                 loop all items in player's inventory:
  183.                         if loop-item is diamond:
  184.                                 remove 1 diamond from player's inventory
  185.                                 add 500 to {tokens.%player%}
  186.                                 send player title "&7You sold &aDiamond &7for" with subtitle "&a$500 Dollars!" for 3 seconds
  187.                        
  188. command /sellemerald12:
  189.     trigger:
  190.         loop all items in player's inventory:
  191.             if loop-item is emerald:
  192.                                 open chest with 1 row named "&cHow many items?" to player
  193.                     format slot 1 of player with lever named "&aItems: 1" with lore "&7Click to choose!" to close then run [make player execute command "/1itememerald"]
  194.                                         format slot 2 of player with grass named "&aItems: 10" with lore "&7Click to choose!" to close then run [make player execute command "/10itememerald"]
  195.                                        
  196. command /10itememerald:
  197.     trigger:
  198.                 loop all items in player's inventory:
  199.                         if loop-item is emerald:
  200.                                 remove 10 emerald from player's inventory
  201.                                 add 2500 to {tokens.%player%}
  202.                                 send player title "&7You sold &aEmerald &7for" with subtitle "&a$2500 Dollars!" for 3 seconds
  203.                                
  204. command /give [<player>] [<text>]:
  205.         trigger:
  206.                 if arg-1 is not set:
  207.                         if arg-2 is not set:
  208.                                 send "&7Correct format: &c/give <player> <item>"
  209.                 if arg-1 is set:
  210.                         if arg-2 is set:
  211.                                 give arg-1 1 arg-2
  212.                                 stop
  213.                                
  214. command /1itemdiamond:
  215.     trigger:
  216.                 loop all items in player's inventory:
  217.                         if loop-item is emerald:
  218.                                 remove 1 emerald from player's inventory
  219.                                 add 250 to {tokens.%player%}
  220.                                 send player title "&7You sold &aEmerald &7for" with subtitle "&a$250 Dollars!" for 3 seconds