Jump to content

`NeverMore

Legendary Member
  • Posts

    4,036
  • Credits

  • Joined

  • Last visited

  • Days Won

    17
  • Feedback

    100%

Everything posted by `NeverMore

  1. http://lmgtfy.com/?q=%CE%91%CE%AF%CE%BC%CE%B1+%2C+%CF%84%CE%B9%CE%BC%CE%AE+%2C+%CF%87%CF%81%CF%85%CF%83%CE%AE+%CE%B1%CF%85%CE%B3%CE%AE+!
  2. http://lmgtfy.com/?q=%CE%91%CE%AF%CE%BC%CE%B1+%2C+%CF%84%CE%B9%CE%BC%CE%AE+%2C+%CF%87%CF%81%CF%85%CF%83%CE%AE+%CE%B1%CF%85%CE%B3%CE%AE+!
  3. good idea , good luck with your sales m8 !
  4. good idea , good luck with your sales m8 !
  5. You think it is posible to find someones real Facebook e-mail after the latest update they made ?? All e-mails are replaced with custom e-mails from facebook ! What do you think ?
  6. You think it is posible to find someones real Facebook e-mail after the latest update they made ?? All e-mails are replaced with custom e-mails from facebook ! What do you think ?
  7. gime your RequestByPassToServer.java file (in pm or here) ! afk for now
  8. The whole code on how to mak a bypass that will open open you a multisell : ### Eclipse Workspace Patch 1.0 #P L2J_Server 2 latest Index: java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java =================================================================== --- java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java (revision 5537) +++ java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java (working copy) @@ -18,6 +18,7 @@ import java.util.logging.Level; import com.l2jserver.Config; +import com.l2jserver.gameserver.TradeController; import com.l2jserver.gameserver.ai.CtrlIntention; import com.l2jserver.gameserver.communitybbs.CommunityBoard; import com.l2jserver.gameserver.datatables.AdminTable; @@ -27,6 +28,7 @@ import com.l2jserver.gameserver.handler.IBypassHandler; import com.l2jserver.gameserver.model.L2CharPosition; import com.l2jserver.gameserver.model.L2Object; +import com.l2jserver.gameserver.model.L2TradeList; import com.l2jserver.gameserver.model.L2World; import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.instance.L2MerchantSummonInstance; @@ -36,6 +38,7 @@ import com.l2jserver.gameserver.network.communityserver.CommunityServerThread; import com.l2jserver.gameserver.network.communityserver.writepackets.RequestShowCommunityBoard; import com.l2jserver.gameserver.network.serverpackets.ActionFailed; +import com.l2jserver.gameserver.network.serverpackets.BuyList; import com.l2jserver.gameserver.network.serverpackets.ConfirmDlg; import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage; import com.l2jserver.gameserver.util.GMAudit; @@ -51,6 +54,7 @@ // S private String _command; + String[] subCommand = _command.split("_"); @Override protected void readImpl() @@ -265,6 +269,11 @@ Hero.getInstance().showHeroDiary(activeChar, heroclass, heroid, heropage); } } + else if (_command.startsWith("shop")) + { + int val = Integer.valueOf(subCommand[1]); + showBuyWindow(activeChar, val); + } else { final IBypassHandler handler = BypassHandler.getInstance().getHandler(_command); @@ -321,4 +330,17 @@ { return _C__23_REQUESTBYPASSTOSERVER; } + + private static void showBuyWindow(L2PcInstance player, int val) + { + player.tempInventoryDisable(); + L2TradeList list = TradeController.getInstance().getBuyList(val); + + if (list != null) + { + player.sendPacket(new BuyList(list, player.getAdena(), 0)); + } + + player.sendPacket(ActionFailed.STATIC_PACKET); + } } Be sure you added it right ! Also i did not ask you , what cronicle are you using ?
  9. i forgot + String[] subCommand = _command.split("_"); also add the Void at the end of the file , not here !
  10. just delete the "aio_Cloacs" bypass and add what i gave you ! also Dont forget to add the Void at the end of RequestByPassToServer.java file ! Then use as action for your button smth like this <td align=center><button value="Cloacs" action="bypass -h shop_90041" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
  11. first of all , there is no reason to make a new ByPass for every button that goes you to a multisell , check this : + else if (command.startsWith("shop")) + { + int val = Integer.valueOf(subCommand[1]); + showBuyWindow(player, val); + } + private static void showBuyWindow(L2PcInstance player, int val) + { + player.tempInventoryDisable(); + L2TradeList list = TradeController.getInstance().getBuyList(val); + + if (list != null) + { + player.sendPacket(new BuyList(list, player.getAdena(), 0)); + } + + player.sendPacket(ActionFailed.STATIC_PACKET); + } Vazodas auto to code 8a mporeis na xrisimopieis to <td align=center><button value="Cloacs" action="bypass -h shop_90041" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
  12. ofc no there should be already a ByPass about that
  13. for status and photos ? or a page for example ?
×
×
  • Create New...