Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Entering a building error


alextoti99
 Share

Recommended Posts

When im entering a building threw warp im getting error at these lines:
```
' Check to see if the map tile is blocked or not
If Map.Tile(x, y).Type = TILE_TYPE_BLOCKED And Player(MyIndex).Walkthrough = False Then
CheckDirection = True
Exit Function
End If

' Check to see if the map tile is a resource or not
If Map.Tile(x, y).Type = TILE_TYPE_RESOURCE And Player(MyIndex).Walkthrough = False Then
CheckDirection = True
Exit Function
End If

' Check to see if the key door is open or not
If Map.Tile(x, y).Type = TILE_TYPE_KEY Then

' This actually checks if its open or not
If TempTile(x, y).DoorOpen = NO And Player(MyIndex).Walkthrough = False Then
CheckDirection = True
Exit Function
End If
End If

' Check to see if a npc is already on that tile
For I = 1 To Npc_HighIndex
If MapNpc(I).Num > 0 And Player(MyIndex).Walkthrough = False Then
If MapNpc(I).x = x Then
If MapNpc(I).y = y Then
If Not Player(MyIndex).Walkthrough Then
CheckDirection = True
Exit Function
End If
End If
End If
End If
Next
```if possible help me :D thx in advance
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...