root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/serverpackets/SM_TRADELIST.java
| 1367 | 2343 | ||
|---|---|---|---|
27 | /** | 27 | /** |
28 | * | 28 | * |
29 | * @author alexa026 | 29 | * @author alexa026 |
30 | * modified by ATracer | 30 | * modified by ATracer, Sarynth |
31 | */ | 31 | */ |
32 | public class SM_TRADELIST extends AionServerPacket | 32 | public class SM_TRADELIST extends AionServerPacket |
33 | { | 33 | { |
34 | 34 | ||
35 | private int targetObjectId; | 35 | private int targetObjectId; |
36 | private TradeListTemplate tlist; | 36 | private TradeListTemplate tlist; |
37 | 37 | private int buyPriceModifier; | |
38 | public SM_TRADELIST(Npc npc, TradeListTemplate tlist) | 38 | |
39 | public SM_TRADELIST(Npc npc, TradeListTemplate tlist, int buyPriceModifier) | ||
39 | { | 40 | { |
40 | this.targetObjectId = npc.getObjectId(); | 41 | this.targetObjectId = npc.getObjectId(); |
41 | this.tlist = tlist; | 42 | this.tlist = tlist; |
43 | this.buyPriceModifier = buyPriceModifier; | ||
42 | } | 44 | } |
43 | 45 | ||
44 | @Override | 46 | @Override |
... | ... | ||
48 | { | 50 | { |
49 | writeD(buf, targetObjectId); | 51 | writeD(buf, targetObjectId); |
50 | writeC(buf, tlist.isAbyss() ? 2 : 1); //abyss or normal | 52 | writeC(buf, tlist.isAbyss() ? 2 : 1); //abyss or normal |
51 | writeC(buf, 200); | 53 | writeD(buf, buyPriceModifier); // Vendor Buy Price Modifier |
52 | writeH(buf, 0);//unk | 54 | writeH(buf, tlist.getCount()); |
53 | writeC(buf, 0); // unknown | ||
54 | writeH(buf, tlist.getCount()); // unknown | ||
55 | for(TradeTab tradeTabl : tlist.getTradeTablist()) | 55 | for(TradeTab tradeTabl : tlist.getTradeTablist()) |
56 | { | 56 | { |
57 | writeD(buf, tradeTabl.getId()); | 57 | writeD(buf, tradeTabl.getId()); |
Download diff