@name Mass Hopper
@inputs 
@outputs N1 N2 N3 N4 N5 N6 N7 N8 N9 N10
@persist Num
@trigger all
Time=10
interval(Time)

if (first()) {Num = 0}

Chat = entity():owner():lastSaid()
When = entity():owner():lastSaidWhen()
C = Chat:find("Hop") 
K = (curtime() - entity():owner():lastSaidWhen()) < Time*2/1000
if (C&K&Chat:find("<")) { Find=Chat:explode("<") Num = Find:string(2):toNumber() print(toString(Num))}


Jump =vec(0,0,Num)
Origin = entity():pos() +vec(0,0,10)
O = -50
S = 5
O1 = vec(0,0,O+S*1)
O2 = vec(0,0,O+S*2)
O3 = vec(0,0,O+S*3)
O4 = vec(0,0,O+S*4)
O5 = vec(0,0,O+S*5)
O6 = vec(0,0,O+S*6)
O7 = vec(0,0,O+S*7)
O8 = vec(0,0,O+S*8)
O9 = vec(0,0,O+S*9)
O10 = vec(0,0,O+S*10)
Ang = entity():right()
Range = 1000
findByClass("player")
findByClass("npc_")
Nons = findToArray()
findSortByDistance(entity():pos())
rangerFilter(Nons:entity(1))
rangerFilter(Nons:entity(2))
rangerFilter(Nons:entity(3))
rangerFilter(Nons:entity(4))
rangerFilter(Nons:entity(5))
rangerFilter(Nons:entity(6))
rangerFilter(Nons:entity(7))
rangerFilter(Nons:entity(8))
rangerFilter(Nons:entity(9))
rangerFilter(Nons:entity(10))
rangerIgnoreWorld(1)
rangerHitWater(0)
N1 = rangerOffset(Range,Origin+O1,Ang):entity():id()
N2 = rangerOffset(Range,Origin+O2,Ang):entity():id()
N3 = rangerOffset(Range,Origin+O3,Ang):entity():id()
N4 = rangerOffset(Range,Origin+O4,Ang):entity():id()
N5 = rangerOffset(Range,Origin+O5,Ang):entity():id()
N6 = rangerOffset(Range,Origin+O6,Ang):entity():id()
N7 = rangerOffset(Range,Origin+O7,Ang):entity():id()
N8 = rangerOffset(Range,Origin+O8,Ang):entity():id()
N9 = rangerOffset(Range,Origin+O9,Ang):entity():id()
N10 = rangerOffset(Range,Origin+O10,Ang):entity():id()

entity(N1):applyForce(Jump)
entity(N2):applyForce(Jump)
entity(N3):applyForce(Jump)
entity(N4):applyForce(Jump)
entity(N5):applyForce(Jump)
entity(N6):applyForce(Jump)
entity(N7):applyForce(Jump)
entity(N8):applyForce(Jump)
entity(N9):applyForce(Jump)
entity(N10):applyForce(Jump)
