From: Daniel H. <wik...@us...> - 2006-09-01 12:32:04
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/item In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv11413/src/games/stendhal/server/entity/item Modified Files: Scroll.java Log Message: fixed bug [ 1550327 ] Stendhal: Marked scrolls should be created in your bag Index: Scroll.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/item/Scroll.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Scroll.java 31 Aug 2006 10:19:57 -0000 1.22 --- Scroll.java 1 Sep 2006 12:31:59 -0000 1.23 *************** *** 134,146 **** */ private boolean useEmptyScroll(Player player) { ! Item item = StendhalRPWorld.get().getRuleManager().getEntityManager().getItem( "marked_scroll"); ! StendhalRPZone zone = (StendhalRPZone) StendhalRPWorld.get().getRPZone(player.get("zoneid")); ! zone.assignRPObjectID(item); ! item.setX(player.getX()); ! item.setY(player.getY()); ! item.put("infostring", "" + player.getID().getZoneID() + " " + player.getX() + " " + player.getY()); ! zone.add(item); return true; } --- 134,142 ---- */ private boolean useEmptyScroll(Player player) { ! Item markedScroll = StendhalRPWorld.get().getRuleManager().getEntityManager().getItem( "marked_scroll"); ! markedScroll.put("infostring", "" + player.getID().getZoneID() + " " + player.getX() + " " + player.getY()); ! player.equip(markedScroll, true); return true; } |