Advertisement
fleft17

Untitled

Dec 6th, 2014
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. # created by Climbed
  2. # skripted by yours truly, Fleft
  3. # variables:
  4.  
  5. # {NineSlots.Enabled} : is scenario enabled?
  6.  
  7. options:
  8. On: §8[§fNineSlots >>§a Enabled >> &e%command sender%§8]
  9. Off: §8[§fNineSlots >>§c Disabled >> &e%command sender%§8]
  10.  
  11. command /nineslots <text>:
  12. permission: skript.nineslots
  13. usage: /nineslots on/off/toggle
  14. trigger:
  15. if arg-1 is "on" or "enable":
  16. set {NineSlots.Enabled} to true
  17. broadcast "{@On}"
  18. else if arg-1 is "off" or "disable":
  19. delete {NineSlots.Enabled}
  20. broadcast "{@Off}"
  21. else if arg-1 is "toggle":
  22. if {NineSlots.Enabled} is set:
  23. command sender command "/nineslots off"
  24. stop trigger
  25. else:
  26. command sender command "/nineslots on"
  27. stop trigger
  28. on pickup:
  29. {NineSlots.Enabled} is set
  30. (size of (items in event-player's inventory)) is greater than 8
  31. number of event-item in player's inventory is greater than or equal to (max stack size of event-item):
  32. cancel the event
  33. player's inventory does not contain event-item:
  34. cancel the event
  35.  
  36. every second:
  37. {NineSlots.Enabled} is set
  38. loop all players:
  39. loop items in loop-player's inventory:
  40. add 1 to {_Size}
  41. {_Size} is greater than 9
  42. drop loop-item at location 0.3 above loop-player
  43. set loop-item to air
  44. delete {_Size}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement