niccosaint

ncOS WIP (Skript)

Dec 5th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. variables:
  2. {ncos.%player%.battery} = 5
  3. {ncos.%player%.race.state} = false
  4. {ncos.%player%.race.opponent} = "none"
  5. {ncos.%player%.race.progress} = 0
  6. {ncos.%player%.fame} = 25
  7. {ncos.%player%.mode} = 0
  8. {ncos.%player%.confirm} = 0
  9. {ncos.enabled} = true
  10.  
  11. options:
  12. tag: &7[&6&lnc&3&lOS&7]
  13. range.race: 100
  14. range.hack: 20
  15. fame.multi: 5
  16.  
  17. every second:
  18. loop all players:
  19. if loop-player's tool is book:
  20. if {ncos.%loop-player%.battery} > 0:
  21. if {ncos.%loop-player%.battery} > 1:
  22. if {ncos.%loop-player%.battery} > 2:
  23. if {ncos.%loop-player%.battery} > 3:
  24. if {ncos.%loop-player%.battery} > 4:
  25. if {ncos.%loop-player%.battery} >= 5:
  26. set the name of loop-player's tool to "&6Smartphone &7[&2||||||||||&7}"
  27. else:
  28. set the name of loop-player's tool to "&6Smartphone &7[&2||||||||||&7}"
  29. else:
  30. set the name of loop-player's tool to "&6Smartphone &7[&2||||||||&0||&7}"
  31. else:
  32. set the name of loop-player's tool to "&6Smartphone &7[&2||||||&0||||&7}"
  33. else:
  34. set the name of loop-player's tool to "&6Smartphone &7[&6||||&0||||||&7}"
  35. else:
  36. set the name of loop-player's tool to "&6Smartphone &7[&4||&0||||||||&7}"
  37. else:
  38. set the name of loop-player's tool to "&6Smartphone &7[&0||||||||||&7}"
  39. if {ncos.%loop-player%.battery} > 5:
  40. set {ncos.%loop-player%.battery} to 5
  41.  
  42. on rightclick:
  43. if player's tool is book:
  44. if {ncos.%player%.mode} = 0:
  45. set {ncos.%player%.mode} to 1
  46. send "&3Tryb: &5Sprawdz poziom rozglosu"
  47. else if {ncos.%player%.mode} = 1:
  48. set {ncos.%player%.mode} to 2
  49. send "&3Tryb: &3Wyscig online"
  50. else if {ncos.%player%.mode} = 2:
  51. set {ncos.%player%.mode} to 3
  52. send "&3Tryb: &4&lHAKUJ"
  53. else if {ncos.%player%.mode} = 3:
  54. set {ncos.%player%.mode} to 0
  55. send "&3Tryb: &7&lBRAK"
  56.  
  57. on leftclick:
  58. if player's tool is book:
  59. if {ncos.%player%.battery} >= 1:
  60. if {ncos.%player%.mode} = 3:
  61. if targeted block is command block:
  62. if distance between player and targeted block <= {@range.hack}:
  63. if {ncos.%player%.fame} >= 5000:
  64. chance of ({ncos.%player%.fame}/1000)%:
  65. send "{@tag} &3Zhakowano serwer"
  66. add -0.05 to {ncos.%player%.battery}
  67. loop 15 times:
  68. send "&3&kfbhdwofhwdefinwdfiphwedfnejipofdeqi" to console
  69. wait 2 ticks
  70. else:
  71. add -0.02 to {ncos.%player%.battery}
  72.  
  73. command /ncos [<text>] [<player>] [<number>]:
  74. trigger:
  75. if arg 1 is not set:
  76. send "&3&m--------------&3[ &6&lnc&3&lOS by niccosaint &3]&3&m--------------"
  77. send "&b<> - Wymagane [] - Opcjonalnie"
  78. send "&2Dla wszystkich &6Dla VIP &4Dla adminow &0Tylko Konsola"
  79. send " "
  80. send "&2/ncos settings &b- Ustawienia"
  81. send "&2/ncos race <nick> &b- Wyzwij gracza na pojedynek online"
  82. send "&2/ncos plum <nick> &b- Zglos gracza o hacki"
  83. send "&6/ncos refill &b- Natychmiasowe naladowanie baterii"
  84. send "&4/ncos give <nick> <1(smartfon)|2(klucz)> &b- Otrzymaj wazne przedmioty"
  85. send "&4/ncos modify <nick> <ilosc> &b- Zmodyfikuj graczowi poziom duszy"
  86. send "&4/ncos set <nick> <ilosc> &b- Ustaw graczowi poziom duszy"
  87. send "&0/ncos reset <nick> &b- Wyzeruj graczowi statystyki"
  88. if arg 1 is "settings":
  89. send "&5Poziom rozglosu: %{ncos.%player%.fame}% pkt."
  90. send "&2Poziom baterii: %{ncos.%player%.battery}% / 5 pkt."
  91. if arg 1 is "race":
  92. if arg 2 is set:
  93. if {ncos.%sender%.comfirm} = 0:
  94. if {ncos.%arg 2%.race.state} is false:
  95. set {_chance.%arg 2%} to ({ncos.%arg 2%.fame}/1000)
  96. set {_chance.%sender%} to (100/({ncos.%arg 2%.fame}/1000))
  97. send "&5&n==========&5[ &d&lWYZWANIE ONLINE &5]&5&n=============="
  98. send "&6Przeciwnik: %arg 2%"
  99. send "&5Jego poziom rozglosu: %{ncos.%arg 2%.fame}%"
  100. send "&2Szansa wygranej: %{_chance.%sender%}% %"
  101. send "&2&lWpisz ponownie komende aby potwierdzic"
  102. set {ncos.%sender%.comfirm} to 1
  103. else if {ncos.%sender%.comfirm} = 1:
  104. set {ncos.%sender%.comfirm} to 0
  105. set {ncos.%sender%.race.state} to true
  106. set {ncos.%arg 2%.race.state} to true
  107. set {ncos.%sender%.race.opponent} to arg 2
  108. set {ncos.%arg 2%.race.opponent} to sender
  109. send "{@tag} &5Wyzwanie rozpoczete. Jego coordy (+/- 50m) %arg 2 location%"
  110. send "&5&n==========&5[ &d&lWYZWANIE ONLINE &5]&5&n==============" to arg 2
  111. send "&6Przeciwnik: %sender%" to arg 2
  112. send "&5Jego poziom rozglosu: %{ncos.%sender%.fame}%" to arg 2
  113. send "&2Szansa jego wygranej: %{_chance.%sender%}% %" to arg 2
  114. send "&7On Cie juz szuka..." to arg 2
Advertisement
Add Comment
Please, Sign In to add comment