This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
BAN_L2JDev
Hello everyone, the members.
good I have difficulty making the Craft on engine fakeplayer
I would like to leave them as craft already managed to buy and sell, but the craft does not hit all the lines can anyone?
aCis 383 Use
this engine base is already being used plus this and sell tried to make the craft more is going wrong.
@Override public void run() { if (Rnd.get(100) < Config.PHANTOM_PRIVATE_BUY_CHANCE && Config.PHANTOM_PRIVATE_STORE) { fakePlayer.addItem(":", 57, 1000000000, fakePlayer, false); fakePlayer.getBuyList().addItemByItemId(getPrivateBuy(), 1, Rnd.get(1000, 24678)); fakePlayer.getBuyList().setTitle(getPrivateBuy_Title()); fakePlayer.sitDown(); fakePlayer.setStoreType(StoreType.BUY); fakePlayer.broadcastUserInfo(); fakePlayer.broadcastPacket(new PrivateStoreMsgBuy(fakePlayer)); } else if (Rnd.get(100) < Config.PHANTOM_PRIVATE_SELL_CHANCE && Config.PHANTOM_PRIVATE_STORE) { fakePlayer.addItem(":", getPrivateSell(), 1, fakePlayer, true); for (ItemInstance itemDrop : fakePlayer.getInventory().getItems()) fakePlayer.getSellList().addItem(itemDrop.getObjectId(), 1, Rnd.get(100456789, 150456789)); fakePlayer.getSellList().setTitle(getPrivateSell_Title()); fakePlayer.getSellList().setPackaged(StoreType.SELL == StoreType.PACKAGE_SELL); fakePlayer.sitDown(); fakePlayer.setStoreType(StoreType.SELL); fakePlayer.broadcastUserInfo(); fakePlayer.broadcastPacket(new PrivateStoreMsgSell(fakePlayer)); } else { if (fakePlayer.isSpawnProtected()) fakePlayer.setSpawnProtection(false); fakePlayer.rndWalk(); PhantomStore.startWalk(fakePlayer); } } }0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now