- Joined
- Oct 27, 2007
- Messages
- 464
- Reaction score
- 52
Did somebody have the Bots Inventory and Catalog Structure?
This would be Great
Thanks,
Gammer123
This would be Great
Thanks,
Gammer123
ThisThanks a lot![]()
Incoming: 3727
Outgoing: 1642
![]()
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);
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)
{
}
}
how come my button for placing is disabled?
![]()
Yeah haha
In which File you have the Place code?
Mine is in user.cs but not work oO
Ah forget thisThank you
![]()
Yes, I have the catalog page, not the items though :S
Oh damn!
I need the items![]()
Haha same. If I find it I will share.