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:
function Base_H (pUnit, Event, pMisc)
pMisc:Teleport (MapID,X,Y,Z)
end
RegisterGameObjectEvent (EntryID,2,"Base_H")
Change the Bold Letters to what the .gps came up as it's pretty easy.
Make sure the Bold letters are the same or it won't work. For each portal the name must be different
function Base_H (pUnit, Event, pMisc)
pMisc:Teleport (X,Y,Z)
end
RegisterGameObjectEvent (EntryID,2"Base_H")
STEP 2 Spawning a Portal
Open up MySQL or whatever your using and open
gameobject_names
Open a New one and change it to
(LUAentryID,4,DisplayID,Name,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
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