Does anyone know how to lock a custom door and flag a key to unlock it?
Does anyone know how to lock a custom door and flag a key to unlock it?
You cant flag a key to unlock it through anything than C++.
It's easy to create a custom door, just give it the right flags (0 i think at the moment) and a displayid that will work and bam your done. In C++ you can make it so that door will only open if player has a certain item and if not display message. I have no idea how to make it say "Requires key" on bottom right tooltip though. Sorry, hope this helps and good luck!
Damn, i want to have my private room![]()
Well, you install the door then .go select (the door) then .go enable or .go activate
I don't think you will be able to install password xD But GM ones works =)))
Last edited by T-KUAT; 02-03-2009 at 10:39 AM.
should work with lua too:
it is not from me.Code:--change here-- local Tokenid = 123658 ---<- Item ID you need to open the door ---On create select Typ "1" ! local Goid = 654124 ----<-ID from the Door print "Vip Door loaded" --don't change anything below-- function VIPTuerOnUse1(pUnit, Event) local Tokencount = pUnit:GetItemCount(Tokenid) if Tokencount >= 1 then pUnit:ActivateGameObject() print "Access granted" pUnit:RegisterEvent("CloseVipTuer1", 5000, 1) else print "Access Denied" end end function CloseVipTuer1(pUnit, Event) pUnit:ActivateGameObject() end RegisterGameObjectEvent(Goid, 2, "VIPTuerOnUse1")