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

[EO] How to walk through a player


OmegaRedd
 Share

Recommended Posts

Can someone tell me how to set it so that I can walk through other players? I'm having problems with waiting for other players to move out of the way to buy an item from the shop. But if someone decides to go away while on the shop attribute, then they're screwed.
Link to comment
Share on other sites

Open up Client.vbp with VB6

under modGameLogic find this:
```
    ' Check to see if a player is already on that tile
    For i = 1 To Player_HighIndex
        If IsPlaying(i) And GetPlayerMap(i) = GetPlayerMap(MyIndex) Then
            If GetPlayerX(i) = x Then
                If GetPlayerY(i) = y Then
                    CheckDirection = True
                    Exit Function
                End If
            End If
        End If
    Next i

    ' Check to see if a npc is already on that tile
    For i = 1 To Npc_HighIndex
        If MapNpc(i).num > 0 Then
            If MapNpc(i).x = x Then
                If MapNpc(i).y = y Then
                    CheckDirection = True
                    Exit Function
                End If
            End If
        End If
    Next

```
delete that entire code. save, and compile now you can now walk through both players, and monsters/NPC. have fun ;P
Link to comment
Share on other sites

Okay azin I did exactly what you said, and It's still not working for me.. If you guys could take a look at what I'm doing, and tell me if It's something I'm not doing because this isn't the first time I tried to edit something and it hasn't worked.

http://www.youtube.com/watch?v=MRYsN89Fi5A
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...