Hello,
I run a pve zone on my server and since some people just visit it to gather or hang around without all the pvp hassle I thought it was a good idea to have a sort of hotel system?
Example:
You build a hotel with different rooms, with a "front desk" at the entrance.
Every room door is locked with a code lock. People will be able to click/type something
at the front desk, they then receive a room number + door code.
The system then marks that specific room as occupied so it doesnt give out the code to anyone else
untill the guest is checked out.
When guests leave they can click/type something at the front desk.
What do you guys think?![]()
Solved Hotel system
Discussion in 'Plugin Requests' started by MrSmid, Jul 26, 2015.
-
The code lock part could be tricky, since i don't know if you can change the door code every time someone gets the room. If you keep the same, players could break in other players room. The idea itself is pretty nice, but thats the only thing i think that wont work out.
-
Crap I didnt think of that. Pretty impossible without an admin removing/editing the lock code after a guy checks out then
-
You will need to use Zone Manager to make the building prevent decay,damage,ownership
-
you can change the code lock, no reasons not to be able to.
pretty sure such a plugin is doable. -
you should be able to use a database to store codes for locks and then have a plugin randomize code locks and add to data base i would think
-
Maybe instead of changing the lock codes, keep them locked and use what /share does.
That way players can't steal the locks off the doors. -
Yah but you can't do share doors with just one door...
[DOUBLEPOST=1437982596][/DOUBLEPOST]So they would be able to go into every hotel room -
[DOUBLEPOST=1437983740][/DOUBLEPOST] -
You could also just leave the dor closed, but when the player next to his door like /hotel enter writes, he gets teleported inside, and then he can write /hotel leave to get teleported infront of the door. Like this you wont have the problem with the tricky codelock stuff
-
changing the code lock is more user friendly then to have to make him write stuff
-
-
well it's less code to change the code lock ^^, then having to have a file, having to load it/unload it, etc ^^
-
Sometimes people think too complicated, attached a screenshot of my hotel.
All I do is, i put some code locks on the doors and keep them open.
At the help desk near the entrance is an npc telling players that enter the building that they can just claim a room by entering their preferred code and it works pretty well.
RegardsAttached Files:
-
-
what i was thinking about this plugin (might be doing it when i get home, but i already have so much plugins i got to fix / update XD):
- Zone to detect all code locks, and by position say who last used the code lock, and if it was more then XX time ago it gets freed for the next user to use
- When you enter the Zone of the hotel: you get a message (like what rooms are free or if you have the NPC plugin: go see the NPC)
- When you use the NPC: you get a message with rooms whom are free
- You can just go to any room and enter a new code lock for it, if you already have a room or you are too old on the server it will block you from doing so, so you can only have 1 room.
- If your time is almost expired (too old on the server), you get a message that you have to move your things away
- If your time is expired (too old on the server or last connection too long ago), the code lock from your room gets reset for the next user to use it.
Could also make something like payement process where you have to bring wood for 1day hotel, etc etc, but that would be more for a RPG server then just any kind of server.
Edit:
- hooking boxes to locks for optionnal reset on owner change
- hooking bed / sleeping bag to locks to auto give access to the owner (optionnal)
- block player deployables as optionnal
Or allow if deployable can access the code lock (basically raycast from deployable to code lock and see if there is a wall blocking or not)Last edited by a moderator: Jul 28, 2015 -
-
Hooking a box to a lock could be possible i guess, so emptying the box could be done. Ill add that as optionnal ^^
[DOUBLEPOST=1438094040][/DOUBLEPOST]Added some stuff in the edit part -
Sounds amazing
-
@Reneb Back to the business xDD
-
Reneb's idea sounds pretty cool