Moving To Discord: https://discord.gg/UmXNvjq

Hello everyone, due to bugs with the forum software that I do not have time to care about, I am going to be shutting down these forums and moving my discussions to Discord instead. I will eventually keep releases here on the site but the forums will be removed sooner or later. I encourage people to join my personal Discord if you have questions, if you are looking for any of my projects, etc.




Registration Code (Part 1): w%kQ6
Registration Code (Part 2): b<#$1[*(cw~
In order to register on this forum, you must use the codes above. Combine them into one code (copy paste).

Looking For Documented Recv/Send Packet List

Topics regarding the online game Nostale.
Locked
Freshdachs
Posts: 3
Joined: Sat Sep 17, 2016 1:06 am

Looking For Documented Recv/Send Packet List

Post by Freshdachs » Sat Sep 17, 2016 1:11 am

I want to play around with your nostale hook and I was wondering if there is a documented packet list for nostale.
Would be helpful to know what each argument does and not having to test it out by myself.



/e I sniffed most of the packets I need by myself but I have a new question:

When you enter the map. All mobs are send to the client with the "in" packet. If you are already on the map they are updated with "mv". How to get mobs that do not move if you are already on the map?


Thank you in advance.
User avatar
atom0s
Site Admin
Posts: 449
Joined: Sun Jan 04, 2015 11:23 pm
Location: 127.0.0.1
Contact:

Re: Looking For Documented Recv/Send Packet List

Post by atom0s » Sat Sep 17, 2016 10:07 am

You need to zone out of the area and back into it. I'm not aware of any packet that will cause the server to resend you the full list of things in the zone.

As for documentation for packets, I haven't found any either. It seems the Nostale community is more interested in money than working together to build a decent private server etc.
So any info you find is half-assed or less.
Derp~
Need a great web host? Check out: AnHonestHost.com


Donations can be made via Paypal:
https://www.paypal.me/atom0s
Freshdachs
Posts: 3
Joined: Sat Sep 17, 2016 1:06 am

Re: Looking For Documented Recv/Send Packet List

Post by Freshdachs » Sat Sep 17, 2016 10:15 am

atom0s wrote:It seems the Nostale community is more interested in money than working together to build a decent private server etc.
This is so true.

Your hook is awesome btw. :o
I figured out the packets by myself and tried to make a bot which only works with packets.
My problem no is that I do not know how to wait for the packets in lua.
For example if I want the bot to kill a creep. I call ("SendPacket('ncif 3 ' .. id);") to get the creep info but after that I have to wait for the event "incoming_packet" to write something in a global var which contains the last packet.

Sorry if my english is hard to understand.
User avatar
atom0s
Site Admin
Posts: 449
Joined: Sun Jan 04, 2015 11:23 pm
Location: 127.0.0.1
Contact:

Re: Looking For Documented Recv/Send Packet List

Post by atom0s » Sat Sep 17, 2016 10:37 am

You can write out a table that sets flags that each incoming/outgoing event can monitor to work together.

So when you send the ncif to target the creep for its info, you can set a flag that is telling the incoming event to look specifically for incoming info on that object etc.
Derp~
Need a great web host? Check out: AnHonestHost.com


Donations can be made via Paypal:
https://www.paypal.me/atom0s
Freshdachs
Posts: 3
Joined: Sat Sep 17, 2016 1:06 am

Re: Looking For Documented Recv/Send Packet List

Post by Freshdachs » Fri Sep 30, 2016 2:13 am

I lost interest in developing it further.
Maybe its still usefull for anyone.
http://pastebin.com/V7ykNkUu
Locked

Who is online

Users browsing this forum: No registered users and 3 guests