Dronesmanager help!?

08/10/2014 17:39 quinster08#1
Hello,

Ive been fucking arround with the drones manager for ages but i can't get it work like the new drones manager!

This my current code:
Code:
        _loc8_ = _loc5_[_loc7_];
               _loc9_ = _loc8_.split(",");
               _loc10_ = String(_loc9_[0]).split("");
               _loc11_ = _loc10_[0];
               _loc12_ = _loc10_[1];
               if(_loc6_ == 1)
               {
                  this.addDrone(param1,_loc3_,DroneConnector.POSITION_CENTER,_loc11_,_loc12_);
               }
               if(_loc6_ == 2)
               {
                  if(_loc7_ == 0)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_RIGHT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 1)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_TOP,_loc11_,_loc12_);
                  }
                  
               }
               if(_loc6_ == 3)
               {
                  if(_loc7_ == 0)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_CENTER,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 1)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_LEFT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 2)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_TOP,_loc11_,_loc12_);
                  }
                  
                  
               }
               if(_loc6_ == 4)
               {
                  if(_loc7_ == 0)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_TOP,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 1)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_RIGHT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 2)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_LEFT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 3)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_DOWN,_loc11_,_loc12_);
                  }
                  
                  
                  
               }
               _loc7_++;
            }
            _loc15_++;
         }
      }
How can i make it work like the new dronesmanager?
08/10/2014 18:19 olitis1#2
Quote:
Originally Posted by quinster08 View Post
Hello,

Ive been fucking arround with the drones manager for ages but i can't get it work like the new drones manager!

This my current code:
Code:
        _loc8_ = _loc5_[_loc7_];
               _loc9_ = _loc8_.split(",");
               _loc10_ = String(_loc9_[0]).split("");
               _loc11_ = _loc10_[0];
               _loc12_ = _loc10_[1];
               if(_loc6_ == 1)
               {
                  this.addDrone(param1,_loc3_,DroneConnector.POSITION_CENTER,_loc11_,_loc12_);
               }
               if(_loc6_ == 2)
               {
                  if(_loc7_ == 0)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_RIGHT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 1)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_TOP,_loc11_,_loc12_);
                  }
                  
               }
               if(_loc6_ == 3)
               {
                  if(_loc7_ == 0)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_CENTER,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 1)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_LEFT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 2)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_TOP,_loc11_,_loc12_);
                  }
                  
                  
               }
               if(_loc6_ == 4)
               {
                  if(_loc7_ == 0)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_TOP,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 1)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_RIGHT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 2)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_LEFT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 3)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_DOWN,_loc11_,_loc12_);
                  }
                  
                  
                  
               }
               _loc7_++;
            }
            _loc15_++;
         }
      }
How can i make it work like the new dronesmanager?
I think that you have to edit loc6 == 3 to this:
Code:
               if(_loc6_ == 3)
               {
                  if(_loc7_ == 0)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_CENTER,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 1)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_LEFT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 2)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_DOWN,_loc11_,_loc12_);
                  }
                  
                  
               }
08/10/2014 18:34 quinster08#3
Quote:
Originally Posted by olitis1 View Post
I think that you have to edit loc6 == 3 to this:
Code:
               if(_loc6_ == 3)
               {
                  if(_loc7_ == 0)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_CENTER,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 1)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_LEFT,_loc11_,_loc12_);
                  }
                  else if(_loc7_ == 2)
                  {
                     this.addDrone(param1,_loc3_,DroneConnector.POSITION_DOWN,_loc11_,_loc12_);
                  }
                  
                  
               }
Nope still the same, i think if u want to make it work edit: DroneConnector.POSITION_**** But idk wich DroneConnector to wich POSITION
08/10/2014 18:47 olitis1#4
Quote:
Originally Posted by quinster08 View Post
Nope still the same, i think if u want to make it work edit: DroneConnector.POSITION_**** But idk wich DroneConnector to wich POSITION
Try now to change loc6 ==2 and loc7 ==1 position DOWN, but Im not sure.
08/10/2014 19:44 quinster08#5
Quote:
Originally Posted by olitis1 View Post
Try now to change loc6 ==2 and loc7 ==1 position DOWN, but Im not sure.
I think that wont work because the loc's are changing automaticly lol, idk how. Its only the positions not the locs i guess,
08/10/2014 19:45 kalai870#6
wats tthis drone manager?
08/11/2014 00:11 quinster08#7
It does not matter, i need a fix thats what this thread is about!

If u dont know what it is u probs cant help me.
08/11/2014 01:11 v3nom ^^#8
Quote:
Originally Posted by quinster08 View Post
I think that wont work because the loc's are changing automaticly lol, idk how. Its only the positions not the locs i guess,
Changing unsuccessfull after close? the guy is correct loc6-loc3 it should cover the down position from the left corner, cause stamping two of the same will be a problem
08/11/2014 08:33 jarit#9
[Only registered and activated users can see links. Click Here To Register...]

#closed