Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

  • 0

Question

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

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0
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?

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.