- marked as minor
Gift purchase not working
Issue #851
closed
Description: When i try to buy something as a gift i get a "Purchaes failed" message..
Runtime error:
java.lang.NumberFormatException: For input string: ""
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:592)
at java.lang.Integer.parseInt(Integer.java:615)
at com.eu.habbo.habbohotel.catalog.CatalogManager.purchaseItem(CatalogManager.java:1258)
at com.eu.habbo.messages.incoming.catalog.CatalogBuyItemEvent.handle(CatalogBuyItemEvent.java:219)
at com.eu.habbo.messages.PacketManager.handlePacket(PacketManager.java:150)
at com.eu.habbo.threading.runnables.ChannelReadHandler.run(ChannelReadHandler.java:27)
at com.eu.habbo.threading.ThreadPooling$1.run(ThreadPooling.java:52)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
at java.lang.Thread.run(Thread.java:748)
Media: Have none
Comments (10)
-
reporter -
reporter - edited description
-
repo owner - changed status to resolved
Looks like you try to buy a guild furniture as a gift. Buying guild furniture only works from the GUILD FURNITURES page layout
-
reporter - changed status to open
That error is from me trying to buy a holodice.. A normal item on a normal catalog page.. But i get a error no matter what i try to buy as a gift
-
I've got the exact same problem. No way to buy any gifts tho.
-
repo owner Can't replicate. Buying gifts work fine for me.
Did you configure all packaging correctly and have you set the interaction types etc?
-
Run this:
DELETE FROM gift_wrappers; INSERT INTO gift_wrappers (sprite_id, item_id) SELECT sprite_id, id FROM items_base WHERE item_name LIKE 'present_gen%'; UPDATE gift_wrappers SET type = 'gift'; INSERT INTO gift_wrappers (sprite_id, item_id) SELECT sprite_id, id FROM items_base WHERE item_name LIKE 'present_wrap%';
Works just fine. :P
-
works fine now indeed. thank you!
-
repo owner - changed status to closed
Resolved by op.
-
repo owner - removed version
Removing version: 1.10.0 (automated comment)
- Log in to comment