Facebook
From Casino, 5 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 265
  1. command /crate [<text>] [<text>] [<player>] [<integer>]:
  2.         aliases: /c
  3.         trigger:
  4.                 if player have permission "admin.crate":
  5.                         if arg-1 is not set:
  6.                                 send "&8&l| &a&lCRATE &8&l| &7Kommando'er"
  7.                                 send " &7- &a/crate key <crate navn> <navn> <antal>"
  8.                                 send " &7- &a/crate chest <crate navn>"
  9.                         if arg 1 is not "key" or "chest":
  10.                                 send "&8&l| &a&lCRATE &8&l| &7Ukendt Kommando"
  11.                         if arg 1 is "chest":
  12.                                 if arg 2 is "iron", "gold" or "diamond":
  13.                                         send "&8&l| &a&lCRATE &8&l| &7Du fik &6%arg 2%"
  14.                                         give player 1 chest named "&6%arg 2%"
  15.                                        
  16.                                 else:
  17.                                         send "&8&l| &a&lCRATE &8&l| &7Craten findes ikke"
  18.                         if arg 1 is "key":
  19.                                 if arg 2 is "iron":
  20.                                         if arg 3 is not set:
  21.                                                 if arg 4 is a integer:
  22.                                                         if arg 4 is a integer:
  23.                                                                 give player arg-4 of 421 named "&7Iron Key"
  24.                                                                 send "&8&l| &a&lCRATE &8&l| &7Du gav dig selv en &r&lIRON &7key"
  25.                                                                 stop
  26.                                                         else:
  27.                                                                 send "&8&l| &a&lCRATE &8&l| &7Du kan kun skrive et nummer ind"
  28.                                                                 stop
  29.                                                 else:
  30.                                                         give player 1 of 421 named "&7Iron Key"
  31.                                                         stop
  32.                                         else:
  33.                                                 give player 1 of 421 named "&7Iron Key"
  34.                                                 stop
  35.                                 if arg 2 is "gold":
  36.                                         if arg 3 is not set:
  37.                                                 if arg 4 is set:
  38.                                                         if arg 4 is a integer:
  39.                                                                 give player arg-4 of 421 named "&6Gold Key"
  40.                                                                 send "&8&l| &a&lCRATE &8&l| &7Du gav dig selv en &6&lGOLD &7key"
  41.                                                                 stop
  42.                                                         else:
  43.                                                                 send "&8&l| &a&lCRATE &8&l| &7Du kan kun skrive et nummer ind"
  44.                                                                 stop
  45.                                                 else:
  46.                                                         give player 1 of 421 named "&6Gold Key"
  47.                                                         stop
  48.                                         else:
  49.                                                 give player 1 of 421 named "&6Gold Key"
  50.                                                 stop
  51.                                 if arg 2 is "diamond":
  52.                                         if arg 3 is not set:
  53.                                                 if arg 4 is set:
  54.                                                         if arg 4 is a integer:
  55.                                                                 give player arg-4 of 421 named "&3Diamond Key"
  56.                                                                 send "&8&l| &a&lCRATE &8&l| &7Du gav dig selv en &3&lDIAMOND &7key"
  57.                                                                 stop
  58.                                                         else:
  59.                                                                 send "&8&l| &a&lCRATE &8&l| &7Du kan kun skrive et nummer ind"
  60.                                                                 stop
  61.                                                 else:
  62.                                                         give player 1 of 421 named "&3Diamond Key"
  63.                                                         stop
  64.                                         else:
  65.                                                 give player 1 of 421 named "&3Diamond Key"
  66.                                                 stop
  67.                                 if arg 2 is "iron":
  68.                                         if arg 3 is online:
  69.                                                 if arg 3 is set:
  70.                                                         if arg 4 is set:
  71.                                                                 if arg 4 is a integer:
  72.                                                                         give arg-3 arg-4 of 421 named "&7Iron Key"
  73.                                                                         send "&8&l| &a&lCRATE &8&l| &7Du gav &a%arg 3% &7(&7&a%arg 4%&7) &r&lIron &7key's"
  74.                                                                         send "&8&l| &a&lCRATE &8&l| &7Du fik &7(&7&a%arg 4%&7) &r&lIron &7key's af &a%player%" to arg-3
  75.                                                                         stop
  76.                                                                 else:
  77.                                                                         send "&8&l| &a&lCRATE &8&l| &7Du skal skrive et nummer"
  78.                                                                         stop
  79.                                                         else:
  80.                                                                 give arg-3 1 of 421 named "&7Iron Key"
  81.                                                                 stop
  82.                                         else:
  83.                                                 send "&8&l| &a&lCRATE &8&l| &6%arg 3% &7er ikke online"
  84.                                                 stop
  85.                                 if arg 2 is "gold":
  86.                                         if arg 3 is online:    
  87.                                                 if arg 3 is set:
  88.                                                         if arg 4 is set:
  89.                                                                 if arg 4 is a integer:
  90.                                                                         give arg-3 arg-4 of 421 named "&6Gold Key"
  91.                                                                         send "&8&l| &a&lCRATE &8&l| &7Du gav &a%arg 3% &7(&7&a%arg 4%&7) &6Gold &7key's"
  92.                                                                         send "&8&l| &a&lCRATE &8&l| &7Du fik &7(&7&a%arg 4%&7) &6Gold &7key's af &a%player%" to arg-3
  93.                                                                         stop
  94.                                                                 else:
  95.                                                                         send "&8&l| &a&lCRATE &8&l| &7Du skal skrive et nummer"
  96.                                                                         stop
  97.                                                         else:
  98.                                                                 give arg-3 1 of 421 named "&6Gold"
  99.                                                                 stop
  100.                                         else:
  101.                                                 send "&8&l| &a&lCRATE &8&l| &6%arg 3% &7er ikke online"
  102.                                                 stop
  103.                                 if arg 2 is "diamond":
  104.                                         if arg 3 is online:
  105.                                                 if arg 3 is set:
  106.                                                         if arg 4 is set:
  107.                                                                 if arg 4 is a integer:
  108.                                                                         give arg-3 arg-4 of 421 named "&3Diamond Key"
  109.                                                                         send "&8&l| &a&lCRATE &8&l| &7Du gav &a%arg 3% &7(&7&a%arg 4%&7) &3Diamond &7key's"
  110.                                                                         send "&8&l| &a&lCRATE &8&l| &7Du fik &7(&7&a%arg 4%&7) &3Diamond &7key's af &a%player%" to arg-3
  111.                                                                         stop
  112.                                                                 else:
  113.                                                                         send "&8&l| &a&lCRATE &8&l| &7Du skal skrive et nummer"
  114.                                                                         stop
  115.                                                         else:
  116.                                                                 give arg-3 1 of 421 named "&3Diamond Key"
  117.                                                                 stop
  118.                                         else:
  119.                                                 send "&8&l| &a&lCRATE &8&l| &6%arg 3% &7er ikke online"
  120.                                                 stop
  121.  
  122.                                                                
  123. on rightclick on chest:
  124.         if {crate::iron} is location of block:
  125.                 cancel event
  126.                
  127.                 if player is holding 421 named "&7Iron Key":
  128.                         remove 1 421 named "&7Iron Key" from player's inventory
  129.                         wait 5 ticks
  130.                         chance of 0.5%:
  131.                                 add 2000 to player's balance
  132.                                 broadcast "&8&l| &a&lCRATE &8&l| &6%player% &7har vundet &6&lJACKPOT &7i &r&lIRON &7craten"
  133.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &6&lJACKPOTEN &7(&7Pris: &a2000&7)"
  134.                                 stop
  135.                         chance of 10%:
  136.                                 add 750 to player's balance
  137.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a750&7)"
  138.                                 stop
  139.                         chance of 12.5%:
  140.                                 add 500 to player's balance
  141.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a500&7)"
  142.                                 stop
  143.                         chance of 50%:
  144.                                 add 350 to player's balance
  145.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a350&7)"
  146.                                 stop
  147.                         chance of 80%:
  148.                                 add 100 to player's balance
  149.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a100&7)"
  150.                                 stop
  151.                                
  152.                 else:
  153.                         send "&8&l| &a&lCRATE &8&l| &7Du skal bruge en &r&lIron &7key"
  154.         if {crate::gold} is location of block:
  155.                 cancel event
  156.                 if player is holding 421 named "&6Gold Key":
  157.                         remove 1 421 named "&6Gold Key" from player's inventory
  158.                         wait 5 ticks
  159.                         chance of 0.5%:
  160.                                 add 5000 to player's balance
  161.                                 broadcast "&8&l| &a&lCRATE &8&l| &6%player% &7har vundet &6&lJACKPOT &7i &6&lGOLD &7craten"
  162.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &6&lJACKPOTEN &7(&7Pris: &a5000&7)"
  163.                                 stop
  164.                         chance of 10%:
  165.                                 add 1000 to player's balance
  166.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a100&7)"
  167.                                 stop
  168.                         chance of 12.5%:
  169.                                 add 750 to player's balance
  170.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a750&7)"
  171.                                 stop
  172.                         chance of 50%:
  173.                                 add 500 to player's balance
  174.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a500&7)"
  175.                                 stop
  176.                         chance of 80%:
  177.                                 add 350 to player's balance
  178.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a350&7)"
  179.                                 stop
  180.                 else:
  181.                         send "&8&l| &a&lCRATE &8&l| &7Du skal bruge en &6&lGOLD &7key"                 
  182.         if {crate::diamond} is location of block:
  183.                 cancel event
  184.                 if player is holding 421 named "&3Diamond Key":
  185.                         remove 1 421 named "&3Diamond Key" from player's inventory
  186.                         wait 5 ticks
  187.                         chance of 0.5%:
  188.                                 add 10000 to player's balance
  189.                                 broadcast "&8&l| &a&lCRATE &8&l| &6%player% &7har vundet &6&lJACKPOT &7i &3&lDIAMOND &7craten"
  190.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &6&lJACKPOTEN &7(&7Pris: &a10000&7)"
  191.                                 stop
  192.                         chance of 10%:
  193.                                 add 2500 to player's balance
  194.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a2500&7)"
  195.                                 remove 1 421 named "&3Diamond Key" from player's inventory
  196.                                 stop
  197.                         chance of 12.5%:
  198.                                 add 950 to player's balance
  199.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a7950&7)"
  200.                                 stop
  201.                         chance of 50%:
  202.                                 add 750 to player's balance
  203.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a750&7)"
  204.                                 stop
  205.                         chance of 80%:
  206.                                 add 500 to player's balance
  207.                                 send "&8&l| &a&lCRATE &8&l| &7Du vandt &7(&7Pris: &a500&7)"
  208.                                 stop
  209.                 else:
  210.                         send "&8&l| &a&lCRATE &8&l| &7Du skal bruge en &3&lDIAMOND &7key"                              
  211. on place of chest:
  212.         if player has permission "admin.crate":
  213.                 if player's tool is chest named "&6Iron":
  214.                         set {crate::iron} to location of block
  215.                         send "&8&l| &a&lCRATE &8&l| &2Iron &7craten er sat"
  216.                 else:
  217.                         if player's tool is chest named "&6Gold":
  218.                                 set {crate::gold} to location of block
  219.                                 send "&8&l| &a&lCRATE &8&l| &2Gold &7craten er sat"
  220.                         else:
  221.                                 if player's tool is chest named "&6Diamond":
  222.                                         set {crate::diamond} to location of block
  223.                                         send "&8&l| &a&lCRATE &8&l| &2Diamond &7craten er sat"
  224.         else:
  225.                 send "&8&l| &a&lCRATE &8&l| &7Nægtet adgang"
  226.                
  227.                
  228. on leftclick on chest:
  229.         if player has permission "admin.crate":
  230.                 if {crate::iron} is location of block:
  231.                         if player is sneaking:
  232.                                 delete {crate::iron}
  233.                                 send "&8&l| &a&lCRATE &8&l| &7Du har slettet &r&lIRON &7craten"
  234.                 if {crate::gold} is location of block:
  235.                         if player is sneaking:
  236.                                 delete {crate::gold}   
  237.                                 send "&8&l| &a&lCRATE &8&l| &7Du har slettet &6&lGOLD &7craten"
  238.                 if {crate::diamond} is location of block:
  239.                         if player is sneaking:
  240.                                 delete {crate::diamond}
  241.                                 send "&8&l| &a&lCRATE &8&l| &7Du har slettet &3&lDIAMOND &7craten"
  242.         if {crate::diamond} is location of block:
  243.                 cancel event
  244.                 open chest with 1 rows named "&3Diamond &6Chancer" to player
  245.                 format slot 0 of player with 166 named "&4Luk" to close
  246.                 format slot 1 of player with 166 named "&4Luk" to close
  247.                 format slot 7 of player with 166 named "&4Luk" to close
  248.                 format slot 8 of player with 166 named "&4Luk" to close
  249.                 format slot 4 of player with emerald named "&610000DK" with lore "&7Chancer: &60.5%%" to be unstealable
  250.                 format slot 3 of player with paper named "&6900DK" with lore "&7Chancer: &680%%" to be unstealable
  251.                 format slot 5 of player with paper named "&62500DK" with lore "&7Chancer: &650%%" to be unstealable
  252.                 format slot 2 of player with paper named "&6500DK" with lore "&7Chancer: &685%%" to be unstealable
  253.                 format slot 6 of player with paper named "&6750DK" with lore "&7Chancer: &612.5%%" to be unstealable
  254.         if {crate::gold} is location of block:
  255.                 cancel event
  256.                 open chest with 1 rows named "&6Gold &6Chancer" to player
  257.                 format slot 0 of player with 166 named "&4Luk" to close
  258.                 format slot 1 of player with 166 named "&4Luk" to close
  259.                 format slot 7 of player with 166 named "&4Luk" to close
  260.                 format slot 8 of player with 166 named "&4Luk" to close
  261.                 format slot 4 of player with emerald named "&65000DK" with lore "&7Chancer: &60.5%%" to be unstealable
  262.                 format slot 3 of player with paper named "&61000DK" with lore "&7Chancer: &680%%" to be unstealable
  263.                 format slot 5 of player with paper named "&6750DK" with lore "&7Chancer: &650%%" to be unstealable
  264.                 format slot 2 of player with paper named "&6500DK" with lore "&7Chancer: &685%%" to be unstealable
  265.                 format slot 6 of player with paper named "&6350DK" with lore "&7Chancer: &650%%" to be unstealable
  266.         if {crate::iron} is location of block:
  267.                 cancel event
  268.                 open chest with 1 rows named "&r&lIron &6Chancer" to player
  269.                 format slot 0 of player with 166 named "&4Luk" to close
  270.                 format slot 1 of player with 166 named "&4Luk" to close
  271.                 format slot 7 of player with 166 named "&4Luk" to close
  272.                 format slot 8 of player with 166 named "&4Luk" to close
  273.                 format slot 4 of player with emerald named "&62000DK" with lore "&7Chancer: &60.5%%" to be unstealable
  274.                 format slot 3 of player with paper named "&6750DK" with lore "&7Chancer: &680%%" to be unstealable
  275.                 format slot 5 of player with paper named "&6500DK" with lore "&7Chancer: &650%%" to be unstealable
  276.                 format slot 2 of player with paper named "&6100DK" with lore "&7Chancer: &685%%" to be unstealable
  277.                 format slot 6 of player with paper named "&6350DK" with lore "&7Chancer: &650%%" to be unstealable             
  278.                
  279.  
  280.                        
  281.                        
  282.