roos Report post Posted May 11, 2006 (edited) 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 May 11, 2006 by roos Share this post Link to post Share on other sites
Learner Report post Posted May 11, 2006 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
roos Report post Posted May 11, 2006 Oops, okay thanks very much, I got it now Share this post Link to post Share on other sites