Jump to content

Question

Posted (edited)

I would like to know the following equivalent parameters in pack() function of PHP:
 
Java => PHP
writeB => ?
writeD => ?
writeC => ?
writeH => ?
writeQ => ?
writeS => ?

About PHP values can be viewed here http://www.php.net/manual/en/function.pack.php

Thanks in advance.

Edited by Universe

Recommended Posts

  • 0
Posted (edited)

If I got it right you mean the write functions of the mmocore for serverpackets

 

writeB(byte[] b ) writes a byte[]               ?

writeD(int d) write an int                        00 00 00 00 

writeC(byte b ) write a byte                    00                                                    has int parameter but later casts to byte

writeQ(short l) write a short                   00 00                                               has int parameter but later casts to short

writeQ(long l) write a long                      00 00 00 00 00 00 00 00

writeF(double f) write a double             00 00 00 00 00 00 00 00

 

writeS(String s) write a String, always ending with 00 00 to determinate that writeS finished

 

 

 

If you want to write directly from php to L2 you should better forget about it, since l2 is gonna read packets only from  one ip/port (gameserver's)

Edited by xdem
  • 0
Posted
If you want to write directly from php to L2 you should better forget about it, since l2 is gonna read packets only from one ip/port (gameserver's)

 

 

Bullshit. You said it without thinking.

 

 

 

writeB(byte[] b ) writes a byte[] ?

writeD(int d) write an int 00 00 00 00

writeC(byte b ) write a byte 00 has int parameter but later casts to byte

writeQ(short l) write a short 00 00 has int parameter but later casts to short

writeQ(long l) write a long 00 00 00 00 00 00 00 00

writeF(double f) write a double 00 00 00 00 00 00 00 00

 

writeS(String s) write a String, always ending with 00 00 to determinate that writeS finished

 

 

So. What's about little endian byte order or big endian byte order?

  • 0
Posted

Bullshit. You said it without thinking.

 

 

maybe in russia l2 clients listen to multiple sockets gl with that lol

  • 0
Posted

maybe in russia l2 clients listen to multiple sockets gl with that lol

 

Where you find the Lineage 2 client between the site and the server? LMAO

  • 0
Posted (edited)

Where you find the Lineage 2 client between the site and the server? LMAO

 

 

then why you post here the mmocore writing methods? You dont need them if you go Site -> Server, but only when you go X -> Client.

Anyways

Edited by xdem
  • 0
Posted

then why you post here the mmocore writing methods? You dont need them if you go Site -> Server, but only when you go X -> Client.

Anyways

 

PHP can be completely to form packages are identical to those that sends the game client. If you don't know how it doing, it's you problem. Me need info about equivalents and not need BLA BLA BLA.

 

Have a nice day.

  • 0
Posted

PHP can be completely to form packages are identical to those that sends the game client. If you don't know how it doing, it's you problem. Me need info about equivalents and not need BLA BLA BLA.

 

Have a nice day.

 

 

Keep dreaming, client is not gonna accept packets from another socket and if it does somehow it will loose connection with the gameserver.

 

As for the equivalents i gave you above all the info you need

  • 0
Posted

Not actual. Thanks all.

 

loosers.jpgi.gifi.gifi.gif

 

 

sending into GS is easy, but the write methods you asked for are for client-server communication. Anyways

  • 0
Posted (edited)

Where you find the Lineage 2 client between the site and the server? LMAO

 

It's PHP connects with database but i'm pretty sure it's not possible to directly connect to client.

U can try anyway.

Edited by Stewie
Guest
This topic is now closed to further replies.


  • Posts

    • Lineage2Network - Interlude Reimagined   Embark on a revitalized journey through the classic Interlude era with Lineage2.Network. Our server is meticulously crafted by veteran players to deliver a seamless and engaging experience, blending the nostalgia of the Chaotic Chronicle with modern enhancements.     Server details   Chronicle: Interlude + Classic Rates: EXP x30 | Adena x10 | Drop x10 | Spoil x10     Server features   Daily Missions - complete special tasks for daily rewards Attendance Rewards - get rewards for online time Custom Events - TVT, DM, CTF NPC buffer duration - 2 hours   Mana Potions - restores 1000 MP, 10s cooldown Ring of Core additional stats: +1 STR Earring of Orfen additional stats: +1 INT Shadow Earring of Zaken - 7 days Shadow Ring of Queen Ant - 7 days   Max buff count - 24 (20 + 4 with Divine Inspiration) Noblesse, Heroic Valor, Flames of Invincibility and Celestial Shield don't take buff slot Reworked Cancel, Mage and Warrior Banes – removed buffs reappear after 30s Block Buffs - block all incoming buffs except from self/party Sweeper Festival added to Spoiler class   Subclass – retail or purchasable Noblesse – retail or purchasable up to Barakiel; collect 8 fragments for full staff 1st & 2nd class free, 3rd needs 700 Halisha Marks or is purchasable New Olympiad System: new stadiums with NPC buffer,  1 week period.     Key dates     Beta Launch: April 14, 2025 Official Launch: May 9, 2025     Check out full server details in our website And visit our discord   Join us and be part of community where classic gameplay meets innovative updates. Whether you're a solo adventurer or part of a formidable clan, Lineage2.Network offers a dynamic and balanced environment for all.  
    • Good day. Our game currency store is looking for suppliers of adena and items on a project such as L2REBORN x10. We also sell Epic jewelry and various items on this project L2REBORN x10. There are items and adena on L2REBORN x1. For all questions, write to us in discord - goddardshop
  • Topics

×
×
  • Create New...