From 9524a159f1756bd3c5a1a531eef263f7996eede0 Mon Sep 17 00:00:00 2001 From: Dipesh Amin Date: Tue, 25 Oct 2011 12:32:01 +0100 Subject: Changed the headers to us. * None of the code in packet_out.py was written by gnufrk (the code was created from analysis of the mana client), the PacketOut/PacketIn classes were written by me. * The values in protocol.py are generic eathena/tmw-eathena values, these were taken from the mana client. * Note the only code that isn't mine/ours is the PacketBuffer; and that is pretty much just a python rewrite of the C++ mana client code. His implementation was simplistic (without the PacketIn class to actually add some proper understanding to packet) --- net/packet_out.py | 25 ++++++++++++++++++++++++- net/protocol.py | 25 ++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/net/packet_out.py b/net/packet_out.py index 366be5f..79f9917 100644 --- a/net/packet_out.py +++ b/net/packet_out.py @@ -1,4 +1,27 @@ -# This file has been adapted from source originally released by gnufrk +""" +Copyright 2011, Dipesh Amin +Copyright 2011, Stefan Beller + +This file is part of tradey, a trading bot in The Mana World +see www.themanaworld.org + +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 2 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 . + +Additionally to the GPL, you are *strongly* encouraged to share any modifications +you do on these sources. +""" + from packet import * from protocol import * diff --git a/net/protocol.py b/net/protocol.py index d110a7e..8b97542 100644 --- a/net/protocol.py +++ b/net/protocol.py @@ -1,4 +1,27 @@ -# This file has been adapted from source originally released by gnufrk +""" +Copyright 2011, Dipesh Amin +Copyright 2011, Stefan Beller + +This file is part of tradey, a trading bot in The Mana World +see www.themanaworld.org + +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 2 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 . + +Additionally to the GPL, you are *strongly* encouraged to share any modifications +you do on these sources. +""" + SMSG_LOGIN_DATA = 0x0069 SMSG_CHAR_LOGIN = 0x006b SMSG_CHAR_MAP_INFO = 0x0071 -- cgit v1.2.3-60-g2f50