Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Doors List/Movement Packets/Proxy events expanded #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be awesome if you guys maintained a list of passthrough tiles 
such as doors, gates, etc. This would help future bots handle those 
obstacles as well.

I noticed there is no packet types for packet 100(multistep packet), 101-
104(horizontal/vertical single step packet), or 106-109(diagonal single 
step packets). These are sent by the client and are useful in all kinds of 
ways. I use them to retain an immediate history of my players location. 
It's a very efficient way of doing this.

Lastly, I'd love to see your list of proxy events grow to include all the 
packet types that you guys have. Instead of saying: 
myController.myClient.Proxy.ReceivedStatusMessagePacket = New 
Proxy.PacketListener(AddressOf StatusMessageEvent)

Original issue reported on code.google.com by jared.ca...@gmail.com on 29 Nov 2008 at 11:22

GoogleCodeExporter commented 9 years ago
I wasn't finished when that submitted.

(continued from above)
I'd like to say:
myController.myClient.Proxy.ReceivedPacketEvent(StatusMessagePacket) = New 
Proxy.PacketListener(AddressOf StatusMessageEvent)

You could write the receivedpacketevent routine so that it manages all packets 
instead of just one.

Just a thought - jcarley

Original comment by jared.ca...@gmail.com on 29 Nov 2008 at 11:25

GoogleCodeExporter commented 9 years ago
Instead of listening for one packet type, listen for any packet received from 
the
server or client:
client.Proxy.ReceivedPacketFromServer = New Util.Proxy.PacketListener(AddressOf
PacketFromServer)
client.Proxy.ReceivedPacketFromClient = New Util.Proxy.PacketListener(AddressOf
PacketFromClient)

Original comment by joebingham07@gmail.com on 30 Nov 2008 at 12:31

GoogleCodeExporter commented 9 years ago
Thanks a lot for your input. I never knew that anyone would want the movement
packets, but they shouldn't be too hard to add.

Also, if you already have a list of pass through tiles, post them here and we 
will
add them. Otherwise, we can start compiling the list and adding it as we go.

And about the packet listeners: there are two general purpose packet listeners,
ReceivedPacketFromServer and ReceivedPacketFromClient, that are called for every
packet sent and received. If you'd like one method to handle several events 
using a
switch case, you can add that method as a handler for any number events. Do this
solutions fit your problem, or are you looking for something different?

EDIT: Jo3 posted while I was writing, so forgive the redundancy.

Original comment by ian320 on 30 Nov 2008 at 12:37

GoogleCodeExporter commented 9 years ago
I can believe I hadn't responded yet. Sorry. 

I don't have a list of pass through tiles. 

I see the list of events has already expanded a great deal since the update. I 
am 
very satisfied with how things are developing. I'm updating my project with 
each new 
revision of TibiaAPI right now but once everything gets put back together I'm 
sure 
I'll post some new suggestions and bug reports. You guys seriously rock.

Original comment by jared.ca...@gmail.com on 22 Dec 2008 at 6:35

GoogleCodeExporter commented 9 years ago
I'll go ahead and deprecate this issue since his issue was resolved. If anyone 
wants 
to compile a list of pass-through tiles and add them to the API, be my guest. :)

Original comment by joebingham07@gmail.com on 10 Nov 2009 at 6:48