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
Command needed $$ involved.
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: 381632" data-attributes="member: 36373"><p>Well, Create 2 variables under the habbo class:</p><p>1) Boolean to control the stack height</p><p>2) Double for the stack height</p><p></p><p>Under the command you want to put this code:</p><p></p><p>Code:</p><p>[CODE]try{</p><p>double height = Convert.ToDouble(Params[1]);</p><p>}catch{</p><p>Session.SendWhisper("Invalid Stack Height");</p><p>return;</p><p>}</p><p></p><p>if(height < 0 || height > 40){</p><p>Session.SendWhisper("Invalid Stack Height Must Be Between 0-40");</p><p>return;</p><p>}</p><p>Session.GetHabbo().Boolean = true;</p><p>Session.GetHabbo().Double = height;</p><p>Session.SendWhisper("Debugging Mode Enabled for height " + height);</p><p>[/CODE]</p><p></p><p></p><p></p><p></p><p>Then Under stopsh just put this:</p><p></p><p>Code:</p><p>[CODE]Session.GetHabbo().Boolean = false;</p><p>Session.GetHabbo().Double = 0;</p><p>[/CODE]</p><p>Then under your RoomItemHandling I believe it is the method<strong> internal bool SetFloorItem</strong></p><p><strong></strong></p><p><strong>Between:</strong></p><p><strong><u><em>item.Rot = newRot;</em></u></strong></p><p><strong><u><em>//Here</em></u></strong></p><p><strong><u><em>item.SetState(newX, newY, height, affectedTiles);</em></u></strong></p><p>Code:</p><p>[CODE]if (Session.GetHabbo().Boolean)</p><p> {</p><p> height = Session.GetHabbo().Double;</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="JayC, post: 381632, member: 36373"] Well, Create 2 variables under the habbo class: 1) Boolean to control the stack height 2) Double for the stack height Under the command you want to put this code: Code: [CODE]try{ double height = Convert.ToDouble(Params[1]); }catch{ Session.SendWhisper("Invalid Stack Height"); return; } if(height < 0 || height > 40){ Session.SendWhisper("Invalid Stack Height Must Be Between 0-40"); return; } Session.GetHabbo().Boolean = true; Session.GetHabbo().Double = height; Session.SendWhisper("Debugging Mode Enabled for height " + height); [/CODE] Then Under stopsh just put this: Code: [CODE]Session.GetHabbo().Boolean = false; Session.GetHabbo().Double = 0; [/CODE] Then under your RoomItemHandling I believe it is the method[B] internal bool SetFloorItem Between: [U][I]item.Rot = newRot; //Here item.SetState(newX, newY, height, affectedTiles);[/I][/U][/B] Code: [CODE]if (Session.GetHabbo().Boolean) { height = Session.GetHabbo().Double; }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Command needed $$ involved.
Top