View Full Version : [SOLVED] Unlock door's for guild member's
02-26-2016, 01:06 PM
Well Is there anyway ( Well I know everything is possible, but... ) to make a door to a building which allow entrence only to member of xy guild ?
And if there is how for a bit of explanation would be helpfull.
Thank you Emudev's member's you're best!
02-26-2016, 03:26 PM
GAMEOBJECT_EVENT_ON_USE = 14, // (event, go, player)
you could write a function that checks if the player using the door is in a certain guild.
I wrote a sample script, don't know if it works so no promises there.
local gameobject_entry = 12345 --ID of the Door
local guild_id = 1 --ID of the guild that is allowed through the door.
-- Checks the Player's Guild, if the player is in the specified guild
-- the door is "opened". Else, the door will be set to closed.
-- ** Not Tested **
function handleLockedGuildDoor(event, go, player)
if(player:GetGuildId() == guild_id) then
player:SendBroadcastMessage("You do not have access to this door.")
RegisterGameObjectEvent(gameobject_entry, 14, handleLockedGuildDoor)
02-26-2016, 05:59 PM
Nothing prevents hackers from getting in.
FoxGaming's suggestion would let a guild member be able to let non guild members in.
There is a way to make guild members able to open a door while others see it closed, but that would need C++ to do properly: https://youtu.be/MOsG3LMhhMc
02-28-2016, 12:08 PM
Thank you for suggestion's :)
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.