Valentine90 Posted September 23, 2012 Author Share Posted September 23, 2012 **Sorry my english**There are two errors, the first error happens when you put a slide:![](http://img683.imageshack.us/img683/1885/imagemzg.png)And in front of the slide has lock or resource, and the collides player toward these. The second error is that the player does not slide to the direction chosen in the editor, this tutorial will teach correct both errors occurring on the server.**Open Server**1 - In **modPlayer**, look for:``` ' SlideIf .Type = TILE_TYPE_SLIDE ThenForcePlayerMove Index, MOVING_WALKING, GetPlayerDir(Index)Moved = YESEnd IfEnd With```2 - Replace with:``` ' SlideIf .Type = TILE_TYPE_SLIDE ThenSelect Case .Data1Case DIR_UPIf Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index) - 1).Type = TILE_TYPE_RESOURCE Or Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index) - 1).Type = TILE_TYPE_BLOCKED Then Exit SubCase DIR_LEFTIf Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index) - 1, GetPlayerY(Index)).Type = TILE_TYPE_RESOURCE Or Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index) - 1, GetPlayerY(Index)).Type = TILE_TYPE_BLOCKED Then Exit SubCase DIR_DOWNIf Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index) + 1).Type = TILE_TYPE_RESOURCE Or Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index), GetPlayerY(Index) + 1).Type = TILE_TYPE_BLOCKED Then Exit SubCase DIR_RIGHTIf Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index) + 1, GetPlayerY(Index)).Type = TILE_TYPE_RESOURCE Or Map(GetPlayerMap(Index)).Tile(GetPlayerX(Index) + 1, GetPlayerY(Index)).Type = TILE_TYPE_BLOCKED Then Exit SubEnd SelectForcePlayerMove Index, MOVING_WALKING, .Data1Moved = YESEnd IfEnd With```**Credits**ValentineRicardo/iHero Link to comment Share on other sites More sharing options...
Justn Posted September 23, 2012 Share Posted September 23, 2012 Hmm there was already a fix posted for this and I thought Jc added it .to 2.3? Or is this a newer fix of the fix? Lol Link to comment Share on other sites More sharing options...
Valentine90 Posted September 23, 2012 Author Share Posted September 23, 2012 There are two corrections if already posted I'm sorry, but I searched and could not find anything to fix the problem complete of slide.This fix is complete. Link to comment Share on other sites More sharing options...
Justn Posted September 23, 2012 Share Posted September 23, 2012 Cool just wondering cause I still have the old fix and wasn't sure.. will use this one instead Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now