diff options
author | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-22 09:33:11 +0100 |
---|---|---|
committer | Dipesh Amin <yaypunkrock@gmail.com> | 2011-08-22 09:33:11 +0100 |
commit | 152baa6eb8af6a24c6ee3966f5b47a664e239e84 (patch) | |
tree | 2f303d791823cfe0630c22db6a64f0362797deb8 | |
parent | 154d4127d18393aa3ec66a4c00e2c6a72d503307 (diff) | |
download | manamarket-152baa6eb8af6a24c6ee3966f5b47a664e239e84.tar.gz manamarket-152baa6eb8af6a24c6ee3966f5b47a664e239e84.tar.bz2 manamarket-152baa6eb8af6a24c6ee3966f5b47a664e239e84.tar.xz manamarket-152baa6eb8af6a24c6ee3966f5b47a664e239e84.zip |
Remove SMSG_BEING_ACTION packet handling code.
This is not needed for the functioning of the "TradeBot"
-rwxr-xr-x | main.py | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -763,25 +763,6 @@ def main(): logging.info("Player warped: %s %s %s", player_node.map, player_node.x, player_node.y) mapserv.sendall(str(PacketOut(CMSG_MAP_LOADED))) - elif packet.is_type(SMSG_BEING_ACTION): - src_being = packet.read_int32() - dst_being = packet.read_int32() - packet.skip(12) - param1 = packet.read_int16() - packet.skip(2) - action_type = packet.read_int8() - - if src_being in beingManager.container: - if action_type == 0: # Damage - beingManager.container[src_being].action = "attack" - beingManager.container[src_being].target = dst_being - - elif action_type == 0x02: # Sit - beingManager.container[src_being].action = "sit" - - elif action_type == 0x03: # Stand up - beingManager.container[src_being].action = "stand" - elif packet.is_type(SMSG_PLAYER_INVENTORY_ADD): item = Item() item.index = packet.read_int16() - inventory_offset @@ -856,7 +837,6 @@ def main(): logging.info("Trade request: " + name) elif packet.is_type(SMSG_TRADE_RESPONSE): - print "SMSG_TRADE_RESPONSE" response = packet.read_int8() time.sleep(0.2) if response == 0: |