root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/serverpackets/SM_NEARBY_QUESTS.java
| 751 | 2440 | ||
|---|---|---|---|
21 | 21 | ||
22 | import com.aionemu.gameserver.network.aion.AionConnection; | 22 | import com.aionemu.gameserver.network.aion.AionConnection; |
23 | import com.aionemu.gameserver.network.aion.AionServerPacket; | 23 | import com.aionemu.gameserver.network.aion.AionServerPacket; |
24 | import com.aionemu.gameserver.services.QuestService; | ||
24 | 25 | ||
25 | /** | 26 | /** |
26 | * @author MrPoke | 27 | * @author MrPoke |
... | ... | ||
39 | 40 | ||
40 | 41 | ||
41 | @Override | 42 | @Override |
42 | protected void writeImpl(AionConnection con, ByteBuffer buf) | 43 | protected void writeImpl(AionConnection con, ByteBuffer buf) |
43 | { | 44 | { |
44 | writeD(buf, size); | 45 | int playerLevel = con.getActivePlayer().getLevel(); |
45 | for(int id : questIds) | 46 | writeD(buf, size); |
46 | { | 47 | for(int id : questIds) |
47 | writeD(buf, id); | 48 | { |
48 | } | 49 | writeH(buf, id); |
49 | 50 | if (QuestService.checkLevelRequirement(id, playerLevel)) | |
50 | } | 51 | writeH(buf, 0); |
52 | else | ||
53 | writeH(buf, 2); | ||
54 | } | ||
55 | } | ||
51 | } | 56 | } |
Download diff