Jump to content
  • 0

[HELP] How to make Private Stores to sell/buy with any other item!


xXObanXx

Question

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!

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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?!

Link to comment
Share on other sites

  • 0

replace getAdena with player.getInventory().getItemByItemId - or something like this

but for sure u will need to change more than this 2 files.

Link to comment
Share on other sites

  • 0

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?!

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

 

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?!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock