Facebook
From Gracious Hamster, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 194
  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.         set {_amount} to 0
  70.         loop all items in player's inventory:
  71.             if loop-item is stone:
  72.                 set {_n} to "%loop-item%"
  73.                 set {_t::*} to {_n} split at " "
  74.                 if {_t::2} is not set:
  75.                     add 1 to {_amount}
  76.                 else:
  77.                     set {_final} to {_t::1} parsed as an integer
  78.                     add {_final} to {_amount}
  79.         if {_amount} is bigger than 15:
  80.             remove 16 stone from player's inventory
  81.             add 5 to {tokens.%player%}
  82.             send player title "&7You sold &aStone &7for" with subtitle "&a$50 Dollars!" for 3 seconds
  83.         else:
  84.             message "&7You don't have enough &aIron Ingots &7to sell!"
  85.                
  86. command /sellcoal12:
  87.     trigger:
  88.         set {_amount} to 0
  89.         loop all items in player's inventory:
  90.             if loop-item is coal:
  91.                 set {_n} to "%loop-item%"
  92.                 set {_t::*} to {_n} split at " "
  93.                 if {_t::2} is not set:
  94.                     add 1 to {_amount}
  95.                 else:
  96.                     set {_final} to {_t::1} parsed as an integer
  97.                     add {_final} to {_amount}
  98.         if {_amount} is bigger than 15:
  99.             remove 16 coal from player's inventory
  100.             add 25 to {tokens.%player%}
  101.             send player title "&7You sold &aCoal &7for" with subtitle "&a$50 Dollars!" for 3 seconds
  102.         else:
  103.             message "&7You don't have enough &aIron Ingots &7to sell!"
  104.                                
  105. command /selliron12:
  106.     trigger:
  107.         set {_amount} to 0
  108.         loop all items in player's inventory:
  109.             if loop-item is iron ingot:
  110.                 set {_n} to "%loop-item%"
  111.                 set {_t::*} to {_n} split at " "
  112.                 if {_t::2} is not set:
  113.                     add 1 to {_amount}
  114.                 else:
  115.                     set {_final} to {_t::1} parsed as an integer
  116.                     add {_final} to {_amount}
  117.         if {_amount} is bigger than 15:
  118.             remove 16 iron ingot from player's inventory
  119.             add 100 to {tokens.%player%}
  120.             send player title "&7You sold &aIron &7for" with subtitle "&a$50 Dollars!" for 3 seconds
  121.         else:
  122.             message "&7You don't have enough &aIron Ingots &7to sell!"
  123.                        
  124. command /sellgold12:
  125.     trigger:
  126.         set {_amount} to 0
  127.         loop all items in player's inventory:
  128.             if loop-item is gold ingot:
  129.                 set {_n} to "%loop-item%"
  130.                 set {_t::*} to {_n} split at " "
  131.                 if {_t::2} is not set:
  132.                     add 1 to {_amount}
  133.                 else:
  134.                     set {_final} to {_t::1} parsed as an integer
  135.                     add {_final} to {_amount}
  136.         if {_amount} is bigger than 15:
  137.             remove 16 gold ingot from player's inventory
  138.             add 50 to {tokens.%player%}
  139.             send player title "&7You sold &aGold &7for" with subtitle "&a$50 Dollars!" for 3 seconds
  140.         else:
  141.             message "&7You don't have enough &aGold Ingots &7to sell!"
  142.                        
  143. command /selldiamond12:
  144.     trigger:
  145.         set {_amount} to 0
  146.         loop all items in player's inventory:
  147.             if loop-item is diamond:
  148.                 set {_n} to "%loop-item%"
  149.                 set {_t::*} to {_n} split at " "
  150.                 if {_t::2} is not set:
  151.                     add 1 to {_amount}
  152.                 else:
  153.                     set {_final} to {_t::1} parsed as an integer
  154.                     add {_final} to {_amount}
  155.         if {_amount} is bigger than 15:
  156.             remove 16 diamond from player's inventory
  157.             add 500 to {tokens.%player%}
  158.             send player title "&7You sold &aDiamond &7for" with subtitle "&a$500 Dollars!" for 3 seconds
  159.         else:
  160.             message "&7You don't have enough &aDiamonds &7to sell!"
  161.                        
  162. command /sellemerald12:
  163.     trigger:
  164.         set {_amount} to 0
  165.         loop all items in player's inventory:
  166.             if loop-item is emerald:
  167.                 set {_n} to "%loop-item%"
  168.                 set {_t::*} to {_n} split at " "
  169.                 if {_t::2} is not set:
  170.                     add 1 to {_amount}
  171.                 else:
  172.                     set {_final} to {_t::1} parsed as an integer
  173.                     add {_final} to {_amount}
  174.         if {_amount} is bigger than 15:
  175.             remove 16 emerald from player's inventory
  176.             add 250 to {tokens.%player%}
  177.             send player title "&7You sold &aEmerald &7for" with subtitle "&a$500 Dollars!" for 3 seconds
  178.         else:
  179.             message "&7You don't have enough &aEmerald &7to sell!"