Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. /* server player joins game */
  2. when ( /^\x59(....)(.)(.{16})(..)(..)$/s ) {
  3. print "". (DIRTXT)[Server]
  4. ." $CONNECTC_PORT Spawn Player:\n\t0x".
  5. unpack("H16", $1) ." ".
  6. unpack("Z16", $3) ." the 0x".
  7. unpack("H2", $2) ."\n\tat 0x".
  8. unpack("H4", $2) ." x 0x".
  9. unpack("H4", $2) ."\n";
  10. }
  11.  
  12.  
  13. /* client join a game */
  14. when ( /\x68(....)(....)(.)(....)(....)(....)\x00(.{16})$/s ) {
  15. print "". (DIRTXT)[Client]
  16. ." $CONNECTC_PORT Invoke Player:\n\tServer Token 0x".
  17. unpack("H16", $1 . $2) ." name ".
  18. unpack("Z16", $7) ." the 0x".
  19. unpack("H2", $3) ."\n\tVersion 0x".
  20. unpack("H8", $4) ." x 0x".
  21. unpack("H16", $5 . $6) ."\n";
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement