Was wondering how i would make an
~array of all the clients connected to k relay
~array of all the clients X's
~array of all the clients Y's
~change a name of clients so one is master and others are slave# (0<=#<number of clients open- 1) within the array.
~a /follow command that will set the current client to your master and start the X,Y arrays in an infant loop until /release, or a client is more that 10 steps away for more than 5 seconds then all will be put in to nexus. (good for orax or client D/C)
Code:
LEFT RIGHT (#=#)
if(masterX>slave#X){
X=masterX-slave#X;
KRelayMove.MoveClient(client#, KRelayMove.Direction.right, (X) ,8.332474E+09f);
if(X>10){
time = 0;
for(X>10,X<10,time++){
X=masterX-slave#X;
if(time=5){nexus connect};
(pause 1 sec);
}
}
X=0;
}
else{
X=slave#X-masterX;
KRelayMove.MoveClient(client#, KRelayMove.Direction.left, (X) ,8.332474E+09f);
if(X>10){
time = 0;
for(X>10,X<10,time++){
X=slave#X-masterX;
if(time=5){nexus connect};
(pause 1 sec);
}
}
X=0;
}
UP DOWN
if(masterY>slave#Y){
Y=masterY-slave#Y;
KRelayMove.MoveClient(client#, KRelayMove.Direction.left, (Y) ,8.332474E+09f);
if(Y>10){
time = 0;
for(Y>10,Y<10,time++){
Y=masterY-slave#Y;
if(time=5){nexus connect};
(pause 1 sec);
}
}
Y=0;
}
else{
Y=slave#Y-masterY;
KRelayMove.MoveClient(client#, KRelayMove.Direction.left, (Y) ,8.332474E+09f);
if(Y>10){
time = 0;
for(Y>10,Y<10,time++){
Y=slave#Y-masterY;
if(time=5){nexus connect};
(pause 1 sec);
}
}
Y=0;
}
uses pixelzerg's K Relay Move found by searching
"krelay follow" in to the mpgh search bar.(
7th one from the top)
(I cant use links

)
RED means i don't know what the actual command is.