xXObanXx Posted August 6, 2012 Posted August 6, 2012 Hello maxcheaters, as the subject says i want to tell me a code that with config or not to can change the Private Store Coin (e.g to buy from private stores with Gold Knight, not with adena!) Any solution about that?! Thank you! Edit: I found the code about that! Problem solved! Someone to lock this topic!
0 Joκκєrino Posted August 6, 2012 Posted August 6, 2012 Take a look at L2jFrozen's source. There should be something like.
0 DONALD TRUMP 2016 Posted August 6, 2012 Posted August 6, 2012 Client packets: Request Private Store Buy Request Private Store Sell Set Private Store List Buy Server Packets: Private Store List Buy Private Store List Sell Private Store Manage List Buy Private Store Manage List Sell Model: TradeList
0 xXObanXx Posted August 6, 2012 Author Posted August 6, 2012 Client packets: Request Private Store Buy Request Private Store Sell Set Private Store List Buy Server Packets: Private Store List Buy Private Store List Sell Private Store Manage List Buy Private Store Manage List Sell Model: TradeList i checked that files before create that topic.... the only think that i found is on PrivateStoreListBuy.java and PrivateStoreListSell.java (serverpackets) and i forgot to say that i use L2jserver H5 Last revision! private final long _playerAdena; .......... _playerAdena = player.getAdena(); i think maybe this need a change... but with what i have to replace it?!
0 vampir Posted August 6, 2012 Posted August 6, 2012 replace getAdena with player.getInventory().getItemByItemId - or something like this but for sure u will need to change more than this 2 files.
0 xXObanXx Posted August 6, 2012 Author Posted August 6, 2012 replace getAdena with player.getInventory().getItemByItemId - or something like this but for sure u will need to change more than this 2 files. so can you check it better to help me to make it with config or not?!
0 Mhoska Posted August 6, 2012 Posted August 6, 2012 replace getAdena with player.getInventory().getItemByItemId - or something like this but for sure u will need to change more than this 2 files. this is it, just change it from getAdena to player.getInventory().getItemByItemId
0 xXObanXx Posted August 6, 2012 Author Posted August 6, 2012 this is it, just change it from getAdena to player.getInventory().getItemByItemId that is the replaces that i get and the errors that i have... public class PrivateStoreManageListSell extends L2GameServerPacket { private final int _objId; - private final long _playerAdena; + private final L2ItemInstance _playerCoin; private final boolean _packageSale; private final TradeItem[] _itemList; private final TradeItem[] _sellList; public PrivateStoreManageListSell(L2PcInstance player, boolean isPackageSale) { _objId = player.getObjectId(); - _playerAdena = player.getAdena(); + _playerCoin = player.getInventory().getItemByItemId(500); player.getSellList().updateItems(); _packageSale = isPackageSale; _itemList = player.getInventory().getAvailableItems(player.getSellList()); _sellList = player.getSellList().getItems(); } @Override protected final void writeImpl() { writeC(0xa0); // section 1 writeD(_objId); writeD(_packageSale ? 1 : 0); // Package sell writeQ(_playerCoin); // section2 writeD(_itemList.length); // for potential sells but i make an other way that i don't have errors but i don't know if it's ok! public class PrivateStoreManageListSell extends L2GameServerPacket { private final int _objId; - private final L2ItemInstance _playerCoin; private final boolean _packageSale; private final TradeItem[] _itemList; private final TradeItem[] _sellList; public PrivateStoreManageListSell(L2PcInstance player, boolean isPackageSale) { _objId = player.getObjectId(); - _playerCoin = player.getInventory().getItemByItemId(500); + player.getInventory().getItemByItemId(500); player.getSellList().updateItems(); _packageSale = isPackageSale; _itemList = player.getInventory().getAvailableItems(player.getSellList()); _sellList = player.getSellList().getItems(); } @Override protected final void writeImpl() { writeC(0xa0); // section 1 writeD(_objId); writeD(_packageSale ? 1 : 0); // Package sell - writeQ(_playerCoin); // section2 writeD(_itemList.length); // for potential sells is that ok?!
0 xXObanXx Posted August 6, 2012 Author Posted August 6, 2012 why dont u try it and tell us? :) ok i will!!!
0 CorruptedEmperor Posted August 6, 2012 Posted August 6, 2012 I must make the same thing for Interlude?
0 xXObanXx Posted August 6, 2012 Author Posted August 6, 2012 I must make the same thing for Interlude? i think yes but maybe you will need an adapt...
0 Mhoska Posted August 7, 2012 Posted August 7, 2012 I must make the same thing for Interlude? yes, just try it.
0 xXObanXx Posted August 8, 2012 Author Posted August 8, 2012 OOOOOk! and that way that i have tried doesn't work! any solution to how to do it?!
0 xXObanXx Posted August 9, 2012 Author Posted August 9, 2012 Problem Solved! Someone to lock this topic! Thanks!
Question
xXObanXx
Hello maxcheaters, as the subject says i want to tell me a code that with config or not to can change the Private Store Coin (e.g to buy from private stores with Gold Knight, not with adena!)
Any solution about that?!
Thank you!
Edit:
I found the code about that!
Problem solved!
Someone to lock this topic!
15 answers to this question
Recommended Posts