Skip to content

Njoy21

Members
  • Joined

  • Last visited

  • Trader rating

    N/A

Everything posted by Njoy21

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.