Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Need Help] Java compile errors I can't fix! [+rep]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Engineer
Expert Cheater
Reputation: 1

Joined: 25 Nov 2007
Posts: 170

PostPosted: Wed Jun 18, 2008 6:19 am    Post subject: [Need Help] Java compile errors I can't fix! [+rep] Reply with quote

Hey, I'm making some scripts for Nexus (a runescape bot, I know their probably easy to fix, but I try to fix them, and I only get more errors Mad
!!I decided It's better to post here because programming errors are the same thing in all ways of scripting, and this forum is often visited by experienced programmers, so I hope you don't reply stuff like "OMGZOR ITS DA WRUNG SECTI0N YOU NUUUB!!! LULULUL"

So, starting, heres my script:
THE //LINE XX COMMENTS ARE WRONG! IGNORE THEM
Code:
import impsoft.bots.*;
import impsoft.handlers.*;
import impsoft.painting.*;
import impsoft.scripting.ibot.clusters.*;
import impsoft.scripting.ibot.gameinterfs.*;
import impsoft.scripting.ibot.interfaces.*;
import impsoft.scripting.ibot.itemrec.*;
import impsoft.scripting.ibot.objects.*;
import impsoft.scripting.ibot.objects.ocr.*;
import impsoft.scripting.ibot.structs.*;
import impsoft.scripting.input.objects.*;
import impsoft.scripting.types.*;
import impsoft.utils.general.*;
import impsoft.utils.general.Timer;
import impsoft.utils.ibot.*;
import impsoft.values.constant.*;
import impsoft.values.variable.*;

public class SmithingPro extends ColorScript {
   public SmithingPro (ColorBot c) {       //line 20
      super (c);
   }

//INFO//
   public static String author = "Ohwow";
   public static double version = 0.0;
   public static String description = "Smiths plates of bars you choose, auto-buy opt comming soon.";

                  //line 30
//ARYANS//
   public AryanTile VarrockWestBank = new AryanTile(3185,3435);
   public AryanTile WestSmith = new AryanTile(3187,3424);
   public AryanTile Lumby = new AryanTile(0,0);
   public AryanTile GrandE = new AryanTile(0,0);

//RGBs & CLUSTERS//
   RGB[] HammerColors = new RGB[] {
      new RGB(88, 60, 11), new RGB(78,53,10),
      new RGB(112, 104, 104), new RGB(68, 63, 63)   };

   RGB[] AnvilColors = new RGB[] {      //line 40
      new RGB(65, 60,60), new RGB(82, 77, 76),
      new RGB(51,47,47), new RGB(98, 91, 91)      };

   EdgeRGBCluster Hammer = new EdgeRGBCluster(HammerColors, this);
   EdgeRGBCluster Anvil = new EdgeRGBCluster(AnvilColors, this);

//YOU SWACK IF YOUR READING THIS//
public boolean NeedBars = false;
String bar;

//RECTANGLES... yucky =[//
Rectangle inPlateBody = new Rectangle(250, 275, 65, 25); //had to leech these... soz ;\
Rectangle scrollDown = new Rectangle(492, 247, 11, 51);
Rectangle onBar = new Rectangle(607, 217, 17, 18);


public void script() throws InterruptedException{
   while (true){
      bar = "ronze bar";
      theTabs.Options.setRun(true);
      //DeathWalk();
      sleep(random(300,1200));
      walkToBank();
      sleep(random(290, 1100));
      doBank();
      sleep(random(450, 1000));
      walkToSmith();
      sleep(random(500,1600));
      startToSmith();
      sleep(random(300,1200));
      doSmith();
      //BuyBars();
      
      
      }            //line 60
   }

public void walkToBank() throws InterruptedException {
   log("Going to bank...");
   theWorldMap.walkTo(VarrockWestBank);
   log("Done walking.");
   }

public void doBank() throws InterruptedException {
   log("Banking...");            //line 70
   theBank.open();
   sleep(random(300,1200));
   if (theTabs.Inventory.count("hammer") < 1) {
      theBank.doWithDraw1("hammer", true);       //line 90
      log("Needed an hammer");
   }
   sleep(random(300, 1200));
   theBank.doDepositAll(new ItemAllBut(new ItemContains("Hammer)), false);
   sleep(random(300,1200));
   theBank.doWithDrawAll(bar, false);
   if (theTabs.Inventory.getCount() < 28) {
      log("Running low on bars! Buying bars after smithing.");
      ifNeedBars = true;
   }
   theBank.exit();
   }
                  //line 80
public void walkToSmith() throws InterruptedException {
   log("Walking to ... Smithing place!");
   sleep(random(300,1500));
   theWorldMap.walkTo(WestSmith);
   sleep(random(250, 1000));
   log("Done walking.");
   }

public void startToSmith() throws InterruptedException {
   log("Starting to smith...");            //line 90
   //theTabs.Inventory.doAction(ronze bar, "Use", 1, true);
   mouseClickLeft(onBar);
   sleep(random(250,500));
   Anvil.doTopText("Anvil");
   }

public void doSmith() throws InterruptedException {
   mouseClickLeft(scrollDown);
   sleep(random(500,1000));
   mouseClickRight(inPlateBody);
   while (!theMenuFinder.isMenuUp()) {
      sleep(random(300,1200);
   }
   theMenuFinder.doMenu("Make all");
   sleep(random(15000,30000));
   }

public void DeathWalk() throws InterruptedException {
   if (getLocation().distanceTo(Lumby) < 10) {
      log("Apparently died or too close to lumby... Walking to bank.");
      theWorldMap.walkTo(VarrockWestBank);
   }
   }
public void BuyBars() throws InterruptedException {
   if (NeedBars == true) {
      theWorldMap.walkTo(GrandE);
      //Missing script... I swack at scripting ;[
      ifNeedBars = false;
      theWorldMap.walkTo(VarrockWestBank);
      }
   }
}
//the script used in this file and in the respective .class file are from Ohwow, rscheata.net.


And the compile errors:
Code:
[File folder location]\SmithingPro.java:94: unclosed string literal
[File folder location]\SmithingPro.java:123: ')' expected

^^(Maybee I was in the wrong line ..for like 3 times.. but meh...)^^
Back to top
View user's profile Send private message
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Wed Jun 18, 2008 6:55 am    Post subject: Reply with quote

From
Code:
theBank.doDepositAll(new ItemAllBut(new ItemContains("Hammer)), false);
To
Code:
theBank.doDepositAll(new ItemAllBut(new ItemContains("Hammer")), false);

From
Code:
sleep(random(300,1200);
To
Code:
sleep(random(300,1200));


First error, missing quote.
Second error, missing parenthesis.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites