Jump to content
  • 0

Packets (writes)


Question

Posted

How I know what writes, what the content of them, and in what order should I put the writes in each file of serverpackets folder?

 

And how I know what is the packet type (always the 1st write of the writeImpl, writeC(0x??) packet).

Recommended Posts

  • 0
Posted

those are from retail sniffed packets

 

the basic structure is

 

public class name extends L2GameServerPackets
{
     private static final String packet name string = "packet name";

     // constructor with packet variables
     public name()
     {
     }

     // writeImpl() is the action of the packet
     @Override
     protected final void writeImpl()
     {
     }

     @Override
     public String getType()
    {
return packet name string;
    }
}

 

these are for server packets.

 

clientpackets use a readImpl() and runImpl() method readImpl() collect info(from client) runImpl() do the action of the clientpacket the others are similar

  • 0
Posted

Well...I found before how is the structure and what methods each file must have. But I'm trying to find how to know the contentes of writeImpl()

 

Look at this example:

 

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
* 
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
* 
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.fusion.gameserver.network.serverpackets;

import com.fusion.gameserver.model.L2Object;
import com.fusion.gameserver.model.L2Character;

/**
*
* @author  KenM
*/
public final class FlyToLocation extends L2GameServerPacket
{
   private final L2Character _cha;
   private final int _destX, _destY, _destZ;
   private final FlyType _type;
   
   public enum FlyType
   {
       THROW_UP,
       THROW_HORIZONTAL,
       DUMMY, // no effect
       CHARGE;
   }
   
   public FlyToLocation(L2Character cha, int destX, int destY, int destZ, FlyType type)
   {
       _cha = cha;
       _destX = destX;
       _destY = destY;
       _destZ = destZ;
       _type = type;
   }
   
   public FlyToLocation(L2Character cha, L2Object dest, FlyType type)
   {
       this(cha, dest.getX(), dest.getY(), dest.getZ(), type);
   }
   
   /**
    * @see com.fusion.gameserver.network.serverpackets.L2GameServerPacket#getType()
    */
   @Override
   public String getType()
   {
       return "[s] 0xd4 FlyToLocation";
   }

   /**
    * @see com.fusion.gameserver.network.serverpackets.L2GameServerPacket#writeImpl()
    */
   @Override
   protected void writeImpl()
   {
       writeC(0xd4);
       writeD(_cha.getObjectId());
       writeD(_destX);
       writeD(_destY);
       writeD(_destZ);
       writeD(_cha.getX());
       writeD(_cha.getY());
       writeD(_cha.getZ());
       writeD(_type.ordinal());
   }
   
}

 

This part:

 

@Override

   protected void writeImpl()

   {

       writeC(0xd4);

       writeD(_cha.getObjectId());

       writeD(_destX);

       writeD(_destY);

       writeD(_destZ);

       writeD(_cha.getX());

       writeD(_cha.getY());

       writeD(_cha.getZ());

       writeD(_type.ordinal());

   }

 

How do I know what is the packet (content) of the first write (writeC) ? You can see it's set 0xd4, but can I get this code?

 

And the other writes? How I know what content should I put in each and in what order? If I change 1 writeD of order there, this packet won't work fine...

  • 0
Posted

those from the client sniffered packets from official

yy

The bad think is that noone plays official with phx... risk of ban

  • 0
Posted

yy

The bad think is that noone plays official with phx... risk of ban

 

its not with phx :)

its with a simple packet sniffer :)

 

you cant play with phx on offi :D

  • 0
Posted

Them...could you indicate any special one for me to try it? EtherDetect is a good option?

 

well unless you dont play on official you cant take packets and i dont know what they use exactly because i never tried to get packets from offi

  • 0
Posted

well unless you dont play on official you cant take packets and i dont know what they use exactly because i never tried to get packets from offi

maybe WPE pro?

  • 0
Posted

Something else, if we get an l2off server (stolen files) and capture from, there the files will be the same?

  • 0
Posted

Something else, if we get an l2off server (stolen files) and capture from, there the files will be the same?

 

