Jump to content
  • 0

[Help] Craft Java


BAN_L2JDev

Question

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);
                }
        }
    }

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...