root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/serverpackets/SM_INFLUENCE_RATIO.java
| 664 | 2413 | ||
|---|---|---|---|
18 | 18 | ||
19 | import java.nio.ByteBuffer; | 19 | import java.nio.ByteBuffer; |
20 | 20 | ||
21 | import com.aionemu.gameserver.model.siege.Influence; | ||
21 | import com.aionemu.gameserver.network.aion.AionConnection; | 22 | import com.aionemu.gameserver.network.aion.AionConnection; |
22 | import com.aionemu.gameserver.network.aion.AionServerPacket; | 23 | import com.aionemu.gameserver.network.aion.AionServerPacket; |
24 | import com.aionemu.gameserver.services.SiegeService; | ||
23 | 25 | ||
24 | /** | 26 | /** |
25 | * @author Nemiroff | 27 | * @author Nemiroff |
... | ... | ||
34 | @Override | 36 | @Override |
35 | protected void writeImpl(AionConnection con, ByteBuffer buf) | 37 | protected void writeImpl(AionConnection con, ByteBuffer buf) |
36 | { | 38 | { |
37 | writeD(buf, 5749); | 39 | Influence inf = Influence.getInstance(); |
38 | writeF(buf, (float) 0.34); //elyos | 40 | |
39 | writeF(buf, (float) 0.33); //asmo | 41 | writeD(buf, SiegeService.getInstance().getSiegeTime()); |
40 | writeF(buf, (float) 0.33); //balaur | 42 | writeF(buf, inf.getElyos()); |
41 | // asmo + balaur + elyos = 1 | 43 | writeF(buf, inf.getAsmos()); |
44 | writeF(buf, inf.getBalaur()); | ||
45 | | ||
46 | //TODO: 1.9 has writeH(buf, 3) with balauria values | ||
42 | writeH(buf, 1); | 47 | writeH(buf, 1); |
43 | writeD(buf, 400010000); //worlid ? | 48 | |
44 | writeF(buf, (float) 0.34); //elyos | 49 | writeD(buf, 400010000); |
45 | writeF(buf, (float) 0.33); //asmo | 50 | writeF(buf, inf.getElyos()); |
46 | writeF(buf, (float) 0.33); //balaur | 51 | writeF(buf, inf.getAsmos()); |
47 | 52 | writeF(buf, inf.getBalaur()); | |
53 | | ||
48 | } | 54 | } |
49 | } | 55 | } |
Download diff