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 Releases
Server Releases
[RELEASE] ShockEMU V1 (RP)
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="Core" data-source="post: 390416" data-attributes="member: 72270"><p>The police bots where rushed in this emulator, so it's not worth copying it. You're better off just trying to coding them yourself.</p><p></p><p>Just make a class of the bots AI instance and then most of the code will be done inside of the ticker 'event'. Oh and, instead of constantly looping through the room users all the time, just add a OnRoomUserWanted 'event' and check if the user is wanted when they enter the room (OnRoomUserEntered, or something like that). Also, in the released build of Shock I don't think it has proper tile finding, so if user goes in corner of the room the bot will not follow them; simple solution is to get all the tiles around them and validate them; choosing the most valid one first (should order them in distance first so it doesn't walk to the tile behind the user :')).</p><p></p><p> As for ammo, it's as simple as the command. Just add a AI class for the bots AI instance and use OnRoomUserSay if it contains something specific like 'buy ammo' then update the ammo variable (if you don't cache then also update it in the db).</p></blockquote><p></p>
[QUOTE="Core, post: 390416, member: 72270"] The police bots where rushed in this emulator, so it's not worth copying it. You're better off just trying to coding them yourself. Just make a class of the bots AI instance and then most of the code will be done inside of the ticker 'event'. Oh and, instead of constantly looping through the room users all the time, just add a OnRoomUserWanted 'event' and check if the user is wanted when they enter the room (OnRoomUserEntered, or something like that). Also, in the released build of Shock I don't think it has proper tile finding, so if user goes in corner of the room the bot will not follow them; simple solution is to get all the tiles around them and validate them; choosing the most valid one first (should order them in distance first so it doesn't walk to the tile behind the user :')). As for ammo, it's as simple as the command. Just add a AI class for the bots AI instance and use OnRoomUserSay if it contains something specific like 'buy ammo' then update the ammo variable (if you don't cache then also update it in the db). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[RELEASE] ShockEMU V1 (RP)
Top