--- java/net/sf/l2j/gameserver/handler/itemhandlers/RollingDice.java 2006-04-08 10:32:41.046875000 +0600
+++ java/net/sf/l2j/gameserver/handler/itemhandlers/RollingDice.java 2006-04-09 20:12:17.171875000 +0600
@@ -50,16 +50,18 @@
if (itemId == 4625 || itemId == 4626 || itemId == 4627 || itemId == 4628)
{
int number = Rnd.get(1, 6);
+ int xcoord = Rnd.get(-30, 30);
+ int ycoord = Rnd.get(-30, 30);
- Dice d = new Dice (activeChar.getObjectId(),item.getItemId(),number,activeChar.getX()-30,activeChar.getY()-30,activeChar.getZ() );
+ Dice d = new Dice (activeChar.getObjectId(),item.getItemId(),number,activeChar.getX()-xcoord,activeChar.getY()-ycoord,activeChar.getZ() );
Broadcast.toKnownPlayers(activeChar, d);
-
+ activeChar.sendPacket(d);
+
SystemMessage sm = new SystemMessage(SystemMessage.S1_ROLLED_S2);
sm.addString(activeChar.getName());
sm.addNumber(number);
activeChar.sendPacket(sm);
- activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
if (!TownManager.getInstance().checkIfInZone(activeChar))
Broadcast.toKnownPlayers(activeChar, sm);