Jump to content
Eternal Lands Official Forums
Sign in to follow this  
roos

Getting actor ID of a character

Recommended Posts

Hi,

 

I am trying to get trading to work with my bot. So, the first simple step that I want to do is that if you click trade on the bot, it will trade with you. However, to do that, I need some way to convert the actor name (a string) into an actor ID (a number), since you need to send an ID when you send the "TRADE_WITH" message to the server.

 

So, is there any good way to find out the id from the name? I've noticed that when I get the ADD_ENHANCED_ACTOR message from the server, I can pull out the actor ID, but as far as I know, this only gets sent when a character enters the bot's field of view. So, if the bot connects to the server, it doesn't know what people are sitting around it, unless they exit its field of view and come back. (If that makes any sense)

 

Any help would be much appreciated!

 

Thanks,

roos

Edited by roos

Share this post


Link to post
Share on other sites

Any time you connect to the server or change maps, the server sends you all the actor information on the actors you can see.

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.

×