There is several ways to make portals. They are mostly all about editing an old Teleport to your gameobject. Then, when you press it, you get teleported. The only problem about that is, that since you editted an old spell, that name comes up while teleporting IE: Goldshire:
Another problem is, that you can run out of old teleports.
You can fix that !
All you gotta do, is to script your gameobjects, and it ain't really hard:
1. Open up your database(HeidiSQL, Navicat ect.)
2. Go to the Gameobject_Names and create an gameobject
EntryID: Any high number
Type: 22
DisplayID: 1327 is Summoning Portal, but you can use like everything else. It could be a skull, a tree or whatever you wish
Spell Focus: 0
O.k.
Now you got the gameobject fixed.
3. Log into your private server, with a GM account
4. Write GPS. That information will be needed in the script.
You will need MapID, X-Coord, Y-Coord, Z-Coord.
(Xcoordinate is North[+] and South[-] -
Ycoordinate is East[>] and West[<] -
Z is Height)
Now The Scripting Part
5. Open up an empty Notepad.
6. Write this in:
Breaken Into Parts:function ScriptName(pUnit, Event, pMisc)
pMisc:Teleport(MapID, X-Coord, Y-Coord, Z-Coord)
end
RegisterGameobjectEvent(GameObjectsENTRYID, 2, "ScriptName")
That is the name of the function. Ascent Console will identify this, and match it with an "Register". Make sure this Name is U-N-I-Q-U-Efunction ScriptName(pUnit, Event, pMisc)
After your script has been recognized, This tells it what to do. In this case it tells to Teleport("pMisc:Teleport")pMisc:Teleport(MapID, X-Coord, Y-Coord, Z-Coord)
After that it needs to know where to teleport to, and that is the coordinates
Tells the script to end here(IE. no more commands. You could also make it cast a spell, but the end tells it not to do anything else )end
Tells it to Register the script. In this case as a GameObject.RegisterGameObjectEvent(GameObjectsEntryID, 2, "ScriptName"(
GameObjectsEntryID is the EntryID you created the Gameobject with. This tells the script what GameObject should teleport u.RegisterGameobjectEvent(GameObjectsEntryID, 2, "ScriptName")
2. Means that it is on use(IE: Click)
It could also be 1, which means on spawn
ScriptName is the script name(That you wrote at start)
What the script could look like:
7. Reload Server(Ascent.exe or Ascent-World.exe)function CustomMallPortal(pUnit, Event, pMisc)
pMisc:Teleport(530, 1000, 100, 200)
end
RegisterGameobjectEvent(881222, 2, "CustomMallPortal")
8.Go into game and spawn your gameobject
9. Right click it. IF it ports you to your location, You're completed. Congratulations.