STEP 1
Open up a notepad and copy this into it
function Base_H (pUnit, Event, pMisc)
pMisc:Teleport (MapId,X,Y,Z)
end
RegisterGameObjectEvent (EntryID,2,"Base_H")
Open your Ascent and look for Scripts file and save it as
Teleport1.LUA (or what you want it to be)
MAKE sure you put .LUA!
Go ingame to where you want to teleport to and type the command .gps
In:
Change the red Letters to what the .gps came up as it's pretty easy.Code:function Base_H (pUnit, Event, pMisc) pMisc:Teleport (MapID,X,Y,Z) end RegisterGameObjectEvent (EntryID,2,"Base_H")
Make sure the Bold letters are the same or it won't work. For each portal the name must be different
STEP 2 Spawning a Portal
Open up MySQL or whatever your using and open
gameobject_names
Open a New column and put these inputs in:
DISPLAYIDCode:Entry: LUA entryID Type: 22 Name: The name you want DisplayID: What the portal looks like (a list below) Leave the rest as 0
This is the display / model of the gameobject. You can take your pick from here:
4393 = Darnassus
4396 = Stormwind
4394 = Ironforge
4398 = Undercity
4395 = Orgrimmar
4397 = Thunder Bluff
6956 = Silvermoon
6955 = Exodar
Now start up your realm and go to the area you want to spawn it
Type .go spawn (entryID) 1 (keep the 1 on the end)
If your having troubles post what you have done