The title is long, but the tutorial is simple.
Ever have those annoying mapping things you don't think about? You place a rock at the edge, block the tile. It can be access from a map below it, then some player ends up on a large blocked path? Sometimes maps just
need to end at the edges and not have people warp on them.Here is the simple fix.
All Server Side!Open:
ModGameLogicIn:
Sub PlayerMoveFind:
Code:
Dim MapNum As Long
Add Under:
Code:
Dim NewMap As Long
Find:
Code:
' Check to see if we can move them to the another map
If Map(GetPlayerMap(Index)).Up > 0 Then
Call PlayerWarp(Index, Map(GetPlayerMap(Index)).Up, GetPlayerX(Index), MAX_MAPY)
Moved = YES
End If
Replace with:
Code:
' Check to see if we can move them to the another map
If Map(GetPlayerMap(Index)).Up > 0 Then
NewMap = Map(GetPlayerMap(Index)).Up
If Map(NewMap).Tile(GetPlayerX(Index), MAX_MAPY).Type <> TILE_TYPE_BLOCKED Then
Call PlayerWarp(Index, Map(GetPlayerMap(Index)).Up, GetPlayerX(Index), MAX_MAPY)
Moved = YES
End If
End If
Do the same for the other directions. Problems or fixes or whatnot, post here.