In the latest versions of MaNGOS you can't create portals using areatrigger_template anymore. What you will need to do is create a gameobject that will use a teleporting spell with chosen coordinates.
Step 1 - Finding a teleport spell
Go to [Only registered and activated users can see links. ], search for teleport.
Go to the category: Uncategorized spells
Look around for spells with the effect type: "Effect: Teleport units" ([Only registered and activated users can see links. ])
Some example spells you can use:
29216
20618
20682
34673
There are alot more you can use, just look around.
Step 2 - Adding coordinates for the spell
Open table: spell_target_position in your mangos database (Using any SQL GUI, eg. navicat).
Create a new row, and put the choosen spell ID in the 'id' column.
Use the .gps command ingame at the teleport position you want for the portal and copy the coordinates to the position columns in the table.
The selected coordinates in the screenshot are the ones you need, ignore the rest.
Step 3 - Creating the gameobject
Open table gameobject_template
Create a new row.
The only columns you need to edit here are:
entry, type, displayId, name, data0
entry Use an ID like 900001, 900002 to make sure it doesn't exist already.
type: must be 22, which is the gameobject type for teleporting spells, otherwise it wont work.
displayID: The display id for the object. 7146 is a good ID for portals.
Name: Portal name (will be displayed when you moused over) Example: Portal to GM Island
data0: The same SPELL ID that you used in the spell_target_position table
Start the server, login and test your new portal.



LinkBack URL
About LinkBacks




Reply With Quote





Bookmarks