I was wondering if someone could make a tile that only admins could walk through, and it would block players.
If someone can make a tutorial for it, I would be greatly appreciative.
~Braydok
Have you even tried doing this? It would be VERY simple. You would just add the tile type, then you would add it everywhere you see the block tile type, but when they try to walk through the admin tile, make it check their access, if it's not the right access, then don't let them pass.
Pretty simple.
I suppose you're right...
Okay, I'll go try, and if I can't get it, then I'll ask.
To the Kill Tile tutorial!!!
~Braydok
No..
Dude, I will write you this tutorial in a bit.
*sigh*
Mehh,, I think Elec goes to the kill tile tut to see how he can add tile types. allthough you learn more by just looking at a vannila source and trying to understand it.
So I think no tut needed ,, and BTW if Elec makes it and he wants to share it ,, he makes a tut.
(No offence, just trying to help reducing your workload :wink: )
No problem. This is like a 5 minute feature. I don't currently have a workload, unless you count taking care of my son. xD
Yeah, that counts.
Styre was right, I'm looking at the kill tile tut to see how he does it.
But if you want to write the tut, that would help.
~Braydok
Ripping from ES, copy/paste. That's not the answer to everything kid. Specially if you actually want to learn something. But we can all tell you haven't learned anything at all.
Well, if I could figure out how to make it so that in the playermove sub, it doesn't let you move, I could probably make this work, but I can't figure it out... it keeps booting me for the position mod, (I know why it does this, but I'm just trying to make it so that a person can't move...
~Braydok
Dragoons Master
Unregistered
You want a char to not be able to move to an specific square, so check all the positions he tried to move(that's already done) and just a dd a check: if map(i).tile(x,y).type = map_tile_block_or_something_like_that then canmove = false
That's basicly it.
Make sure you do the check for each direction though. It's really simple.
the server doesn't have a canmove.