Butterfly Command

Results 1 to 1 of 1
  1. #1
    DO YOU HAVE THE POWER? Power is offline
    MemberRank
    Aug 2012 Join Date
    Haverhill, SuffLocation
    248Posts

    Butterfly Command

    Im trying to to make a height command for furni this is what ive got atm.

    PHP 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().Usernamestring.Empty, "RefreshItems""Refreshed items definitions.");
                  
    this.Session.SendNotif(id1 +"Updated to height" height "unload room");
               }

            } 
    error i get when using the command

    http://prntscr.com/6evs2m

    i assume the error is
    PHP Code:
       ClientMessage Request MessageHandler.Request;
               
                
                
    RoomItem item room.GetRoomItemHandler().GetItem(Request.PopWiredUInt()); 
    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.




Advertisement