CoonHunter Posted May 24, 2010 Author Share Posted May 24, 2010 I have recently had the problem of players blocking entry to other maps by standing there afk. I can teleport them away, but that is something i dont want to keep doing.What I'm wanting to do: Basically, you can walk through players. The main part I want to do, is if 2 or more players are on the same tile, you only see your character.I am looking through the servers source right now, to see if this 'walking through players' can be done there, but I'm not sure. Link to comment Share on other sites More sharing options...
balliztik1 Posted May 24, 2010 Share Posted May 24, 2010 Look in "CanMove". Just find where it checks the X and Y for other players and remove that part. Link to comment Share on other sites More sharing options...
Bacon Posted May 24, 2010 Share Posted May 24, 2010 @Ballie:> Look in "CanMove". Just find where it checks the X and Y for other players and remove that part.There really isn't any need to get that advanced for this simple solution, but it can be done that way.@CoonHunter:> I have recently had the problem of players blocking entry to other maps by standing there afk. I can teleport them away, but that is something I dont want to keep doing.> > What I'm wanting to do: Basically, you can walk through players. The main part I want to do, is if 2 or more players are on the same tile, you only see your character.> > I am looking through the servers source right now, to see if this 'walking through players' can be done there, but I'm not sure.Go into your map editor, look in "attributes" and there should be an attribute named "Walk Through". Place that where you need it, then players will walk through each other. Link to comment Share on other sites More sharing options...
balliztik1 Posted May 24, 2010 Share Posted May 24, 2010 Well, walkthrough tiles only work in the areas where you lay them. I personally think it's less advanced to cut out a few lines of code rather than fill maps with attributes. Plus, if someone is blocking a warp or a heal tile or something, walkthroughs can't help there. Link to comment Share on other sites More sharing options...
CoonHunter Posted May 24, 2010 Author Share Posted May 24, 2010 @Ballie:> Well, walkthrough tiles only work in the areas where you lay them. I personally think it's less advanced to cut out a few lines of code rather than fill maps with attributes. Plus, if someone is blocking a warp or a heal tile or something, walkthroughs can't help there.It is a bit more advanced, to a point. If you have no prior knowledge with other programming languages, and this is your first langauge, it can be confusing to try to figure out. I personally know about 6 langauges, so it was no problem after I found the method you spoke of, and it solved the issue.Now, I will be looking for a way to check if you and another player are on the same tile, and if so, to make his character invisible, until one of you moves off of the tile. Link to comment Share on other sites More sharing options...
balliztik1 Posted May 24, 2010 Share Posted May 24, 2010 Ah, well, since this is in the source questions, I figured it'd be much simpler. I agree that it requires more knowledge of how things work, but it's certainly less work.As for making players invisible, in the BltPlayer and BltPlayerTop, you can check if GetPlayerX(MyIndex) is equal to GetPlayerX(index), and so on, exiting the sub if so. 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