Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[SOLVED] Floorplan Saving
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 422497" data-attributes="member: 36373"><p>Nope. Just sends you to the hotel view</p><p>[doublepost=1510786593,1510786056][/doublepost]I should also note I tried sending the user to the hotelview , updating the room, then sending the user back</p><p></p><p>and I also tried updating the room, sending user to hotel room, sending them back</p><p></p><p>and I also tried updating the room, and sending the user to the room again</p><p>[doublepost=1510792595][/doublepost]Mother of God I fixed it finally.</p><p></p><p>[CODE]List<RoomUser> roomusers = Room.GetRoomUserManager().GetRoomUsers().ToList();</p><p> List<GameClient> UsersToReturn = new List<GameClient>();</p><p></p><p> foreach (RoomUser user in roomusers)</p><p> {</p><p> UsersToReturn.Add(user.GetClient());</p><p> }</p><p></p><p> int roomId = Room.Id;</p><p> PlusEnvironment.GetGame().GetRoomManager().ReloadModel(ModelName);</p><p> PlusEnvironment.GetGame().GetRoomManager().SaveFloorPlan(Room, false);</p><p></p><p> PlusEnvironment.GetGame().GetRoomManager().LoadRoom(roomId);</p><p></p><p> foreach (GameClient client in UsersToReturn)</p><p> {</p><p></p><p> if (client == null)</p><p> continue;</p><p></p><p> //client.GetHabbo().PrepareRoom(roomId, "");</p><p> client.SendMessage(new RoomForwardComposer(Room.Id));</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="JayC, post: 422497, member: 36373"] Nope. Just sends you to the hotel view [doublepost=1510786593,1510786056][/doublepost]I should also note I tried sending the user to the hotelview , updating the room, then sending the user back and I also tried updating the room, sending user to hotel room, sending them back and I also tried updating the room, and sending the user to the room again [doublepost=1510792595][/doublepost]Mother of God I fixed it finally. [CODE]List<RoomUser> roomusers = Room.GetRoomUserManager().GetRoomUsers().ToList(); List<GameClient> UsersToReturn = new List<GameClient>(); foreach (RoomUser user in roomusers) { UsersToReturn.Add(user.GetClient()); } int roomId = Room.Id; PlusEnvironment.GetGame().GetRoomManager().ReloadModel(ModelName); PlusEnvironment.GetGame().GetRoomManager().SaveFloorPlan(Room, false); PlusEnvironment.GetGame().GetRoomManager().LoadRoom(roomId); foreach (GameClient client in UsersToReturn) { if (client == null) continue; //client.GetHabbo().PrepareRoom(roomId, ""); client.SendMessage(new RoomForwardComposer(Room.Id)); }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[SOLVED] Floorplan Saving
Top