Jump to content

Njoy21

Members
  • Posts

    1
  • Joined

  • Last visited

  • Feedback

    0%

About Njoy21

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Njoy21's Achievements

Newbie

Newbie (1/16)

  • One Year In Rare
  • One Month Later Rare
  • Dedicated Rare
  • Week One Done Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi guys is there anyone that could help me out with some code, pls, here is the code from my PhantomPrivateStore.class _ -is there a way i could sort buy/seel prices in phantom shops by ItemID? like this: - items with ID 5001-6000 Rnd.get (1, 10) -items with ID 6001-7000 Rnd.get(11,20) . . . etc i am a newbie with java searching for l2j guides for like 3 weeks now but couldn figure it out any help is welcome thanky ou all and whish you all the best public void run() { if (!this.player.isDead()) { if (Rnd.get(100) < Config.PHANTOM_PRIVATE_BUY_CHANCE && Config.PHANTOM_PRIVATE_STORE && !Config.ALLOW_PHANTOM_RETAIL_LOC) { this.player.addItem(":", 57, 1000000000, this.player, false); this.player.getBuyList().addItemByItemId(PhantomPrivateStore.getPrivateBuy(), 1, Rnd.get(1, 10)); this.player.getBuyList().setTitle(PhantomPrivateStore.getPrivateBuy_Title()); this.player.sitDown(); this.player.setStoreType(StoreType.BUY); this.player.broadcastUserInfo(); this.player.broadcastPacket(new PrivateStoreMsgBuy(this.player)); } else if (Rnd.get(100) < Config.PHANTOM_PRIVATE_SELL_CHANCE && Config.PHANTOM_PRIVATE_STORE && !Config.ALLOW_PHANTOM_RETAIL_LOC) { this.player.addItem(":", PhantomPrivateStore.getPrivateSell(), 1, this.player, true); Iterator var1 = this.player.getInventory().getItems().iterator(); while(var1.hasNext()) { ItemInstance itemDrop = (ItemInstance)var1.next(); this.player.getSellList().addItem(itemDrop.getObjectId(), 1, Rnd.get(100456789, 150456789)); } this.player.getSellList().setTitle(PhantomPrivateStore.getPrivateSell_Title()); this.player.getSellList().setPackaged(StoreType.SELL == StoreType.PACKAGE_SELL); this.player.sitDown(); this.player.setStoreType(StoreType.SELL); this.player.broadcastUserInfo(); this.player.broadcastPacket(new PrivateStoreMsgSell(this.player)); } else { if (Config.PLAYER_SPAWN_PROTECTION > 0) { this.player.setSpawnProtection(true); } PhantomPrivateStore.startWalk(this.player); } } }
×
×
  • Create New...

Important Information

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..