Thread: Money Pouch Glitch

Results 1 to 10 of 10
  1. #1 Money Pouch Glitch 
    Registered Member
    Join Date
    Dec 2014
    Posts
    16
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    Hello all,

    Every time someone takes money out of their money pouch, it sends the amount they take out as a Private Message to the last person they PM'd.


    How would I fix this?
    Reply With Quote  
     

  2. #2  
    Member Money Pouch Glitch Market Banned
    Mr Joopz's Avatar
    Join Date
    Aug 2012
    Age
    26
    Posts
    1,410
    Thanks given
    259
    Thanks received
    96
    Rep Power
    14
    Quote Originally Posted by Vanished View Post
    Hello all,

    Every time someone takes money out of their money pouch, it sends the amount they take out as a Private Message to the last person they PM'd.


    How would I fix this?
    Rofl.

    Send me your withdraw method.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2014
    Posts
    16
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Mr Joopz View Post
    Rofl.

    Send me your withdraw method.
    Code:
    if ((interfaceButtonAction == 557)
    							&& (promptInput.length() > 0)) {
    						if (promptInput.toLowerCase().contains("k")) {
    							promptInput = promptInput.replaceAll("k", "000");
    						} else if (promptInput.toLowerCase().contains("m")) {
    							promptInput = promptInput.replaceAll("m", "000000");
    						} else if (promptInput.toLowerCase().contains("b")) {
    							promptInput = promptInput.replaceAll("b",
    									"000000000");
    						}
    						inputString = new StringBuilder("::withdraw ").append(
    								promptInput).toString();
    						sendPacket(103);
    					}
    Code:
    if (playerCommand.startsWith("withdraw")) {
    			String[] cAmount = cmd.split(" ");
    			int amount = Integer.parseInt(cAmount[1]);
    			if (c.inWild()) {
    				c.sendMessage("You cannot do this in the wilderness");
    				c.getPA().sendFrame126(""+c.MoneyCash+"", 8135); 
    				return;
    			}
    			if(amount == 0) {
    				c.sendMessage("Why would I withdraw no coins?");
    				return;
    			}
    			if(c.MoneyCash == 0) {
    				c.sendMessage("You don't have any cash in the bag.");
    				c.getPA().sendFrame126(""+c.MoneyCash+"", 8135); 
    				return;
    			}
    			if(c.MoneyCash < amount) {
    				if(amount == 1) {
    					c.sendMessage("You withdraw 1 coin.");
    				} else  {
    					c.sendMessage("You withdraw "+c.MoneyCash+" coins.");
    				}
    				c.getItems().addItem(995, c.MoneyCash);
    				c.MoneyCash = 0;
    				c.getPA().sendFrame126(""+c.MoneyCash+"", 8134); 
    				c.getPA().sendFrame126(""+c.MoneyCash+"", 8135);
    				return;
    			}
    			if(c.MoneyCash != 0) {
    				if(amount == 1) {
    					c.sendMessage("You withdraw 1 coin.");
    				} else  {
    					c.sendMessage("You withdraw "+amount+" coins.");
    				}
    					c.MoneyCash -= amount;
    					c.getItems().addItem(995, amount);
    					c.getPA().sendFrame126(""+c.MoneyCash+"", 8135);
    			if(c.MoneyCash > 99999 && c.MoneyCash <= 999999) {
    			c.getPA().sendFrame126(""+c.MoneyCash/1000+"K", 8134); 
    			} else if(c.MoneyCash > 999999 && c.MoneyCash <= 2147483647) {
    				c.getPA().sendFrame126(""+c.MoneyCash/1000000+"M", 8134);
    			} else {
    					c.getPA().sendFrame126(""+c.MoneyCash+"", 8134);
    				}
    			c.getPA().sendFrame126(""+c.MoneyCash+"", 8135);
    			}
    		}
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2015
    Posts
    607
    Thanks given
    520
    Thanks received
    660
    Rep Power
    0
    Code:
    if ((interfaceButtonAction == 557)
    							&& (promptInput.length() > 0)) {
    						if (promptInput.toLowerCase().contains("k")) {
    							promptInput = promptInput.replaceAll("k", "000");
    						} else if (promptInput.toLowerCase().contains("m")) {
    							promptInput = promptInput.replaceAll("m", "000000");
    						} else if (promptInput.toLowerCase().contains("b")) {
    							promptInput = promptInput.replaceAll("b",
    									"000000000");
    						}
    						inputString = new StringBuilder("::withdraw ").append(
    								promptInput).toString();
    						sendPacket(103);
    						return;
    					}
    Reply With Quote  
     

  5. #5  
    Member Money Pouch Glitch Market Banned


    Luke132's Avatar
    Join Date
    Dec 2007
    Age
    35
    Posts
    12,574
    Thanks given
    199
    Thanks received
    7,106
    Rep Power
    5000
    how the hell...

    and i thought the bug in my sig was bad, might replace it with this

    Attached imageAttached image
    Reply With Quote  
     


  6. #6  
    Registered Member
    Join Date
    Dec 2014
    Posts
    16
    Thanks given
    1
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Swiffy View Post
    Code:
    if ((interfaceButtonAction == 557)
    							&& (promptInput.length() > 0)) {
    						if (promptInput.toLowerCase().contains("k")) {
    							promptInput = promptInput.replaceAll("k", "000");
    						} else if (promptInput.toLowerCase().contains("m")) {
    							promptInput = promptInput.replaceAll("m", "000000");
    						} else if (promptInput.toLowerCase().contains("b")) {
    							promptInput = promptInput.replaceAll("b",
    									"000000000");
    						}
    						inputString = new StringBuilder("::withdraw ").append(
    								promptInput).toString();
    						sendPacket(103);
    						return;
    					}
    Still having the same problem
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by Vanished View Post
    Still having the same problem
    Code:
    if (playerCommand.toLowerCase().startsWith("withdraw")) {
    					try {
    						String[] cAmount = playerCommand.split(" ");
    						if (cAmount[1].toLowerCase().endsWith("k")) {
    							cAmount[1] = cAmount[1].substring(0, (cAmount[1].length() - 1)) + "000";
    						} else if (cAmount[1].toLowerCase().endsWith("m")) {
    							cAmount[1] = cAmount[1].substring(0, (cAmount[1].length() - 1)) + "000000";
    						} else if (cAmount[1].toLowerCase().endsWith("b")) {
    							cAmount[1] = cAmount[1].substring(0, (cAmount[1].length() - 1)) + "000000000";
    						} else if (cAmount[1].toLowerCase().equals("all")) {
    							cAmount[1] = "" + c.coinPouch;
    						}
    						int amount = Integer.parseInt(cAmount[1]);
    						int cashAmount = c.getItems().getItemAmount(995);
    						if (c.inWild()) {
    							c.sendMessage("You must wait until you have left the Wilderness!");
    							return;
    						} else if (amount <= 0) {
    							c.sendMessage("You cannot withdraw nothing.");
    							return;
    						} else if (c.coinPouch == 0) {
    							c.sendMessage("Theres nothing to withdraw!");
    							c.CoinPouch.refreshCoinPouch();
    							return;
    						} else {
    							if ((cashAmount + amount) > 2147483647 || (cashAmount + amount) < 0) {
    								if (cashAmount == 2147483647) {
    									c.sendMessage("You cannot withdraw anything because you have maximum cash in your inventory!");
    									return;
    								} else if (cashAmount == 2147483646) {
    									c.sendMessage("You may only withdraw 1 gold coin!");
    									amount = 1;
    								} else {
    									c.sendMessage("Unable to withdraw " + amount + ", withdrawn: " + (2147483647 - cashAmount) + " gold coins!");
    									amount = (2147483647 - cashAmount);
    								}
    							}
    						}
    						if (c.coinPouch - amount >= 0) {
    							c.CoinPouch.removeCoins(amount);
    							c.CoinPouch.refreshCoinPouch();
    						}
    					} catch (Exception e) {
    					}
    				}
    Reply With Quote  
     

  8. #8  
    What is a Java?

    Leon.'s Avatar
    Join Date
    Oct 2013
    Posts
    1,919
    Thanks given
    173
    Thanks received
    802
    Rep Power
    5000
    Quote Originally Posted by Luke132 View Post
    how the hell...

    and i thought the bug in my sig was bad, might replace it with this
    Dude i couldnt help myself laughing at that quote in your sig wtf

    Attached image
    Attached image

    Reply With Quote  
     

  9. #9  
    Donator

    Join Date
    Oct 2014
    Posts
    146
    Thanks given
    5
    Thanks received
    18
    Rep Power
    4
    I've had the same problem. Here is how I managed to fix it:

    Find wherever this piece of code is, and delete it (In Client.java).
    Code:
    if (interfaceButtonAction == 557
    							&& promptInput.length() > 0) {
    					if (promptInput.toLowerCase().contains("k")) {
    					promptInput = promptInput.replaceAll("k", "000");
    					} else if (promptInput.toLowerCase().contains("m")) {
    					promptInput = promptInput.replaceAll("m", "000000");
    					} else if (promptInput.toLowerCase().contains("b")) {
    					promptInput = promptInput.replaceAll("b", "000000000");
    					}
    						inputString = "::withdraw " + promptInput;
    						sendPacket(103);
    
    					}
    Then copy and paste the code above, and paste it right under here:
    Code:
    if (friendsListAction == 2 && friendsCount > 0) {
    						long l1 = TextClass.longForName(promptInput);
    						delFriend(l1);
    					}
    This worked for me, so I'm pretty sure it'll work for you.
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Feb 2014
    Posts
    1,204
    Thanks given
    138
    Thanks received
    450
    Rep Power
    0
    Quote Originally Posted by Luke132 View Post
    how the hell...

    and i thought the bug in my sig was bad, might replace it with this
    always room for more, wtf lmao
    Reply With Quote  
     


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. Money Pouch Glitch
    By Yambar_ in forum Help
    Replies: 1
    Last Post: 06-02-2013, 04:39 PM
  2. [718/742] Money pouch glitch
    By Mayne in forum Help
    Replies: 6
    Last Post: 05-27-2013, 07:22 PM
  3. Money Pouch Glitch (742)
    By Yambar_ in forum Help
    Replies: 0
    Last Post: 04-26-2013, 02:21 AM
  4. Money Pouch glitch [PI]
    By p loves c in forum Help
    Replies: 1
    Last Post: 02-15-2013, 03:07 AM
  5. [PI] Wierd money Pouch glitch , will +rep
    By AddictivePkz in forum Help
    Replies: 22
    Last Post: 09-19-2012, 11:11 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
  •