broadcastMessage(_sm3, true);
_playerOne = L2World.getInstance().getPlayer(_playerOneName); // why this...
try {
result=" ("+playerOneHp+"hp vs "+playerTwoHp+"hp - "+hpDiffOne+" vs "+hpDiffTwo+") "+_playerOneName+" win "+pointDiff+" points";
L2ItemInstance item = _playerOne.getInventory().addItem("Olympiad", 6651, 30, _playerOne, null);
InventoryUpdate iu = new InventoryUpdate();
iu.addModifiedItem(item);
_playerOne.sendPacket(iu);
SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
sm.addItemName(item.getItemId());
sm.addNumber(30);
_playerOne.sendPacket(sm);
} catch (Exception e) { }
}
else if (playerOneHp==0 || hpDiffOne > hpDiffTwo)
{
int pointDiff;
pointDiff = (playerOnePoints / 3);
playerTwoStat.set(POINTS, playerTwoPoints + pointDiff);
playerOneStat.set(POINTS, playerOnePoints - pointDiff);
_sm.addString(_playerTwo.getName());
broadcastMessage(_sm, true);
_sm2.addString(_playerTwo.getName());
_sm2.addNumber(pointDiff);
broadcastMessage(_sm2, true);
_sm3.addString(_playerOne.getName());
_sm3.addNumber(pointDiff);
broadcastMessage(_sm3, true);
_playerTwo = L2World.getInstance().getPlayer(_playerTwoName); // why this...
try {
result=" ("+playerOneHp+"hp vs "+playerTwoHp+"hp - "+hpDiffOne+" vs "+hpDiffTwo+") "+_playerTwoName+" win "+pointDiff+" points";
L2ItemInstance item = _playerTwo.getInventory().addItem("Olympiad", 6651, 30, _playerTwo, null);
InventoryUpdate iu = new InventoryUpdate();
iu.addModifiedItem(item);
_playerTwo.sendPacket(iu);
SystemMessage sm = new SystemMessage(SystemMessageId.EARNED_S2_S1_S);
sm.addItemName(item.getItemId());
sm.addNumber(30);
_playerTwo.sendPacket(sm);
} catch (Exception e) { }
}
else