Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Nic on November 02, 2010, 06:36:05 pm

Title: [QUESTION] Door System?
Post by: Nic on November 02, 2010, 06:36:05 pm
Hello,

at first sorry for my bad english. To my question. I have seen annother server have an door system for his housing system.

I mean a User have a Key for his house door. The door opens only, when the user have the right key.

And that example for 20-25 doors. Have you an idea how i can create that? I heard that you must edit the lock.dbc. Does anyone have any instructions for it?
Title: Re: [QUESTION] Door System?
Post by: Curas on November 10, 2010, 11:02:49 pm
Yes it is possible, but with ManGOs you can only replace existing LockIDs.

For Example:
"Key of the Master" the Karazhan Key has the LockID 1700
"Portcullis of Karazhan" the Door has the LockID 1700 in the column "open"
That means the Key of the Master is linked to the Portcullis of Karazhan

If you wanna link that Key with an another Gameobject you simply enter the LockID "1700" to an another GameObject.

If you want a new key, then take the old ("Key of the Master") as a template and customize it to your liking.

This is the Entry from Lock.dbc for the Karazhan Key "24490" is the ItemID
Code: [Select]
1700,1,0x2,0x2,0x2,0x0,,,,24490,1,16,10,0x0,,,,0,350,350,0x0,0,,,,0x1,1,0x1,0x0,0,,,,
Here is my Entry from the Lock.dbc for my new Door, my ItemID is "80024" and the Name is "Key to Necromancy Academy"
Code: [Select]
1700,1,0x2,0x2,0x2,0x0,,,,80042,1,16,10,0x0,,,,0,350,350,0x0,0,,,,0x1,1,0x1,0x0,0,,,,
[spoiler:26c1xutr](http://caleron.ca.funpic.de/download/images/necrodoor.JPG)[/spoiler:26c1xutr]

If you want I am writing a more detailed tutorial in the DBC Section.

Regards

Curas
Title: Re: [QUESTION] Door System?
Post by: Khira on November 11, 2010, 02:13:30 pm
Quote from: "Curas"
but with ManGOs you can only replace existing LockIDs.
No, you can add new LockId if you want. If you understand french, I have a complete guide if you want.
Title: Re: [QUESTION] Door System?
Post by: Curas on November 11, 2010, 04:41:40 pm
With MaNGOs? Show me that guide please, french is not my strengh but I wanna see that guide, maybe the google translator could help me.  Please PM me or something.

Regards

Curas
Title: Re: [QUESTION] Door System?
Post by: Nic on November 13, 2010, 12:19:51 am
Sorry i am german and i use Trinity Core 7331 (3.2.2a).

@ Curas A guide would be very good
Title: Re: [QUESTION] Door System?
Post by: Curas on November 13, 2010, 03:47:52 am
Tutorial is made, waitin' for approval. Should be available in the next two days.

Regards

Curas
Title: Re: [QUESTION] Door System?
Post by: Steff on November 18, 2010, 01:47:40 pm
Nice that questions are lead to tutorials.

Thats the right way. God work.
Title: Re: [QUESTION] Door System?
Post by: Nic on November 30, 2010, 06:13:04 pm
Ah sorry i forgot this Thread. My problem has resolved, it was easy to make new doors. Thanks for helping =)