Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Tutorials => Topic started by: Shruik on March 15, 2013, 01:34:18 pm

Title: [TUTORIAL] Dungeon entry
Post by: Shruik on March 15, 2013, 01:34:18 pm
You need:
-DBC Util/DBC Editor
-A Working WoW server (in my case arcemu 3.3.5a)
-Something to edit your server´s world-database

First extract the AreaTrigger.dbc file and open it or convert it with dbcutil.
Within this file you will see that you need the coords of where your portal is supposed to be. Log in to your
server and find the place you want your portal to be. In my test case i will use a pretty lame location on the
gmisland and teleport myself into the box under it. Use the .gps command to get the coords.
(http://imagr.eu/up/514314d13935d_1.jpg)
Then create a new entry in the areatriggers table in your world database. Further explenations can be found here (http://www.arcemu.org/wiki/Areatriggers).
I will use the entry 1 because it´s unused ;)
As type I set 1 for an instance.
Now it is getting interesting. In the database the coords of where you get by using the "portal" are set. So I get
inside the gmbox and use .gps again.
(http://imagr.eu/up/514314d13950a_2.jpg)
Then enter these coords to the areatriggers table. As we set our teleport to an instance we can add a required_level
in the last column of the table. For testing purposes i will set it to 60. And also we have a name field (only for
us to better see where it leads us to) and a screen column where you can set the loadingscreen. And of course the
required honorrank.
Now that we finished our work on the areatriggers table open the AreaTrigger.dbc
As you maybe notice the first Number in every line is our refID or otherwise said entry again. So wirte 1 in a new
line. The second number is the map where our teleport is located. In my case it´s 1 because gmisland is on Kalimdor.
Then you add x, y and z coords with a dot between the number and the decimal place. Next is the radius. The radius
is measured in what ever unit wow uses (i think it was supposed to be feet but translated as meter in german or
such). I´ll set it to 5 what means, that in a 5m radius (ball shaped) around my coords the teleport will start. For
small doors you should use values like 2.0 and for giant entrys like ahn´qiraj it´s 80.0 etc.
Next are the box_x _y and _z value as well as the box_orientation. For these check the comment at pxr (http://pxr.dk/wowdev/wiki/index.php?title=AreaTrigger.dbc).
(http://imagr.eu/up/514314d1390be_3.jpg)
Now that we got our entry in the AreaTrigger.dbc put it into a patch and your server´s dbc folder. Reload the
server´s tables (or restart it) and get to your choosen point.
Small demonstration video: http://www.youtube.com/watch?v=A5u41ugZ ... e=youtu.be (http://www.youtube.com/watch?v=A5u41ugZByU&feature=youtu.be" onclick="window.open(this.href);return false;)

Quote from: "Ascathos"
On a side note, TrinityCore features this as entry within the database. I am not exactly sure right now how this would require you to add a DBC entry, but I assume not.
Title: Re: [TUTORIAL] Dungeon entry
Post by: hyakkimaru on March 15, 2013, 09:15:11 pm
Nice thank you :D !
Title: Re: [TUTORIAL] Dungeon entry
Post by: Steff on March 16, 2013, 09:23:22 am
Yes very usefull :)
Title: Re: [TUTORIAL] Dungeon entry
Post by: Ascathos on March 16, 2013, 01:11:54 pm
On a side note, TrinityCore features this as entry within the database. I am not exactly sure right now how this would require you to add a DBC entry, but I assume not.
Title: Re: [TUTORIAL] Dungeon entry
Post by: Shruik on March 16, 2013, 05:31:18 pm
Quote from: "Ascathos"
On a side note, TrinityCore features this as entry within the database. I am not exactly sure right now how this would require you to add a DBC entry, but I assume not.

I´m too lazy to compile trinity due to massive (personal) problems with cmake ;) But thanks for the note :)
Title: Re: [TUTORIAL] Dungeon entry
Post by: elarose on March 29, 2013, 09:40:11 pm
Trinitycore wiki

Quote: This is the trigger identifier, it must match with the one from AreaTrigger.dbc

Trinity cores entry is merely the 'where do i go from this point' The reason why you see two is that it required both for exit and entry.
Title: Re: [TUTORIAL] Dungeon entry
Post by: stan84 on March 30, 2013, 02:20:13 pm
Id like to use inactive instance  portal to teleport from 1 place to another.

i have added new areatrigger in areatrigger.dbc with unique id, and added new entry in areatrigger_teleport table. after that dbc file was copied to server folder. Mangos runs without any errors, but trigger not working. Command .go areatrigger (trigger_id)  takes me to place where trigger is located, but not teleports me to destination place.

my sql line looks like that :

'4135', 'destination place name', '0', '0', '0', '0', '532', '-11040.1', '-1996.85', '94.6837', '2.20224'

areatrigger.dbc line :

4135; 0; -11041.9003906; -1995.01000977; 93.0334014893; 0.0; 8.97200012207; 5.5560002327; 13.3299999237; 5.37599992752,

532 area exists ( .go xyz takes me there)

Edit: 30.03.2013

ok i realized that mangos not supporting this solution, but i wonder why,  just wanted add portals to karazhan which are exists in tbc...

thanks Stan
Title: Re: [TUTORIAL] Dungeon entry
Post by: Dracbane on April 12, 2013, 10:04:27 pm
I am trying to use this to get a custom instance portal working. I have managed to get the EXIT portal to work without issue.  The entrance however wont trigger.  I have even tried to change where the entrance triggered but that didnt work either.  Is this an issue with custom maps?

The Entrance is ID 5901
The Exit is ID 5902 (WORKS!)

[attachment=1:3j14z3vn]DBC.jpg[/attachment:3j14z3vn]

[attachment=0:3j14z3vn]database.jpg[/attachment:3j14z3vn]
Title: Re: [TUTORIAL] Dungeon entry
Post by: Shruik on May 20, 2013, 12:56:33 pm
I think you might have a little problem within your dbc. The first number after the x, y, z axis is a ball shaped area around that point where it will trigger. As you set it to 0.0 it can´t trigger. Try it out with 3.0 or 5.0.
Title: Re: [TUTORIAL] Dungeon entry
Post by: Ginev on April 10, 2015, 09:51:09 pm
Well guys if you want call me a idiot but i dont understand what to do in the begining after i convert the AreaTrigger.dbc with dbcutil program.yes i understand the part with how to get the coordinates from Wow but after that i really dont know what to open and with what program to open it?The tutorial dont say that information here.Sorry Shruik but if you have time could you make some new tutorial explained for newbies like me.Everything explained step by step with pictures like Steff tutorials?
Title: Re: [TUTORIAL] Dungeon entry
Post by: Senix on February 05, 2018, 02:03:57 pm
Hey guys i have a massive problem with my dungeon portals.. the first 5 new portals works perfeclty after the 6 entry, the portals doenst work someone knows how to fix this?

PS: Its TrinityCore it works perfect with this Tutorial