The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.6 (Linux)
File Line Function
/showthread.php 906 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help needed
#1
hi there,
could somebody help me with this game before I broke my keyboard to pieces?
how to find empty space on the SpaceShip (or on any other platform) for dropping?
do I need to create some kind of table that contains points for empty space?
my stupid WingedGrabber never find empty space for delivering the goods.
calling would be something like :
extern void object:: Test(){ for(int i=0 ;i<4;i++){RetreiveObjects(TitaniumOre,SpaceShip);} }
first loop is ok but next one....grrrrr!!!!!

Code:
public void object::RetreiveObjects(int cat,int retreiveTo){
object item=radar(cat,0,360,50,1000);

if (this.energyCell==null){message(this.category + " reports : waiting for PowerCell");}

while(this.energyCell==null)
{wait(0.2);
}

move(-3);

message(this.category +" reports: 'object found'",DisplayInfo);
errmode(0);

while(goto(item.position)!=000)
{

wait(0.2);

message(this.category +" reports: waiting for space to clear ",DisplayInfo);
}

grab();

item=radar(retreiveTo);

message(this.category +" reports: retreiving object to the ship ",DisplayInfo);

while(goto(item.position)!=000)
{

wait(0.2);

message(this.category +" reports:waiting for landing space to clear ",DisplayInfo);
item=radar(retreiveTo);
}
   
if(drop(InFront)!=000)
{

message(this.category +" reports: impossible to drop here...moving on",DisplayInfo);
wait(0.2);

item=radar(retreiveTo);

turn(90);

move(2);

drop(InFront);
};

message(this.category +" reports: object retreived  ",DisplayInfo);
}


Attached Files
.txt   RetreiveObjects.txt (Size: 1.01 KB / Downloads: 68)


Messages In This Thread
help needed - by kostas - 10-04-2017, 12:50 PM
RE: help needed - by Caveman - 10-08-2017, 09:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)