//SQL part
INSERT INTO gameobject_names (entry, Type, DisplayID, Name) VALUES (500000, 1, 1327, "Portal to Old Ironforge");
----------------------------------------------------------------------
//LUA Part
function Teleporting_onUse (pUnit, Event, pMisc)
pMisc:Teleport (0, -4843.75, -1064.11 502.19)
end
RegisterGameObjectEvent (500000, 2, "Teleporting_onUse")
----------------------------------------------------------------------
//GM Part
global TELE_OLDIRONFORGE = function(plr)
{
plr.Teleport(0, -4843.75, -1064.11 502.19);
plr.SendSystemMessage("Welcome to Old Ironforge");
};
RegisterGameObjectEvent(500000, 2, TELE_OLDIRONFORGE);