Make Custom Portal

hi every one

i want to make a sql custom portal, how can i do it ?

— Canned message start —

This thread is not related to the official Trinity codebase and was moved to the Custom Code section.

Please read the stickies next time.

— Canned message end —

Try this SQL:

SET
@GOB_Entry := 1000000,
@GOB_Name := "Teleport name",
@GOB_Display := 1327,

@Event_scriptID := 22222,
@MAP := 1,
@X := 1.1,
@Y := 1.1,
@Z := 1.1,
@O := 1.1
;
-- Do not change below

REPLACE INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `size`, `data2`) VALUES (@GOB_Entry, 10, @GOB_Display, @GOB_Name, 1, @Event_scriptID);
REPLACE INTO `event_scripts` (`id`, `command`, `datalong`, `x`, `y`, `z`, `o`) VALUES (@Event_scriptID, 6, @MAP, @X, @Y, @Z, @O);