Jump to content

Few api questions


Qubit

Recommended Posts

i can't seem to get these to work, would be nice if someone were to explain why

 they dont work.

Ex:

///////////////////////////////////Im getting error on Area ---- Area is undefined
if(Area(1,2,3,4).contains.myPosition(){
    //code 
}
//////////////////////////////////// Im getting errors on .getRunEnergy() ---says change method receiver cast
if(myPlayer().getRunenergy() > random(25,50){
    myPlayer().setRunning(true);
}
//////////////////////////////////// Im getting error on walk ----- method walk i undefined
Position BANK = new Position(random(3092,3097), random(3240, 3246), 0);
walk(BANK);
Edited by javant
Link to comment
Share on other sites

localWalker.walk(BANK.getRandomPosition(0));

walks you to a random position in an area

 

Area x = new Area(1,2,3,4);

 

if (x.contains(myPlayer())) {

//cod

}

 

 

if (settings.getRunEnergy() > random(20,25)) {

//code

}

I still get an error on Area(1,2,3,4); saying cannot define constructor

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...