summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDipesh Amin <yaypunkrock@gmail.com>2011-10-25 12:32:01 +0100
committerDipesh Amin <yaypunkrock@gmail.com>2011-10-25 12:32:01 +0100
commit9524a159f1756bd3c5a1a531eef263f7996eede0 (patch)
tree881d1ea25bf585333bd8f47f135ff40862d24af3
parentad94a72d77b5228153f9cb7006b6aca2d265a89f (diff)
downloadmanamarket-9524a159f1756bd3c5a1a531eef263f7996eede0.tar.gz
manamarket-9524a159f1756bd3c5a1a531eef263f7996eede0.tar.bz2
manamarket-9524a159f1756bd3c5a1a531eef263f7996eede0.tar.xz
manamarket-9524a159f1756bd3c5a1a531eef263f7996eede0.zip
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)
-rw-r--r--net/packet_out.py25
-rw-r--r--net/protocol.py25
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 <yaypunkrock@gmail.com>
+Copyright 2011, Stefan Beller <stefanbeller@googlemail.com>
+
+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 <http://www.gnu.org/licenses/>.
+
+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 <yaypunkrock@gmail.com>
+Copyright 2011, Stefan Beller <stefanbeller@googlemail.com>
+
+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 <http://www.gnu.org/licenses/>.
+
+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