I need create a script of object, which would work like teleport to some location, but must function like gate to instance or dark portal(to pass, not click).
thx
With SQL you can use a gameobject with a spell casted on the player approaching the gameobject.
See:
PX-238 Winter Wondervolt
PX-238 Winter Wondervolt TRAP
The spell then teleports the player.
Otherwise you likely need C++.
Cant pull out a script atm, but the basic idea is to use for example a creature that on movement on LOS hook teleports the player if within a set range.
Well, I havent used oregon, but if you choose a spell that has a teleport effect
For example http://wotlk.openwow.com/spell=46615
You should be able to set the location of teleport in a table called spell_target_position