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
|
|
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

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
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
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.
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

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


Syntax issue in items.txt, ctrl + z to undo previous changes. Might fix the unstackable coin issue.
| « Error running source | Elvarg/OsrsPK client cache downloader » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |