Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Guest vojozo14

actor id's

Recommended Posts

Guest vojozo14

i have a bot that can walk, talk, respond to commands..... he can tell when some1 wants to trade but i cant find their actor id's :medieval::o i can see the Add_new_enchanced player message, and i see where the user name is, but where in that message is the actor id?

Share this post


Link to post
Share on other sites

Use the Source, Luke!

 

really, it's there. new_actors.c.

 

void add_enhanced_actor_from_server (const char *in_data, int len)
{
short actor_id;
<snip>
actor_id=SDL_SwapLE16(*((short *)(in_data)));

or in other words, it's the first 2bytes of the add actor message

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×