From: SourceForge.net <no...@so...> - 2007-12-31 20:22:35
|
Bugs item #1851298, was opened at 2007-12-15 14:12 Message generated for change (Settings changed) made by martinfuchs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=1851298&group_id=1111 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Martin Fuchs (martinfuchs) Summary: amount of empty flasks not shown Initial Comment: The flasks a player can buy in Semos Inn are stackable but the amount of flasks you carry with you is not shown in your bag. So it looks like you have only one. If you use /drop the flasks are normally dropped one by one. i figured that out when i bought 100 of them and first thought Margaret has cheated on me.^^ [14:00] <gummipferd> buy 100 flask [14:00] <Margaret> 100 flasks will cost 500. Do you want to buy them? [14:00] <gummipferd> yes [14:00] <Margaret> Congratulations! Here are your flasks! gummipferd ---------------------------------------------------------------------- Comment By: Martin Fuchs (martinfuchs) Date: 2007-12-31 21:21 Message: Logged In: YES user_id=1534223 Originator: NO Yes, this is the correct place to define the flask as stackable item in the client: register("item", "container", StackableItem.class); But you have to register it as class "container", because it is defined as such in items/container.xml: <item name="flask"> <type class="container" subclass="bottle" tileid="-1"/> <description>You see a flask. This flask is good for storing medicine.</description> <implementation class-name="games.stendhal.server.entity.item.StackableItem"/> <attributes> <quantity value="1"/> </attributes> <weight value="1.0"/> <value value="1"/> <equipable> <slot name="bag"/> </equipable> </item> So this change makes all containers appear as stackable items with amount displayed in the client. ---------------------------------------------------------------------- Comment By: Katie (kymara) Date: 2007-12-16 12:49 Message: Logged In: YES user_id=1560922 Originator: NO container class type isn't registered in src/games/stendhal/client/entity/EntityMap.java - may this be the problem? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2007-12-15 14:30 Message: Logged In: NO I was the first to find it out ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=1851298&group_id=1111 |