/**
* License
* THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS
* CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE").
* THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.
* ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR
* COPYRIGHT LAW IS PROHIBITED.
*
* BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND
* AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE
* MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED
* HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
*
*/
package l1j.server.server.serverpackets;
import l1j.server.server.Opcodes;
import l1j.server.server.model.Instance.L1PcInstance;
import l1j.server.server.utils.Random;
public class S_ActiveSpells extends ServerBasePacket {
private byte[] _byte = null;
public S_ActiveSpells(L1PcInstance pc) {
int[] UByte8 = new int[101];
byte[] randBox = new byte[2];
randBox[0] = Random.nextByte();
randBox[1] = Random.nextByte();
writeC(Opcodes.S_OPCODE_ACTIVESPELLS);
writeC(0x14);
for (int i : UByte8) {
if (i != 72) {
writeC(i);
} else {
writeD(0x00000000); // 時間???
}
}
writeByte(randBox);
}
@Override
public byte[] getContent() {
if (_byte == null) {
_byte = _bao.toByteArray();
}
return _byte;
}
}
他的RANDOM都沒東西 請問大大要怎排除呢
Original issue reported on code.google.com by han_ya0...@yahoo.com.tw on 14 Apr 2011 at 3:12
Original issue reported on code.google.com by
han_ya0...@yahoo.com.tw
on 14 Apr 2011 at 3:12