Bots Structures

Incoming: 3727
Outgoing: 1642

:)

Don't you mean other way round?

Help ? :P

This is my code
Code:
            ServerMessage Message = new ServerMessage(3727);
            Message.AppendInt32(1);
            Message.AppendInt32(1); //Bot ID
            Message.AppendString("Pahahhh"); //Bot Name
            Message.AppendString("M"); //Bot Gender
            Message.AppendString("sh-290-92.hd-3091-1.hr-3163-61.ch-3050-100-73.lg-3088-92-64.ha-1011-100"); //Bot Figure
           Session.SendMessage(Message);

Why doesnt it work? :(


EDIT: Working now :D
Mininova - Bots Structures - RaGEZONE Forums
 
Last edited:
Upvote 0
I need only the Place Code :D

This not working oO:

internal void PutBot()
{
uint id = Request.PopWiredUInt();


Room Room = Session.GetHabbo().CurrentRoom;


if (Room == null || !Room.CheckRights(Session, true))
{
return;
}


int X = Request.PopWiredInt32();
int Y = Request.PopWiredInt32();


if (!Room.GetGameMap().CanWalk(X, Y, false))
{
return;
}


try
{
RoomBot bot = ButterflyEnvironment.GetGame().GetBotManager().GetBot(56);
RoomUser NewUser = Room.DeployBot(bot);
//NewUser.SetPos((int)X, (int)Y, (int)0);
}catch (Exception e){
Console.WriteLine(e.Message);
}
}
 
Upvote 0
Code:
        internal void PlaceBot()
        {
            try
            {
                Room Room = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);

                if (Room == null || (!Room.AllowPets && !Room.CheckRights(Session, true)) || !Room.CheckRights(Session, true))
                {
                    return;
                }

                uint BotId = Request.PopWiredUInt();

                int X = Request.PopWiredInt32();
                int Y = Request.PopWiredInt32();

                //Session.SendNotif("RoomID: " + Room.RoomId + "\nBotID: " + BotId + "\nX: " + X + "\nY: " + Y + "");

                if (!Room.GetGameMap().CanWalk(X, Y, false))
                {
                    Session.SendNotif("You cannot place a bot here!");
                    return;
                }

                RoomBot Bot = ButterflyEnvironment.GetGame().GetBotManager().GetBot(BotId);
                if (Bot == null)
                {
                    Session.SendNotif("Unable to find bot in database");
                }

                Bot.X = X;
                Bot.Y = Y;
                Bot.Rot = 4;

                Room.GetRoomUserManager().DeployBot(Bot, null);

                Session.GetHabbo().GetInventoryComponent().RemoveBot(Bot.BotId);

                //RoomUser PetUser = Room.GetRoomUserManager().DeployBot(new RoomBot(PetId, Room.Id, );

                Session.SendMessage(Session.GetHabbo().GetInventoryComponent().SerializeBotInventory());
            }
            catch (Exception e)
            {
            }
        }

Works PERFECT on mine :D
 
Upvote 0
Can you give me your Rooms.cs + UserData.cs for looking what is my fail oO
I have make a big Mistake ^^


Ps.
Intern Name of Catalog_Bot: rentable_bot_visitor_log
 
Last edited:
Upvote 0
Back