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.


×
×
  • Create New...