Minor QuestList improvements.

This commit is contained in:
MobiusDev 2015-11-28 09:56:50 +00:00
parent 664e78f5b3
commit 09bf2f36e9

View File

@ -29,7 +29,7 @@ public class QuestList extends L2GameServerPacket
private List<Quest> _activeQuests; private List<Quest> _activeQuests;
private List<Quest> _completedQuests; private List<Quest> _completedQuests;
private L2PcInstance _activeChar; private L2PcInstance _activeChar;
private final static byte[] _info = new byte[128]; private byte[] _info;
public QuestList() public QuestList()
{ {
@ -43,6 +43,7 @@ public class QuestList extends L2GameServerPacket
_activeChar = getClient().getActiveChar(); _activeChar = getClient().getActiveChar();
_activeQuests = _activeChar.getAllActiveQuests(); _activeQuests = _activeChar.getAllActiveQuests();
_completedQuests = _activeChar.getAllCompletedQuests(); _completedQuests = _activeChar.getAllCompletedQuests();
_info = new byte[128];
} }
} }
@ -132,17 +133,17 @@ public class QuestList extends L2GameServerPacket
} }
case 1: case 1:
{ {
add = 0x2; add = 0x02;
break; break;
} }
case 2: case 2:
{ {
add = 0x4; add = 0x04;
break; break;
} }
case 3: case 3:
{ {
add = 0x8; add = 0x08;
break; break;
} }
case 4: case 4: