Advertisement
VacrosDK

Untitled

Dec 14th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. command /crate [<text>] [<text>] [<text>]:
  2. permission: Casino.crate
  3. permission message: &cDu har ikke adgang til denne command.
  4. trigger:
  5. if arg-1 is not set:
  6. send "&8---------[&4Casino&8]---------"
  7. send "&e/crate key &7[&eType&7] [&eAntal&7]"
  8. send "&7Giver dig en casino key."
  9. send "&7"
  10. send "&e /crate kiste &7[&eType&7]"
  11. send "&7Giver dig en Casino kiste til dine keys."
  12. send "&7"
  13. send "&e /crate keys"
  14. send "&7Viser dig alle de forskellige key typer"
  15. send "&7"
  16. send "&7"
  17. send "&7"
  18. send "&7"
  19. send "&7"
  20. send "&7"
  21. send "&7"
  22. send "&7"
  23. send "&7"
  24.  
  25.  
  26.  
  27.  
  28.  
  29. if arg-1 is "key":
  30. send "&8[&4Casino&8]: &c/crate key [type] [antal]"
  31. send "&e For at se keys: &6/keys"
  32.  
  33.  
  34. if arg-1 is "key":
  35. if arg-2 is "cdiamond":
  36. if arg-3 is "1":
  37. give player 1 2267 named "&bDiamond Key &7[C]"
  38.  
  39. if arg-1 is "key":
  40. if arg-2 is "cemerald":
  41. if arg-3 is "1":
  42. give player 1 2260 named "&aEmerald Key &7[C]"
  43.  
  44. if arg-1 is "key":
  45. if arg-2 is "cInfinity":
  46. if arg-3 is "1":
  47. give player 1 2259 named "&cInfinity Key &7[C]"
  48. if arg-1 is "key":
  49. if arg-2 is "bdiamond":
  50. if arg-3 is "1":
  51. give player 1 2267 named "&bDiamond Key &7[B]"
  52.  
  53. if arg-1 is "key":
  54. if arg-2 is "bemerald":
  55. if arg-3 is "1":
  56. give player 1 2260 named "&aEmerald Key &7[B]"
  57.  
  58. if arg-1 is "key":
  59. if arg-2 is "bInfinity":
  60. if arg-3 is "1":
  61. give player 1 2256 named "&cInfinity Key &7[B]"
  62.  
  63. if arg-1 is "kiste":
  64. if arg-2 is "CInfinity":
  65. give player chest named "&cInfinity &7Crate"
  66.  
  67. if arg-1 is "kiste":
  68. if arg-2 is "CDiamond":
  69. give player chest named "&bDiamond &7Crate"
  70.  
  71. if arg-1 is "kiste":
  72. if arg-2 is "CEmerald":
  73. give player chest named "&aEmerald &7Crate"
  74.  
  75. if arg-1 is "keys":
  76. send "&8[&4Casino&8] &6Keys:"
  77. send "&7"
  78. send "&eCDiamond, CEmerald, CInfinity,"
  79. send "&eBDiamond, BEmerald, BInfinity,"
  80. send "&eADiamond, AEmerald, AInfinity"
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88. on rightclick on chest:
  89. if inventory name of the event-block contains "&cInfinity &7Crate":
  90. if player's held item is 2259 named "&cInfinity Key &7[C]":
  91. open chest with 3 rows named "&cInfinity Key" to player
  92. format slot 0 of player with Red Stained Glass Pane to be unstealable
  93.  
  94.  
  95. else:
  96. send "&cDu skal bruge en &cInfinity Key for at åbne denne crate!"
  97. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement