Coding Bots - Help

Velaski

winner
Aug 4, 2015
562
165
I'm trying to have a bot in a room, and once a command is executed the Bot will perform the task. And I want the bot to possibly move around aswell. Any help?

@JayCustom @Altercationz @Sledmore
 
I have this:
Code:
 var BotUser = new RoomUser(0, _room.RoomId, primaryPrivateUserID++, _room);
            Bot.VirtualId = primaryPrivateUserID;


            BotUser.BotData = Bot;
            BotUser.BotAI = Bot.GenerateBotAI(BotUser.VirtualId);
Is this to any use?
 

Velaski

winner
Aug 4, 2015
562
165
Alright, how do I code the bot to appear in the room. Basically deploying the bot??
PHP:
Point squareRight = GetBotData().ChasingUser.SquareRight;
GetRoomUser().MoveTo(squareRight.X, squareRight.Y);

Use the MoveTo(x, y) from the GetRoomUser() function pointer to the Bot's RoomUser instance function
 

Users who are viewing this thread

Top