|
You last visited: Today at 23:03
Advertisement
Dronesmanager help!?
Discussion on Dronesmanager help!? within the DarkOrbit forum part of the Browsergames category.
08/10/2014, 17:39
|
#1
|
elite*gold: 0
Join Date: May 2014
Posts: 394
Received Thanks: 69
|
Dronesmanager help!?
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
|
#2
|
elite*gold: 0
Join Date: Apr 2012
Posts: 182
Received Thanks: 128
|
Quote:
Originally Posted by quinster08
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
|
#3
|
elite*gold: 0
Join Date: May 2014
Posts: 394
Received Thanks: 69
|
Quote:
Originally Posted by olitis1
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
|
#4
|
elite*gold: 0
Join Date: Apr 2012
Posts: 182
Received Thanks: 128
|
Quote:
Originally Posted by quinster08
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
|
#5
|
elite*gold: 0
Join Date: May 2014
Posts: 394
Received Thanks: 69
|
Quote:
Originally Posted by olitis1
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
|
#6
|
elite*gold: 0
Join Date: Jun 2011
Posts: 947
Received Thanks: 173
|
wats tthis drone manager?
|
|
|
08/11/2014, 00:11
|
#7
|
elite*gold: 0
Join Date: May 2014
Posts: 394
Received Thanks: 69
|
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
|
#8
|
elite*gold: 0
Join Date: Jan 2012
Posts: 112
Received Thanks: 55
|
Quote:
Originally Posted by quinster08
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
|
#9
|
elite*gold: 190
Join Date: Nov 2009
Posts: 3,839
Received Thanks: 1,196
|
#closed
|
|
|
All times are GMT +1. The time now is 23:03.
|
|