Ghaz-ranka

Untitled

Dec 17th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. script("Join") {
  2. trigger("playerjoin")
  3.  
  4. if($("player.LumberEXP." + @player("name")) == null) {
  5. @console("script pubvars add player.LumberEXP." + @player("name") + " number")
  6. }
  7. if($("player.PlotPoles." + @player("name")) == null) {
  8. @console("script pubvars add player.PlotPoles." + @player("name") + " array")
  9. }
  10. }
  11.  
  12. script("Explosion Test") {
  13. trigger("explosion")
  14. //@broadcast(@explosion("origin"))
  15. //@broadcast("&1Script Line " + script("line") + ": &f" + "You canceled an explosion" + @explosion("origin"))
  16. @cancel()
  17. }
  18.  
  19. script("Block Interact") {
  20. trigger("interactBlock")
  21. ////////////////////////////////////////////////////////////////////////////////
  22. ////////////////////DEBUG MESSAGE///////////////////////////////////////////////
  23. ////////////////////////////////////////////////////////////////////////////////
  24. debug = "&1Script Line " + #script("line") + ": &f"
  25. ////////////////////////////////////////////////////////////////////////////////
  26. ///////////////////ENTITY LOCATION FINDER///////////////////////////////////////
  27. ////////////////////////////////////////////////////////////////////////////////
  28. entitylocationarray = @location("array", @entity("location"))
  29. entityX = entitylocationarray[2]
  30. entityY = entitylocationarray[3]
  31. entityZ = entitylocationarray[4]
  32. ////////////////////////////////////////////////////////////////////////////////
  33. ///////////////////BLOCK LOCATION FINDER////////////////////////////////////////
  34. ////////////////////////////////////////////////////////////////////////////////
  35. blocklocationarray = @location(<"block">, "array")
  36. blockX = blocklocationarray[2]
  37. blockY = blocklocationarray[3]
  38. blockZ = blocklocationarray[4]
  39. ////////////////////////////////////////////////////////////////////////////////
  40. @broadcast(debug + entityX + "; " + blockX)
  41. }
  42.  
  43. script("Variable Editor Command") {
  44. trigger("command")
  45. command("variable")
  46. @cancel()
  47. arguments = split(<"Arguments">, " ")
  48. if (arguments[1] ~ "list"){
  49. @send("&1" + arguments[2] + ":&f " + string($(arguments[1])))
  50. }
  51. if(@player("name") ~ "Ghaz_ranka"){
  52. arguments = split(<"Arguments">, " ")
  53. if (arguments[1] ~ "add"){
  54. $(arguments[2]) += arguments[3]
  55. @send("Added: " + arguments[3])
  56. }
  57. if (arguments[1] ~ "remove"){
  58. remove($(arguments[2]), arguments[3])
  59. @send("Removed: " + string($(arguments[2])))
  60. }
  61.  
  62. }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment