Thread: Necrotic/Ruse tax bag help please

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1 Necrotic/Ruse tax bag help please 
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    441
    Thanks given
    49
    Thanks received
    24
    Discord
    View profile
    Rep Power
    37
    hey guys I tried adding a tax bag and now my coins don't stack for some reason like if I have 28 coins it takes 28 spaces this is what I added can anyone please help me or let me know if you need more info thanks everyone



    what I added


    in ItemActionPacketListener

    code:
    case 10832: //Light Tax Bag
    player.getInventory().delete(10832, 1);
    player.getInventory().add(995, 250000000);
    player.getInventory().add(10831, 1);
    player.getClickDelay().reset();
    return;
    case 10833: //Normal Tax Bag
    player.getInventory().delete(10833, 1);
    player.getInventory().add(995, 500000000);
    player.getInventory().add(10831, 1);
    player.getClickDelay().reset();
    return;
    case 10834: //Hefty Tax Bag
    player.getInventory().delete(10834, 1);
    player.getInventory().add(995, 1000000000);
    player.getInventory().add(10831, 1);
    player.getClickDelay().reset();
    return;
    case 10835: //Bulging Tax Bag
    player.getInventory().delete(10835, 1);
    player.getInventory().add(995, 2000000000);
    player.getInventory().add(10831, 1);
    player.getClickDelay().reset();
    return;
    case 10831: //Filling Empty Tax Bag
    if(player.getInventory().contains(10831) && player.getInventory().getAmount(995) >= 2000000000) {
    player.getInventory().delete(995, 2000000000).delete(10831, 1).add(10835, 1);
    player.getPacketSender().sendMessage("You fill the Tax Bag!");
    } else {
    player.getPacketSender().sendMessage("You need 2B Cash to fill this bag.");
    }
    break;


    in item.txt

    code:
    Item Id: 10832
    Name: Light tax bag
    Examine: A Bg Containing 250 Million Coins!
    Value: 250000000
    Stackable: false
    Noted: false
    Double-handed: false
    Equipment type: WEAPON
    Is Weapon: false
    finish

    Item Id: 10833
    Name: Normal tax bag
    Examine: A Bag Containing 500 Million Coins!
    Value: 500000000
    Stackable: false
    Noted: false
    Double-handed: false
    Equipment type: WEAPON
    Is Weapon: false
    finish

    Item Id: 10834
    Name: Hefty tax bag
    Examine: A Bag Containing 1 Billion Coins!
    Value: 1000000000
    Stackable: false
    Noted: false
    Double-handed: false
    Equipment type: WEAPON
    Is Weapon: false
    finish

    Item Id: 10835
    Name: Bulging taxbag
    Examine: A Bag Containing 2 Billion Coins!
    Value: 2000000000
    Stackable: false
    Noted: false
    Double-handed: false
    Equipment type: WEAPON
    Is Weapon: false
    finish



    can anyone please help me with this.. thanks again
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2018
    Age
    24
    Posts
    33
    Thanks given
    2
    Thanks received
    3
    Rep Power
    36
    Just a quick question... why aren’t these stackable? Like what’s the point of you having them be unstackable?


    Sent from my iPhone using Tapatalk
    Reply With Quote  
     

  3. #3  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    441
    Thanks given
    49
    Thanks received
    24
    Discord
    View profile
    Rep Power
    37
    Quote Originally Posted by iToxicDreamz View Post
    Just a quick question... why aren’t these stackable? Like what’s the point of you having them be unstackable?


    Sent from my iPhone using Tapatalk
    just changed that right before you posted..
    you think that will fix it did not get a chance to try yet
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2018
    Age
    24
    Posts
    33
    Thanks given
    2
    Thanks received
    3
    Rep Power
    36
    Try it out, I’m not quite sure. But I don’t see anything wrong with the code honestly


    Sent from my iPhone using Tapatalk
    Reply With Quote  
     

  5. #5  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    441
    Thanks given
    49
    Thanks received
    24
    Discord
    View profile
    Rep Power
    37
    Quote Originally Posted by iToxicDreamz View Post
    Try it out, I’m not quite sure. But I don’t see anything wrong with the code honestly


    Sent from my iPhone using Tapatalk
    still doing the same I don't get it
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Nov 2018
    Age
    24
    Posts
    33
    Thanks given
    2
    Thanks received
    3
    Rep Power
    36
    Quote Originally Posted by KushKings View Post
    still doing the same I don't get it

    Why are the tax bags set to Equipment type: WEAPON??? O.o Are the players supposed to equip it or something? And I don't know why that's happening, and I don't quite see how this code can be affecting your GP not being stackable anymore... But what I'm assuming, is that once the money goes in, it's somehow converted into unstackable.. but just a question, like when you spawn GP is it stackable at that certain point in time or is it just overall unstackable? Idk if you can understand the question clearly.
    Reply With Quote  
     

  7. #7  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    441
    Thanks given
    49
    Thanks received
    24
    Discord
    View profile
    Rep Power
    37
    its overall unstackable


    and this is what eclipse ois saying now

    code:
    Dec 29, 2018 12:52:45 AM com.ruse.GameServer main
    INFO: Initializing the loader...
    Exception in thread "GameLoadingThread" java.lang.NullPointerException
    at com.ruse.model.definitions.ItemDefinition.init(Ite mDefinition.java:75)
    at com.ruse.GameLoader.lambda$4(GameLoader.java:79)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Set "Necrotic.json" to Read Only. (Anti-corruption)
    Dec 29, 2018 12:53:13 AM com.ruse.GameServer main
    INFO: The loader has finished loading utility tasks.
    Dec 29, 2018 12:53:13 AM com.ruse.GameServer main
    INFO: Necrotic is now online on port 43594!



    also what should it be other then weapon ? its some code I found was just going with what he had

    Quote Originally Posted by iToxicDreamz View Post
    Why are the tax bags set to Equipment type: WEAPON??? O.o Are the players supposed to equip it or something? And I don't know why that's happening, and I don't quite see how this code can be affecting your GP not being stackable anymore... But what I'm assuming, is that once the money goes in, it's somehow converted into unstackable.. but just a question, like when you spawn GP is it stackable at that certain point in time or is it just overall unstackable? Idk if you can understand the question clearly.
    sent a new message but forgot to quote u in it
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Nov 2018
    Age
    24
    Posts
    33
    Thanks given
    2
    Thanks received
    3
    Rep Power
    36
    Quote Originally Posted by KushKings View Post
    its overall unstackable


    and this is what eclipse ois saying now

    code:
    Dec 29, 2018 12:52:45 AM com.ruse.GameServer main
    INFO: Initializing the loader...
    Exception in thread "GameLoadingThread" java.lang.NullPointerException
    at com.ruse.model.definitions.ItemDefinition.init(Ite mDefinition.java:75)
    at com.ruse.GameLoader.lambda$4(GameLoader.java:79)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Set "Necrotic.json" to Read Only. (Anti-corruption)
    Dec 29, 2018 12:53:13 AM com.ruse.GameServer main
    INFO: The loader has finished loading utility tasks.
    Dec 29, 2018 12:53:13 AM com.ruse.GameServer main
    INFO: Necrotic is now online on port 43594!



    also what should it be other then weapon ? its some code I found was just going with what he had



    sent a new message but forgot to quote u in it
    Find the item definitions for your Currency, and show me what it looks like... You've probably set it to be unstackable by mistake.

    EDIT: And that NullPointerException you're getting... It's common for all ruse releases I believe, and idk shit about it.
    Reply With Quote  
     

  9. #9  
    Registered Member KushKings's Avatar
    Join Date
    Jul 2018
    Posts
    441
    Thanks given
    49
    Thanks received
    24
    Discord
    View profile
    Rep Power
    37
    Item Id: 995
    Name: Coins
    Examine: The amount of coins, or when in the shop interface
    Value: 1
    Stackable: true
    Noted: false
    Double-handed: false
    Equipment type: WEAPON
    Is Weapon: false
    finish


    also not sure why they have it as weapon what should I change that to
    Reply With Quote  
     

  10. #10  
    Project Asgardia

    Gandalf's Avatar
    Join Date
    Nov 2011
    Posts
    789
    Thanks given
    32
    Thanks received
    396
    Discord
    View profile
    Rep Power
    2474
    Syntax issue in items.txt, ctrl + z to undo previous changes. Might fix the unstackable coin issue.
    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. Necrotic?Ruse client help please
    By KushKings in forum Help
    Replies: 3
    Last Post: 12-24-2018, 05:33 AM
  2. please help Necrotic/Ruse wild ditch
    By KushKings in forum Help
    Replies: 7
    Last Post: 12-23-2018, 02:00 PM
  3. Need necrotic/ruse client help please
    By KushKings in forum Help
    Replies: 1
    Last Post: 12-18-2018, 07:23 AM
  4. Necrotic/Ruse imp hunting help please
    By KushKings in forum Help
    Replies: 8
    Last Post: 12-18-2018, 07:18 AM
  5. [RUSE] Tax Bags
    By FKN Jake in forum Tutorials
    Replies: 5
    Last Post: 05-19-2018, 11:41 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •