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
Dreampathfinder PlusEMU
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="Sledmore" data-source="post: 387048" data-attributes="member: 591"><p>Hey,</p><p></p><p>I've made a little 'hacky' way of doing it, I haven't implemented Dream Pathfinder (as it seems a giant pain).</p><p></p><p>This isn't 100% it'll cause some issues if the path is already blocked, but hopefully it helps you a little to find out where to go from here?</p><p></p><p><strong>This still needs work, just it might help you a little bit.</strong></p><p></p><p>In GameMap.cs find ''<strong>public bool IsValidStep(Vector2D From, Vector2D To, bool EndOfPath, bool Override, bool Roller = false)</strong>"</p><p></p><p>Change:</p><p></p><p>[PHP]if ((mGameMap[To.X, To.Y] == 3 && !EndOfPath) || mGameMap[To.X, To.Y] == 0 || (mGameMap[To.X, To.Y] == 2 && !EndOfPath))</p><p> return false;[/PHP]</p><p></p><p>To:</p><p></p><p>[PHP]if ((mGameMap[To.X, To.Y] == 3 && !EndOfPath) || (mGameMap[To.X, To.Y] == 2 && !EndOfPath))</p><p> return false; [/PHP]</p><p></p><p>Then in the same file find "<strong>public bool IsValidStep2(RoomUser User, Vector2D From, Vector2D To, bool EndOfPath, bool Override)</strong>"</p><p></p><p>Above this line:</p><p></p><p>[PHP]if ((mGameMap[To.X, To.Y] == 3 && !EndOfPath && !Chair) || (mGameMap[To.X, To.Y] == 0) || (mGameMap[To.X, To.Y] == 2 && !EndOfPath))[/PHP]</p><p></p><p>Add this:</p><p>[PHP]if (mGameMap[To.X, To.Y] == 0)</p><p> {</p><p> if (User.Path.Count > 0)</p><p> User.Path.Clear();</p><p> User.PathRecalcNeeded = false;</p><p> return false;</p><p> }[/PHP]</p><p></p><p>Debug, and it should hopefully help you out - but this isn't 100%.</p></blockquote><p></p>
[QUOTE="Sledmore, post: 387048, member: 591"] Hey, I've made a little 'hacky' way of doing it, I haven't implemented Dream Pathfinder (as it seems a giant pain). This isn't 100% it'll cause some issues if the path is already blocked, but hopefully it helps you a little to find out where to go from here? [B]This still needs work, just it might help you a little bit.[/B] In GameMap.cs find ''[B]public bool IsValidStep(Vector2D From, Vector2D To, bool EndOfPath, bool Override, bool Roller = false)[/B]" Change: [PHP]if ((mGameMap[To.X, To.Y] == 3 && !EndOfPath) || mGameMap[To.X, To.Y] == 0 || (mGameMap[To.X, To.Y] == 2 && !EndOfPath)) return false;[/PHP] To: [PHP]if ((mGameMap[To.X, To.Y] == 3 && !EndOfPath) || (mGameMap[To.X, To.Y] == 2 && !EndOfPath)) return false; [/PHP] Then in the same file find "[B]public bool IsValidStep2(RoomUser User, Vector2D From, Vector2D To, bool EndOfPath, bool Override)[/B]" Above this line: [PHP]if ((mGameMap[To.X, To.Y] == 3 && !EndOfPath && !Chair) || (mGameMap[To.X, To.Y] == 0) || (mGameMap[To.X, To.Y] == 2 && !EndOfPath))[/PHP] Add this: [PHP]if (mGameMap[To.X, To.Y] == 0) { if (User.Path.Count > 0) User.Path.Clear(); User.PathRecalcNeeded = false; return false; }[/PHP] Debug, and it should hopefully help you out - but this isn't 100%. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Dreampathfinder PlusEMU
Top