Thread: ::Train Command

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 ::Train Command 
    smithy lol
    Guest
    Code:
    if (command.startsWith("train")) {
    		if (combat <= 69) {
    		teleportToX = 2925;
    		teleportToY = 3482;
    		itemMessage("Welcome To The Low Train Area", "", 1291, 250);
    		}
    Errors:
    100

    Ive probally coded the command wrong.

    Any1 got the command rep++.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jun 2007
    Age
    29
    Posts
    3,003
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    I think you need a else
    Reply With Quote  
     

  3. #3  
    I don't take you serious
    Kastro's Avatar
    Join Date
    Nov 2008
    Posts
    2,504
    Thanks given
    92
    Thanks received
    389
    Rep Power
    604
    more info,

    souce:
    where exactly in client.java you put it, ect
    Reply With Quote  
     

  4. #4  
    smithy lol
    Guest
    if (command.startsWith("train")) {
    if (combat <= 69) {
    teleportToX = 2925;
    teleportToY = 3482;
    itemMessage("Welcome To The Low Train Area", "", 1291, 250);
    else
    }
    There or ?
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Jun 2007
    Age
    29
    Posts
    3,003
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    ill help you after this zombie match
    ------------------

    Right try this

    Code:
    if (command.startsWith("train")) {
    		if (combat <= 69) {
    		teleportToX = 2925;
    		teleportToY = 3482;
    		sendMessage("Welcome To The Low Train Area", "", 1291, 250);
                    } else {
                    sendMessage("You are over 69 combat, why would you want to train here when you could kill monsters?");
    		}

    That won't work I think so add this under a bracket at the end of another command and it should work perfectly..

    Code:
    if (command.startsWith("train")) {
    		if (combat <= 69) {
    		teleportToX = 2925;
    		teleportToY = 3482;
    		sendMessage("Welcome To The Low Train Area", "", 1291, 250);
                    } else {
                    sendMessage("You are over 69 combat, why would you want to train here when you could kill monsters?");
    		}
    		}
    Reply With Quote  
     

  6. #6  
    smithy lol
    Guest
    Errors:
    100

    client.java:5561: 'else' without 'if'
    { else {
    ^
    client.java:5564: 'else' without 'if'
    } else if (command.startsWith("sendqz")) {
    ^
    client.java:6023: illegal start of expression
    public void debug(String text) {
    ^
    client.java:6023: illegal start of expression
    public void debug(String text) {
    ^
    client.java:6023: ';' expected
    public void debug(String text) {
    ^
    client.java:6023: ';' expected
    public void debug(String text) {
    ^
    client.java:6028: illegal start of expression
    public void openUpDepBox() {
    ^
    client.java:6028: illegal start of expression
    public void openUpDepBox() {
    ^
    client.java:6028: ';' expected
    public void openUpDepBox() {
    ^
    client.java:6035: illegal start of expression
    public void declineDuel() {
    ^
    client.java:6035: illegal start of expression
    public void declineDuel() {
    ^
    client.java:6035: ';' expected
    public void declineDuel() {
    ^
    client.java:6060: illegal start of expression
    public boolean DeclineDuel() {
    ^
    client.java:6060: ';' expected
    public boolean DeclineDuel() {
    ^
    client.java:6065: illegal start of expression
    public void declineTrade() {
    ^
    client.java:6065: illegal start of expression
    public void declineTrade() {
    ^
    client.java:6065: ';' expected
    public void declineTrade() {
    ^
    client.java:6069: illegal start of expression
    public void declineTrade(boolean tellOther) {
    ^
    client.java:6069: illegal start of expression
    public void declineTrade(boolean tellOther) {
    ^
    client.java:6069: ';' expected
    public void declineTrade(boolean tellOther) {
    ^
    client.java:6069: ';' expected
    public void declineTrade(boolean tellOther) {
    ^
    client.java:6096: illegal start of expression
    public boolean DeleteArrow() {
    ^
    client.java:6096: ';' expected
    public boolean DeleteArrow() {
    ^
    client.java:6121: illegal start of expression
    public void deleteequiment(int wearID, int slot) {
    ^
    client.java:6121: illegal start of expression
    public void deleteequiment(int wearID, int slot) {
    ^
    client.java:6121: ';' expected
    public void deleteequiment(int wearID, int slot) {
    ^
    client.java:6121: <identifier> expected
    public void deleteequiment(int wearID, int slot) {
    ^
    client.java:6121: not a statement
    public void deleteequiment(int wearID, int slot) {
    ^
    client.java:6121: ';' expected
    public void deleteequiment(int wearID, int slot) {
    ^
    client.java:6137: illegal start of expression
    public void deleteItem(int id, int amount) {
    ^
    client.java:6137: illegal start of expression
    public void deleteItem(int id, int amount) {
    ^
    client.java:6137: ';' expected
    public void deleteItem(int id, int amount) {
    ^
    client.java:6137: <identifier> expected
    public void deleteItem(int id, int amount) {
    ^
    client.java:6137: not a statement
    public void deleteItem(int id, int amount) {
    ^
    client.java:6137: ';' expected
    public void deleteItem(int id, int amount) {
    ^
    client.java:6141: illegal start of expression
    public void deleteItem(int id, int slot, int amount) {
    ^
    client.java:6141: illegal start of expression
    public void deleteItem(int id, int slot, int amount) {
    ^
    client.java:6141: ';' expected
    public void deleteItem(int id, int slot, int amount) {
    ^
    client.java:6141: <identifier> expected
    public void deleteItem(int id, int slot, int amount) {
    ^
    client.java:6141: not a statement
    public void deleteItem(int id, int slot, int amount) {
    ^
    client.java:6141: ';' expected
    public void deleteItem(int id, int slot, int amount) {
    ^
    client.java:6141: ';' expected
    public void deleteItem(int id, int slot, int amount) {
    ^
    client.java:6155: illegal start of expression
    public void destruct() {
    ^
    client.java:6155: illegal start of expression
    public void destruct() {
    ^
    client.java:6155: ';' expected
    public void destruct() {
    ^
    client.java:6189: illegal start of expression
    private void directFlushOutStream() throws java.io.IOException {
    ^
    client.java:6189: illegal start of expression
    private void directFlushOutStream() throws java.io.IOException {
    ^
    client.java:6189: ';' expected
    private void directFlushOutStream() throws java.io.IOException {
    ^
    client.java:6189: not a statement
    private void directFlushOutStream() throws java.io.IOException {
    ^
    client.java:6189: ';' expected
    private void directFlushOutStream() throws java.io.IOException {
    ^
    client.java:6194: illegal start of expression
    public int distanceToPoint(int pointX, int pointY) {
    ^
    client.java:6194: ';' expected
    public int distanceToPoint(int pointX, int pointY) {
    ^
    client.java:6194: <identifier> expected
    public int distanceToPoint(int pointX, int pointY) {
    ^
    client.java:6194: not a statement
    public int distanceToPoint(int pointX, int pointY) {
    ^
    client.java:6194: ';' expected
    public int distanceToPoint(int pointX, int pointY) {
    ^
    client.java:6199: illegal start of expression
    public void DoAction() {
    ^
    client.java:6199: illegal start of expression
    public void DoAction() {
    ^
    client.java:6199: ';' expected
    public void DoAction() {
    ^
    client.java:6209: illegal start of expression
    public void dropItem(int droppedItem, int slot) {
    ^
    client.java:6209: illegal start of expression
    public void dropItem(int droppedItem, int slot) {
    ^
    client.java:6209: ';' expected
    public void dropItem(int droppedItem, int slot) {
    ^
    client.java:6209: <identifier> expected
    public void dropItem(int droppedItem, int slot) {
    ^
    client.java:6209: not a statement
    public void dropItem(int droppedItem, int slot) {
    ^
    client.java:6209: ';' expected
    public void dropItem(int droppedItem, int slot) {
    ^
    client.java:6237: illegal start of expression
    public boolean duelButton(int button) {
    ^
    client.java:6237: ';' expected
    public boolean duelButton(int button) {
    ^
    client.java:6237: ';' expected
    public boolean duelButton(int button) {
    ^
    client.java:6270: illegal start of expression
    public void duelPlayer(int pIndex) {
    ^
    client.java:6270: illegal start of expression
    public void duelPlayer(int pIndex) {
    ^
    client.java:6270: ';' expected
    public void duelPlayer(int pIndex) {
    ^
    client.java:6270: ';' expected
    public void duelPlayer(int pIndex) {
    ^
    client.java:6285: illegal start of expression
    public void duelReq(int pid) {
    ^
    client.java:6285: illegal start of expression
    public void duelReq(int pid) {
    ^
    client.java:6285: ';' expected
    public void duelReq(int pid) {
    ^
    client.java:6285: ';' expected
    public void duelReq(int pid) {
    ^
    client.java:6317: illegal start of expression
    public void DuelVictory() {
    ^
    client.java:6317: illegal start of expression
    public void DuelVictory() {
    ^
    client.java:6317: ';' expected
    public void DuelVictory() {
    ^
    client.java:6382: illegal start of expression
    public void entangle() {
    ^
    client.java:6382: illegal start of expression
    public void entangle() {
    ^
    client.java:6382: ';' expected
    public void entangle() {
    ^
    client.java:6388: illegal start of expression
    private void fillInStream(int forceRead) throws java.io.IOException {
    ^
    client.java:6388: illegal start of expression
    private void fillInStream(int forceRead) throws java.io.IOException {
    ^
    client.java:6388: ';' expected
    private void fillInStream(int forceRead) throws java.io.IOException {
    ^
    client.java:6388: ';' expected
    private void fillInStream(int forceRead) throws java.io.IOException {
    ^
    client.java:6388: not a statement
    private void fillInStream(int forceRead) throws java.io.IOException {
    ^
    client.java:6388: ';' expected
    private void fillInStream(int forceRead) throws java.io.IOException {
    ^
    client.java:6393: illegal start of expression
    public int findItem(int id, int[] items, int[] amounts) {
    ^
    client.java:6393: ';' expected
    public int findItem(int id, int[] items, int[] amounts) {
    ^
    client.java:6393: <identifier> expected
    public int findItem(int id, int[] items, int[] amounts) {
    ^
    client.java:6393: illegal start of expression
    public int findItem(int id, int[] items, int[] amounts) {
    ^
    client.java:6393: ';' expected
    public int findItem(int id, int[] items, int[] amounts) {
    ^
    client.java:6393: not a statement
    public int findItem(int id, int[] items, int[] amounts) {
    ^
    client.java:6393: ';' expected
    public int findItem(int id, int[] items, int[] amounts) {
    ^
    client.java:6393: ';' expected
    public int findItem(int id, int[] items, int[] amounts) {
    ^
    client.java:6403: illegal start of expression
    public boolean firemaking() {
    ^
    client.java:6403: ';' expected
    public boolean firemaking() {
    ^
    client.java:6440: illegal start of expression
    public boolean firespell(int castID, int casterY, int casterX, int offsetY,
    ^
    client.java:6440: ';' expected
    public boolean firespell(int castID, int casterY, int casterX, int offsetY,
    ^
    client.java:6440: <identifier> expected
    public boolean firespell(int castID, int casterY, int casterX, int offsetY,
    ^
    100 errors
    Press any key to continue . . .
    I added in-between these:
    if (command.equalsIgnoreCase("equipment")) {
    for (int i = 0; i < playerEquipment.length; i++) {
    sendMessage("Slot " + i + ": " + playerEquipment[i] + ", "
    + playerEquipmentN[i]);
    }
    if (command.startsWith("train")) {
    if (combat <= 69) {
    teleportToX = 2925;
    teleportToY = 3482;
    sendMessage("Welcome To The Low Train Area", "", 1291, 250);
    { else {
    sendMessage("You are over 69 combat, why would you want to train here when you could kill monsters?");
    }
    } else if (command.startsWith("sendqz")) {
    int range = Integer.parseInt(command.substring(7));
    for (int i = 600; i < range; i++)
    // sendFrame126(""+i+"", i);
    sendFrame126("" + i + "", i);
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Jun 2007
    Age
    29
    Posts
    3,003
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    I updated it check again
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Feb 2009
    Age
    27
    Posts
    2,861
    Thanks given
    127
    Thanks received
    226
    Rep Power
    700
    Code:
    if (command.startsWith("train")) && (combat <= 69) {
    		teleportToX = 2925;
    		teleportToY = 3482;
    		itemMessage("Welcome To The Low Train Area", "", 1291, 250);
    		} else {
                    sendMessage("Get 69 combat.");
                   }
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Jun 2007
    Age
    29
    Posts
    3,003
    Thanks given
    52
    Thanks received
    98
    Rep Power
    3208
    Quote Originally Posted by jameskmonger View Post
    Code:
    if (command.startsWith("train")) && (combat <= 69) {
    		teleportToX = 2925;
    		teleportToY = 3482;
    		itemMessage("Welcome To The Low Train Area", "", 1291, 250);
    		} else {
                    sendMessage("Get 69 combat.");
                   }
    That's what I said above and it works perfectly lol
    Reply With Quote  
     

  10. #10  
    smithy lol
    Guest
    Thanks simon

    1 error:
    client.java:5560: sendMessage(java.lang.String) in client cannot be applied to (java.lang.String,jav
    ,int,int)
    sendMessage("Welcome To The Low Train Area", "", 1291, 250);
    ^
    fix that then rep++
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •