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
Error adding commands in the emulator
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="CodiceZ" data-source="post: 467328" data-attributes="member: 76532"><p>I saw in the forum, old commands, especially interested on someone. The command to copy the furni of the rooms and bring them back to a new room.</p><p></p><p>I transformed into the roomitemhandling file from this line of code:</p><p></p><p>[ICODE]</p><p>using (IQueryAdapter dbClient = AskEnvironment.GetDatabaseManager().GetQueryReactor()) {</p><p> dbClient.RunQuery("UPDATE `items` SET `room_id` = '" + _room.RoomId + "', `x` = '" + Item.GetX + "', `y` = '" + Item.GetY + "', `z` = '" + Item.GetZ + "', `rot` = '" + Item.Rotation + "' WHERE `id` = '" + Item.Id + "' LIMIT 1");</p><p> }</p><p>][/ICODE]</p><p></p><p>in</p><p></p><p>[ICODE]</p><p>https://pastebin.com/wR9gJZvB</p><p>[/ICODE]</p><p></p><p>In the Visual Studio's errors, it comes out "session", and it doesn't exist in the current context.</p><p></p><p></p><p>Next I create the copyroom copymodel files and insert the string in CommandManager.cs</p><p></p><p>[ICODE]</p><p>this.Register("copiamodel", new CopiaModel());</p><p></p><p>this.Register("copyroom", new copyroom());</p><p>[/ICODE]</p><p></p><p>but the error "The type and space name, of the names' CopiaModel, copyroom 'was not found. Probably missing a using directive or an Assembly reference.'</p></blockquote><p></p>
[QUOTE="CodiceZ, post: 467328, member: 76532"] I saw in the forum, old commands, especially interested on someone. The command to copy the furni of the rooms and bring them back to a new room. I transformed into the roomitemhandling file from this line of code: [ICODE] using (IQueryAdapter dbClient = AskEnvironment.GetDatabaseManager().GetQueryReactor()) { dbClient.RunQuery("UPDATE `items` SET `room_id` = '" + _room.RoomId + "', `x` = '" + Item.GetX + "', `y` = '" + Item.GetY + "', `z` = '" + Item.GetZ + "', `rot` = '" + Item.Rotation + "' WHERE `id` = '" + Item.Id + "' LIMIT 1"); } ][/ICODE] in [ICODE] https://pastebin.com/wR9gJZvB [/ICODE] In the Visual Studio's errors, it comes out "session", and it doesn't exist in the current context. Next I create the copyroom copymodel files and insert the string in CommandManager.cs [ICODE] this.Register("copiamodel", new CopiaModel()); this.Register("copyroom", new copyroom()); [/ICODE] but the error "The type and space name, of the names' CopiaModel, copyroom 'was not found. Probably missing a using directive or an Assembly reference.' [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Error adding commands in the emulator
Top