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
hospital bed code?
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: 385343" data-attributes="member: 36373"><p>Okay? I just fucking told you how to do it. If you think we are going to code it for you; you're out of your mind?</p><p></p><p>1) Create a boolean in the Habbo class to determine if they are "dead"</p><p>2) Whereever you update their "health" if health hits 0 -> assign true to the boolean and send the user to the room of the hospital</p><p>3) In the ROOMENTRY method test if boolean is true. If the boolean is true loop through all of the floor items in the room and determine if the interaction type is bed. Create an array of all of the items (Or a list !) and then use a random number method to grab a random index between 0 and the array length.</p><p>4) Get the coordinates of the bed and put the user there! (You will have to force them to lay down, reference :lay)</p><p></p><p>Done.</p></blockquote><p></p>
[QUOTE="JayC, post: 385343, member: 36373"] Okay? I just fucking told you how to do it. If you think we are going to code it for you; you're out of your mind? 1) Create a boolean in the Habbo class to determine if they are "dead" 2) Whereever you update their "health" if health hits 0 -> assign true to the boolean and send the user to the room of the hospital 3) In the ROOMENTRY method test if boolean is true. If the boolean is true loop through all of the floor items in the room and determine if the interaction type is bed. Create an array of all of the items (Or a list !) and then use a random number method to grab a random index between 0 and the array length. 4) Get the coordinates of the bed and put the user there! (You will have to force them to lay down, reference :lay) Done. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
hospital bed code?
Top