no L2Offmod servers are work with extenders they have a stolen C4 pack from ncsoft and tthey add later updates with extender which is home made not valid

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • Ave is trustworthy,fast  and reliable.His work is amazing!100% satisfied with his services!
    • SMMTOOL.ORG ТВОЙ ПРЯМОЙ ПОСТАВЩИК TG/YouTube/MAX ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ПОЧЕМУ МЫ? • Свой софт — работаем без посредников и переплат. • Скорость до 50.000.000 в сутки. • Минимальный **** — всего ~5%. ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ Услуги Telegram ПРАЙС-ЛИСТ (ЗА 1000 ЕД.) ПОДПИСЧИКИ (LIFETIME) ➥ 1.2$ — RU База ➥ 1.2$ — Китай База ➥ 1$ — Ultra Fast Группа (~80₽) ➥ 1$ — Ultra Fast (~80₽) ➥ 0.99$ — Super Fast (~80₽) ➥ 0.8$ — Fast (~64₽) ➥ 0.55$ — Normal (~40₽) ➥ 0.44$ — 100K+ Only (~35₽) ПОДПИСЧИКИ (Дневные) ➥ 0.7$ — 60 дней РУ (~55₽) ➥ 0.5$ — 30 Дней РУ (~40₽) ➥ 0.7$ — 60 Дней Китай (~55₽) ➥ 0.5$ — 60 Дней Китай (~40₽) ОПТИМИЗАЦИЯ КАНАЛОВ И БОТОВ ➥ 1.5$ — Подписчики из Поиска Китай (~120₽) ➥ 1.5$ — Подписчики из Поиска РУ База (~120₽) ➥ 1$ — Подписчики из Поиска МИКС (~₽80) ➥ 0.8$ — Бот Старты из Поиска (~64₽) АКТИВНОСТЬ И БОТЫ ➥ 0.7$ — Реакции на Комменты (Позитивные) + Подписчики (Бонус) ➥ 0.7$ — Реакции на Комменты (Негативные) + Подписчики (Бонус) ➥ 0.08$ — Просмотры постов ➥ 0.08$ — Реакции (Любые) ➥ 0.18$ — Запуски ботов МИКС ➥ 0.4$ — Запуски ботов РУ ➥ 0.4$ — Запуски ботов Китай ➥ 0.18$ — Запуски ботов + сообщение (/settings) ➥ 0.5$ — Рефералы в боты ➥ 0.3$ — Репост Истории + просмотр ➥ 0.3$ — Лайк Истории + просмотр Услуги YouTube АКТИВНОСТЬ ➥ 8$ — Кастомные Комментарии Живые Юзеры ➥ 15$ — Кастом Позитивные Комментарии + Лайк + Просмотр Видео ➥ 10$ — Рандомные Позитивные Комментарии + Лайк + Просмотр Видео ➥ 0.55$ — Поделиться Видео Живые Юзеры ➥ 0.5$ — Зрители Эфира (15мин) Живые Юзеры ➥ 18$ — Живые Просмотры Видео 60мин+ Видео ➥ 5$ — Рандомные Позитивные Комментарии ➥ 0.5$ — Лайк под Видео ➥ 0.7$ — Просмотр Видео МИКС + Монетизация Услуги MAX ПОДПИСЧИКИ (LIFETIME) ➥ 22$ — Публичные Каналы ПОДПИСЧИКИ (Дневные) ➥ 15$ — 90 дней ➥ 12$ — 60 дней ➥ 8$ — 30 дней АКТИВНОСТЬ И БОТЫ ➥ 3.50$ — Просмотры на пост ➥ 7$ — Макс Репосты ➥ 8$ — Положительные Реакции ➥ 13$ — Реакция ➥ 13$ — Реакция ➥ 13$ — Реакция ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ БОНУСЫ И ОФФЕРЫ КЭШБЭК ДО 10% для крупных реселлеров API доступ для ваших панелей ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ОПЛАТА: Crypto | LOLZ Market САЙТ: SMMTOOL.ORG Telegram: SMMTOOL_ORG
    • L2jFrozen embossed my childhood. Sick to see it some what back to life again.   Thank you for all the work you've done back then!
  • Topics

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