Im trying to to make a height command for furni this is what ive got atm.
error i get when using the commandPHP Code:internal void furniheight()
{
Room room = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
ClientMessage Request = MessageHandler.Request;
RoomItem item = room.GetRoomItemHandler().GetItem(Request.PopWiredUInt());
uint id1 = item.BaseItem;
string height = this.Params[1];
this.Session.SendNotif(id1 + "Updated to height" + height + "unload room");
if (item != null)
{
using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
dbClient.runFastQuery("UPDATE item_base SET height = " + height + "where item_id =" + id1);
ButterflyEnvironment.GetGame().reloaditems();
this.Session.SendNotif("Item definition reloaded.");
ButterflyEnvironment.GetGame().GetModerationTool().LogStaffEntry(this.Session.GetHabbo().Username, string.Empty, "RefreshItems", "Refreshed items definitions.");
this.Session.SendNotif(id1 +"Updated to height" + height + "unload room");
}
}
http://prntscr.com/6evs2m
i assume the error is
what is surposed to when you click the furni then type :height amount it updates in db but its like its not receiving the requested furni.PHP Code:ClientMessage Request = MessageHandler.Request;
RoomItem item = room.GetRoomItemHandler().GetItem(Request.PopWiredUInt());


Reply With Quote

