Thread: [Delta] Pickup not working? [Delta]

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 [Delta] Pickup not working? [Delta] 
    Registered Member
    Join Date
    Apr 2011
    Posts
    152
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    So I go ingame and I do ::item 995 1, and nothing happens(without the comma)

    Also, All of the players but me can spawn.
    Here's my code if I missed something
    Code:
    	    if (command.startsWith("pickup") && playerRights > 1) {
    		        String[] args = command.split(" ");
    	         if(args.length == 1) {
    			int newItemID = Integer.parseInt(args[1]);
    			int newItemAmount = Integer.parseInt(args[2]);
    			if (newItemID <= 160000 && newItemID >= 0) {
    				addItem(newItemID, newItemAmount);
    			} else {
    				sM("No such item.");
    			}
    		} else {
    			sM("Type like this  ::item ID AMOUNT");
    		}
    	    }
    }
    Reply With Quote  
     

  2. #2  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084
    Code:
    	    if (command.startsWith("item") && playerRights > 1) {
    		        String[] args = command.split(" ");
    	         if(args.length > 2) {
    			int newItemID = Integer.parseInt(args[1]);
    			int newItemAmount = Integer.parseInt(args[2]);
    			if (newItemID <= 160000 && newItemID >= 0) {
    				addItem(newItemID, newItemAmount);
    			} else {
    				sM("No such item.");
    			}
    		} else {
    			sM("Type like this  ::item ID AMOUNT");
    		}
    	    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2011
    Posts
    152
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    Code:
    client.java:11000: illegal start of expression
            public void debug(String text) {
                   ^
    client.java:11000: ';' expected
            public void debug(String text) {
                             ^
    client.java:11000: ';' expected
            public void debug(String text) {
                                         ^
    client.java:11004: illegal start of expression
            public void declineTrade() {
            ^
    client.java:11004: illegal start of expression
            public void declineTrade() {
                   ^
    client.java:11004: ';' expected
            public void declineTrade() {
                                    ^
    client.java:11011: illegal start of expression
            public void declineTrade(boolean tellOther) {
            ^
    client.java:11011: illegal start of expression
            public void declineTrade(boolean tellOther) {
                   ^
    client.java:11011: ';' expected
            public void declineTrade(boolean tellOther) {
                                    ^
    client.java:11011: ';' expected
            public void declineTrade(boolean tellOther) {
                                                      ^
    client.java:11038: illegal start of expression
            public boolean DeleteArrow() {
            ^
    client.java:11038: ';' expected
            public boolean DeleteArrow() {
                                      ^
    client.java:11062: illegal start of expression
            public boolean DeleteRing() {
            ^
    client.java:11062: ';' expected
            public boolean DeleteRing() {
                                     ^
    client.java:11085: illegal start of expression
            public void deleteequiment(int wearID, int slot) {
            ^
    client.java:11085: illegal start of expression
            public void deleteequiment(int wearID, int slot) {
                   ^
    client.java:11085: ';' expected
            public void deleteequiment(int wearID, int slot) {
                                      ^
    client.java:11085: <identifier> expected
            public void deleteequiment(int wearID, int slot) {
                                                  ^
    client.java:11085: not a statement
            public void deleteequiment(int wearID, int slot) {
                                                       ^
    client.java:11085: ';' expected
            public void deleteequiment(int wearID, int slot) {
                                                           ^
    client.java:11101: illegal start of expression
            public void deleteItem(int id, int amount) {
            ^
    client.java:11101: illegal start of expression
            public void deleteItem(int id, int amount) {
                   ^
    client.java:11101: ';' expected
            public void deleteItem(int id, int amount) {
                                  ^
    client.java:11101: <identifier> expected
            public void deleteItem(int id, int amount) {
                                          ^
    client.java:11101: not a statement
            public void deleteItem(int id, int amount) {
                                               ^
    client.java:11101: ';' expected
            public void deleteItem(int id, int amount) {
                                                     ^
    client.java:11105: illegal start of expression
            public void deleteItem(int id, int slot, int amount) {
            ^
    client.java:11105: illegal start of expression
            public void deleteItem(int id, int slot, int amount) {
                   ^
    client.java:11105: ';' expected
            public void deleteItem(int id, int slot, int amount) {
                                  ^
    client.java:11105: <identifier> expected
            public void deleteItem(int id, int slot, int amount) {
                                          ^
    client.java:11105: not a statement
            public void deleteItem(int id, int slot, int amount) {
                                               ^
    client.java:11105: ';' expected
            public void deleteItem(int id, int slot, int amount) {
                                                   ^
    client.java:11105: ';' expected
            public void deleteItem(int id, int slot, int amount) {
                                                               ^
    client.java:11120: illegal start of expression
                    public void destruct() {
                    ^
    client.java:11120: illegal start of expression
                    public void destruct() {
                           ^
    client.java:11120: ';' expected
                    public void destruct() {
                                        ^
    client.java:11162: illegal start of expression
            private void directFlushOutStream() throws java.io.IOException {
            ^
    client.java:11162: illegal start of expression
            private void directFlushOutStream() throws java.io.IOException {
                    ^
    client.java:11162: ';' expected
            private void directFlushOutStream() throws java.io.IOException {
                                             ^
    client.java:11162: not a statement
            private void directFlushOutStream() throws java.io.IOException {
                                                              ^
    client.java:11162: ';' expected
            private void directFlushOutStream() throws java.io.IOException {
                                                                          ^
    client.java:11167: illegal start of expression
            public int distanceToPoint(int pointX, int pointY) {
            ^
    client.java:11167: ';' expected
            public int distanceToPoint(int pointX, int pointY) {
                                      ^
    client.java:11167: <identifier> expected
            public int distanceToPoint(int pointX, int pointY) {
                                                  ^
    client.java:11167: not a statement
            public int distanceToPoint(int pointX, int pointY) {
                                                       ^
    client.java:11167: ';' expected
            public int distanceToPoint(int pointX, int pointY) {
                                                             ^
    client.java:11171: illegal start of expression
            public void dropItem(int droppedItem, int slot) {
            ^
    client.java:11171: illegal start of expression
            public void dropItem(int droppedItem, int slot) {
                   ^
    client.java:11171: ';' expected
            public void dropItem(int droppedItem, int slot) {
                                ^
    client.java:11171: <identifier> expected
            public void dropItem(int droppedItem, int slot) {
                                                 ^
    client.java:11171: not a statement
            public void dropItem(int droppedItem, int slot) {
                                                      ^
    client.java:11171: ';' expected
            public void dropItem(int droppedItem, int slot) {
                                                          ^
    client.java:11302: illegal start of expression
            private void fillInStream(int forceRead) throws java.io.IOException {
            ^
    client.java:11302: illegal start of expression
            private void fillInStream(int forceRead) throws java.io.IOException {
                    ^
    client.java:11302: ';' expected
            private void fillInStream(int forceRead) throws java.io.IOException {
                                     ^
    client.java:11302: ';' expected
            private void fillInStream(int forceRead) throws java.io.IOException {
                                                   ^
    client.java:11302: not a statement
            private void fillInStream(int forceRead) throws java.io.IOException {
                                                                   ^
    client.java:11302: ';' expected
            private void fillInStream(int forceRead) throws java.io.IOException {
                                                                               ^
    client.java:11308: illegal start of expression
            public int findItem(int id, int[] items, int[] amounts) {
            ^
    client.java:11308: ';' expected
            public int findItem(int id, int[] items, int[] amounts) {
                               ^
    client.java:11308: <identifier> expected
            public int findItem(int id, int[] items, int[] amounts) {
                                       ^
    client.java:11308: illegal start of expression
            public int findItem(int id, int[] items, int[] amounts) {
                                           ^
    client.java:11308: ';' expected
            public int findItem(int id, int[] items, int[] amounts) {
                                            ^
    client.java:11308: not a statement
            public int findItem(int id, int[] items, int[] amounts) {
                                              ^
    client.java:11308: ';' expected
            public int findItem(int id, int[] items, int[] amounts) {
                                                   ^
    client.java:11308: ';' expected
            public int findItem(int id, int[] items, int[] amounts) {
                                                                  ^
    client.java:11318: illegal start of expression
            public void fish(int id) {
            ^
    client.java:11318: illegal start of expression
            public void fish(int id) {
                   ^
    client.java:11318: ';' expected
            public void fish(int id) {
                            ^
    client.java:11318: ';' expected
            public void fish(int id) {
                                   ^
    client.java:11369: illegal start of expression
            public void fletchBow() {
            ^
    client.java:11369: illegal start of expression
            public void fletchBow() {
                   ^
    client.java:11369: ';' expected
            public void fletchBow() {
                                 ^
    client.java:11389: illegal start of expression
            public void fletchBow(boolean shortBow, int amount) {
            ^
    client.java:11389: illegal start of expression
            public void fletchBow(boolean shortBow, int amount) {
                   ^
    client.java:11389: ';' expected
            public void fletchBow(boolean shortBow, int amount) {
                                 ^
    client.java:11389: <identifier> expected
            public void fletchBow(boolean shortBow, int amount) {
                                                   ^
    client.java:11389: not a statement
            public void fletchBow(boolean shortBow, int amount) {
                                                        ^
    client.java:11389: ';' expected
            public void fletchBow(boolean shortBow, int amount) {
                                                              ^
    client.java:11413: illegal start of expression
            public void flushOutStream() {
            ^
    client.java:11413: illegal start of expression
            public void flushOutStream() {
                   ^
    client.java:11413: ';' expected
            public void flushOutStream() {
                                      ^
    client.java:11437: illegal start of expression
            public void frame1() {
            ^
    client.java:11437: illegal start of expression
            public void frame1() {
                   ^
    client.java:11437: ';' expected
            public void frame1() {
                              ^
    client.java:11445: illegal start of expression
            public int freeBankSlots() {
            ^
    client.java:11445: ';' expected
            public int freeBankSlots() {
                                    ^
    client.java:11456: illegal start of expression
            public int freeSlots() {
            ^
    client.java:11456: ';' expected
            public int freeSlots() {
                                ^
    client.java:11468: illegal start of expression
            public void fromBank(int itemID, int fromSlot, int amount) {
            ^
    client.java:11468: illegal start of expression
            public void fromBank(int itemID, int fromSlot, int amount) {
                   ^
    client.java:11468: ';' expected
            public void fromBank(int itemID, int fromSlot, int amount) {
                                ^
    client.java:11468: <identifier> expected
            public void fromBank(int itemID, int fromSlot, int amount) {
                                            ^
    client.java:11468: not a statement
            public void fromBank(int itemID, int fromSlot, int amount) {
                                                 ^
    client.java:11468: ';' expected
            public void fromBank(int itemID, int fromSlot, int amount) {
                                                         ^
    client.java:11468: ';' expected
            public void fromBank(int itemID, int fromSlot, int amount) {
                                                                     ^
    client.java:11564: illegal start of expression
            public boolean fromTrade(int itemID, int fromSlot, int amount) {
            ^
    client.java:11564: ';' expected
            public boolean fromTrade(int itemID, int fromSlot, int amount) {
                                    ^
    client.java:11564: <identifier> expected
            public boolean fromTrade(int itemID, int fromSlot, int amount) {
                                                ^
    100 errors
    Finished!
    Press any key to continue . . .
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2010
    Age
    29
    Posts
    1,886
    Thanks given
    446
    Thanks received
    523
    Rep Power
    0
    Code:
    if (command.startsWith("pickup") || playerRights > 1) {
    		        String[] args = command.split(" ");
    	         if(args.length > 2) {
    			int newItemID = Integer.parseInt(args[1]),  newItemAmount = Integer.parseInt(args[2]);
    			if (newItemID <= 160000 && newItemID >= 0) {
    				addItem(newItemID, newItemAmount);
    		} else {
    			sM("Type like this  ::item ID AMOUNT");
    		}
    	    }
    A bit more space
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2011
    Posts
    152
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    Code:
    client.java:10996: illegal start of expression
            public void debug(String text) {
                   ^
    client.java:10996: ';' expected
            public void debug(String text) {
                             ^
    client.java:10996: ';' expected
            public void debug(String text) {
                                         ^
    client.java:11000: illegal start of expression
            public void declineTrade() {
            ^
    client.java:11000: illegal start of expression
            public void declineTrade() {
                   ^
    client.java:11000: ';' expected
            public void declineTrade() {
                                    ^
    client.java:11007: illegal start of expression
            public void declineTrade(boolean tellOther) {
            ^
    client.java:11007: illegal start of expression
            public void declineTrade(boolean tellOther) {
                   ^
    client.java:11007: ';' expected
            public void declineTrade(boolean tellOther) {
                                    ^
    client.java:11007: ';' expected
            public void declineTrade(boolean tellOther) {
                                                      ^
    client.java:11034: illegal start of expression
            public boolean DeleteArrow() {
            ^
    client.java:11034: ';' expected
            public boolean DeleteArrow() {
                                      ^
    client.java:11058: illegal start of expression
            public boolean DeleteRing() {
            ^
    client.java:11058: ';' expected
            public boolean DeleteRing() {
                                     ^
    client.java:11081: illegal start of expression
            public void deleteequiment(int wearID, int slot) {
            ^
    client.java:11081: illegal start of expression
            public void deleteequiment(int wearID, int slot) {
                   ^
    client.java:11081: ';' expected
            public void deleteequiment(int wearID, int slot) {
                                      ^
    client.java:11081: <identifier> expected
            public void deleteequiment(int wearID, int slot) {
                                                  ^
    client.java:11081: not a statement
            public void deleteequiment(int wearID, int slot) {
                                                       ^
    client.java:11081: ';' expected
            public void deleteequiment(int wearID, int slot) {
                                                           ^
    client.java:11097: illegal start of expression
            public void deleteItem(int id, int amount) {
            ^
    client.java:11097: illegal start of expression
            public void deleteItem(int id, int amount) {
                   ^
    client.java:11097: ';' expected
            public void deleteItem(int id, int amount) {
                                  ^
    client.java:11097: <identifier> expected
            public void deleteItem(int id, int amount) {
                                          ^
    client.java:11097: not a statement
            public void deleteItem(int id, int amount) {
                                               ^
    client.java:11097: ';' expected
            public void deleteItem(int id, int amount) {
                                                     ^
    client.java:11101: illegal start of expression
            public void deleteItem(int id, int slot, int amount) {
            ^
    client.java:11101: illegal start of expression
            public void deleteItem(int id, int slot, int amount) {
                   ^
    client.java:11101: ';' expected
            public void deleteItem(int id, int slot, int amount) {
                                  ^
    client.java:11101: <identifier> expected
            public void deleteItem(int id, int slot, int amount) {
                                          ^
    client.java:11101: not a statement
            public void deleteItem(int id, int slot, int amount) {
                                               ^
    client.java:11101: ';' expected
            public void deleteItem(int id, int slot, int amount) {
                                                   ^
    client.java:11101: ';' expected
            public void deleteItem(int id, int slot, int amount) {
                                                               ^
    client.java:11116: illegal start of expression
                    public void destruct() {
                    ^
    client.java:11116: illegal start of expression
                    public void destruct() {
                           ^
    client.java:11116: ';' expected
                    public void destruct() {
                                        ^
    client.java:11158: illegal start of expression
            private void directFlushOutStream() throws java.io.IOException {
            ^
    client.java:11158: illegal start of expression
            private void directFlushOutStream() throws java.io.IOException {
                    ^
    client.java:11158: ';' expected
            private void directFlushOutStream() throws java.io.IOException {
                                             ^
    client.java:11158: not a statement
            private void directFlushOutStream() throws java.io.IOException {
                                                              ^
    client.java:11158: ';' expected
            private void directFlushOutStream() throws java.io.IOException {
                                                                          ^
    client.java:11163: illegal start of expression
            public int distanceToPoint(int pointX, int pointY) {
            ^
    client.java:11163: ';' expected
            public int distanceToPoint(int pointX, int pointY) {
                                      ^
    client.java:11163: <identifier> expected
            public int distanceToPoint(int pointX, int pointY) {
                                                  ^
    client.java:11163: not a statement
            public int distanceToPoint(int pointX, int pointY) {
                                                       ^
    client.java:11163: ';' expected
            public int distanceToPoint(int pointX, int pointY) {
                                                             ^
    client.java:11167: illegal start of expression
            public void dropItem(int droppedItem, int slot) {
            ^
    client.java:11167: illegal start of expression
            public void dropItem(int droppedItem, int slot) {
                   ^
    client.java:11167: ';' expected
            public void dropItem(int droppedItem, int slot) {
                                ^
    client.java:11167: <identifier> expected
            public void dropItem(int droppedItem, int slot) {
                                                 ^
    client.java:11167: not a statement
            public void dropItem(int droppedItem, int slot) {
                                                      ^
    client.java:11167: ';' expected
            public void dropItem(int droppedItem, int slot) {
                                                          ^
    client.java:11298: illegal start of expression
            private void fillInStream(int forceRead) throws java.io.IOException {
            ^
    client.java:11298: illegal start of expression
            private void fillInStream(int forceRead) throws java.io.IOException {
                    ^
    client.java:11298: ';' expected
            private void fillInStream(int forceRead) throws java.io.IOException {
                                     ^
    client.java:11298: ';' expected
            private void fillInStream(int forceRead) throws java.io.IOException {
                                                   ^
    client.java:11298: not a statement
            private void fillInStream(int forceRead) throws java.io.IOException {
                                                                   ^
    client.java:11298: ';' expected
            private void fillInStream(int forceRead) throws java.io.IOException {
                                                                               ^
    client.java:11304: illegal start of expression
            public int findItem(int id, int[] items, int[] amounts) {
            ^
    client.java:11304: ';' expected
            public int findItem(int id, int[] items, int[] amounts) {
                               ^
    client.java:11304: <identifier> expected
            public int findItem(int id, int[] items, int[] amounts) {
                                       ^
    client.java:11304: illegal start of expression
            public int findItem(int id, int[] items, int[] amounts) {
                                           ^
    client.java:11304: ';' expected
            public int findItem(int id, int[] items, int[] amounts) {
                                            ^
    client.java:11304: not a statement
            public int findItem(int id, int[] items, int[] amounts) {
                                              ^
    client.java:11304: ';' expected
            public int findItem(int id, int[] items, int[] amounts) {
                                                   ^
    client.java:11304: ';' expected
            public int findItem(int id, int[] items, int[] amounts) {
                                                                  ^
    client.java:11314: illegal start of expression
            public void fish(int id) {
            ^
    client.java:11314: illegal start of expression
            public void fish(int id) {
                   ^
    client.java:11314: ';' expected
            public void fish(int id) {
                            ^
    client.java:11314: ';' expected
            public void fish(int id) {
                                   ^
    client.java:11365: illegal start of expression
            public void fletchBow() {
            ^
    client.java:11365: illegal start of expression
            public void fletchBow() {
                   ^
    client.java:11365: ';' expected
            public void fletchBow() {
                                 ^
    client.java:11385: illegal start of expression
            public void fletchBow(boolean shortBow, int amount) {
            ^
    client.java:11385: illegal start of expression
            public void fletchBow(boolean shortBow, int amount) {
                   ^
    client.java:11385: ';' expected
            public void fletchBow(boolean shortBow, int amount) {
                                 ^
    client.java:11385: <identifier> expected
            public void fletchBow(boolean shortBow, int amount) {
                                                   ^
    client.java:11385: not a statement
            public void fletchBow(boolean shortBow, int amount) {
                                                        ^
    client.java:11385: ';' expected
            public void fletchBow(boolean shortBow, int amount) {
                                                              ^
    client.java:11409: illegal start of expression
            public void flushOutStream() {
            ^
    client.java:11409: illegal start of expression
            public void flushOutStream() {
                   ^
    client.java:11409: ';' expected
            public void flushOutStream() {
                                      ^
    client.java:11433: illegal start of expression
            public void frame1() {
            ^
    client.java:11433: illegal start of expression
            public void frame1() {
                   ^
    client.java:11433: ';' expected
            public void frame1() {
                              ^
    client.java:11441: illegal start of expression
            public int freeBankSlots() {
            ^
    client.java:11441: ';' expected
            public int freeBankSlots() {
                                    ^
    client.java:11452: illegal start of expression
            public int freeSlots() {
            ^
    client.java:11452: ';' expected
            public int freeSlots() {
                                ^
    client.java:11464: illegal start of expression
            public void fromBank(int itemID, int fromSlot, int amount) {
            ^
    client.java:11464: illegal start of expression
            public void fromBank(int itemID, int fromSlot, int amount) {
                   ^
    client.java:11464: ';' expected
            public void fromBank(int itemID, int fromSlot, int amount) {
                                ^
    client.java:11464: <identifier> expected
            public void fromBank(int itemID, int fromSlot, int amount) {
                                            ^
    client.java:11464: not a statement
            public void fromBank(int itemID, int fromSlot, int amount) {
                                                 ^
    client.java:11464: ';' expected
            public void fromBank(int itemID, int fromSlot, int amount) {
                                                         ^
    client.java:11464: ';' expected
            public void fromBank(int itemID, int fromSlot, int amount) {
                                                                     ^
    client.java:11560: illegal start of expression
            public boolean fromTrade(int itemID, int fromSlot, int amount) {
            ^
    client.java:11560: ';' expected
            public boolean fromTrade(int itemID, int fromSlot, int amount) {
                                    ^
    client.java:11560: <identifier> expected
            public boolean fromTrade(int itemID, int fromSlot, int amount) {
                                                ^
    100 errors
    Finished!
    Press any key to continue . . .
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Oct 2010
    Age
    29
    Posts
    1,886
    Thanks given
    446
    Thanks received
    523
    Rep Power
    0
    Code:
    if (command.startsWith("pickup")) {
    String[] args = command.split(" ");
               if(args.length == 3) {
                       int newItemID = Integer.parseInt(args[1]), int newItemAmount = Integer.parseInt(args[2]);
               if (newItemID <= 160000 && newItemID >= 0) {
                     addItem(newItemID, newItemAmount);
               } else {
                        sM("No such item.");  }
               } else {
                       sM("Oops! Use as ickup 995 100");
                  }
            }
    }
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Apr 2011
    Posts
    152
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    Just added one on the bottom, still 100 errors.
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Oct 2010
    Age
    29
    Posts
    1,886
    Thanks given
    446
    Thanks received
    523
    Rep Power
    0
    Then its not the command
    Reply With Quote  
     

  9. #9  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084
    you forgot the }
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Oct 2010
    Age
    29
    Posts
    1,886
    Thanks given
    446
    Thanks received
    523
    Rep Power
    0
    Quote Originally Posted by wOok View Post
    you forgot the }
    Ahahahahhahahahahahhaha woops he should have caught that.
    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

Similar Threads

  1. [DELTA] Can't pickup arrows [DELTA]
    By MoonlightScape in forum Help
    Replies: 4
    Last Post: 03-30-2010, 10:33 PM
  2. [DELTA]Working antifire potion[DELTA]
    By shoopdawhoop in forum Snippets
    Replies: 7
    Last Post: 03-09-2010, 09:55 AM
  3. [DELTA]Working black mask[DELTA]
    By shoopdawhoop in forum Snippets
    Replies: 27
    Last Post: 02-22-2010, 09:52 AM
  4. Replies: 10
    Last Post: 02-05-2010, 04:59 PM
  5. Replies: 25
    Last Post: 01-04-2010, 12:03 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •