Thread: [Ruse] - Add collected money to money pouch not inventory or bank

Results 1 to 9 of 9
  1. #1 [Ruse] - Add collected money to money pouch not inventory or bank 
    Registered Member
    Join Date
    Jan 2018
    Posts
    123
    Thanks given
    114
    Thanks received
    10
    Discord
    PattyCakes #9137
    Rep Power
    58
    Hello, the title pretty much says it all but here Is the scenario. Recently adding collectors necklace to a Ruse base - The money goes to bank if the inventory is full, the issue is that when the money in the bank is full it duplicates items to the max integer.. Can someone help me make it so the money does not go to the inventory nor the bank but instead goes to the money pouch at all please, Here is a snippet of the statement -
    Code:
    if (isWearingCollector) {
    
                int amt = GameSettings.DOUBLE_DROPS && player.isDoubleDropsActive() ? item.getAmount() * 3 : GameSettings.DOUBLE_DROPS ? 2 : item.getAmount();
    
                if (player.getInventory().getFreeSlots() <= 0)
                    player.getBank(0).add(new Item(item.getId(), amt), true);
                else
                    player.getInventory().add(item.getId(), amt);
                player.sendMessage("@[email protected] Collector Necklace has picked up "+item.getDefinition().getName()+" to your inventory ");
    //seperate
                if (player.getBank().contains(995, 2147483646)) {
             	   player.sendMessage("you already have max cash and cannot do this.");
                }
             	   return; //here
            }
    someone added the //seperate statement but it is not working still..
    Reply With Quote  
     

  2. #2  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,712
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    631
    Find the method for adding stuff to your money pouch and replace the check code with it. If you do not have one, create it.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    cypher founder

    Join Date
    Feb 2019
    Posts
    26
    Thanks given
    0
    Thanks received
    2
    Rep Power
    15
    Quote Originally Posted by arch337 View Post
    Find the method for adding stuff to your money pouch and replace the check code with it. If you do not have one, create it.
    we didnt find any method for money pounch....can you give simpe how that method need look?
    Reply With Quote  
     

  4. #4  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,712
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    631
    Quote Originally Posted by premjer View Post
    we didnt find any method for money pounch....can you give simpe how that method need look?
    Is there any other method in which it stores stuff to the money pouch?
    If not then it sounds like there is no money pouch in the game.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  5. #5  
    cypher founder

    Join Date
    Feb 2019
    Posts
    26
    Thanks given
    0
    Thanks received
    2
    Rep Power
    15
    Quote Originally Posted by arch337 View Post
    Is there any other method in which it stores stuff to the money pouch?
    If not then it sounds like there is no money pouch in the game.

    i littery type on search add in pounch to search file or methof about pouch didnt find nothing
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2018
    Posts
    123
    Thanks given
    114
    Thanks received
    10
    Discord
    PattyCakes #9137
    Rep Power
    58
    Quote Originally Posted by arch337 View Post
    Find the method for adding stuff to your money pouch and replace the check code with it. If you do not have one, create it.
    What are you going for post count or something. If I knew how to write the method from scratch then I wouldn't be here asking would I? You think it is as simple as just copying code and pasting when there is no statement or method in this server that states when money is being picked up it should go to the pouch... I would have done that before asking if there was. I only ask for help when I am really stuck -_-
    Learning Java
    Reply With Quote  
     

  7. #7  
    Registered Member
    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,712
    Thanks given
    170
    Thanks received
    285
    Discord
    Arch337#1337
    Rep Power
    631
    Quote Originally Posted by RspsLife View Post
    What are you going for post count or something. If I knew how to write the method from scratch then I wouldn't be here asking would I? You think it is as simple as just copying code and pasting when there is no statement or method in this server that states when money is being picked up it should go to the pouch... I would have done that before asking if there was. I only ask for help when I am really stuck -_-
    I have not even mention anything about difficulties at all. All I am trying to tell you is if there is no method for you to use and that you have a money pouch then make one. If there is no such thing as a money pouch then your attempt to make it go into the pouch is not possible.
    So if you can currently can add coins to a money pouch, then how are you doing it? If it is just a right click on coins and "add-to pouch", check your item click packets. There you must be able to grab the method they use for coins.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    no


    Join Date
    Aug 2016
    Posts
    596
    Thanks given
    102
    Thanks received
    85
    Discord
    Goody#1937
    Rep Power
    242
    Code:
    if(item.getId() == 995) 
    MoneyPouch.depositMoney(player, amt)
    ?
    Best excuse for scamming i've gotten yet



    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #9  
    Registered Member
    Join Date
    Jan 2018
    Posts
    123
    Thanks given
    114
    Thanks received
    10
    Discord
    PattyCakes #9137
    Rep Power
    58
    Quote Originally Posted by Goody View Post
    Code:
    if(item.getId() == 995) 
    MoneyPouch.depositMoney(player, amt)
    ?
    Thank you for replying, I tried your statement but it does not seem to work, appreciate you trying for me dude
    Learning Java
    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. Replies: 2
    Last Post: 02-18-2016, 12:04 AM
  2. Money Pouch cant add Coins! Willing to pay 4$
    By haxkRSPS in forum Buying
    Replies: 3
    Last Post: 02-23-2014, 02:27 AM
  3. Replies: 7
    Last Post: 10-08-2013, 08:35 AM
  4. Replies: 8
    Last Post: 07-30-2013, 04:12 PM
  5. [PI] 2147M Go automaticly to money pouch?
    By Jupiterx in forum Help
    Replies: 3
    Last Post: 07-25-2012, 05:05 AM
Tags for this Thread

View Tag Cloud

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