*Alexz*
04-08-08, 08:42 PM
its a simple code (put it in notepad):
function Teleporting_onUse (pUnit, Event, pMisc)
pMisc:Teleport (Map ID, X cord, Y cord, Z cord)
end
RegisterGameObjectEvent (Object id, 2, 'Teleporting_onUse')
then just save it as name.lua
Insert this into your DB
INSERT INTO gameobject_names (entry, Type, DisplayID, Name) VALUES (id, 22, displayid, 'name')Credits to Vashidu for SQL Query
function Teleporting_onUse (pUnit, Event, pMisc)
pMisc:Teleport (Map ID, X cord, Y cord, Z cord)
end
RegisterGameObjectEvent (Object id, 2, 'Teleporting_onUse')
then just save it as name.lua
Insert this into your DB
INSERT INTO gameobject_names (entry, Type, DisplayID, Name) VALUES (id, 22, displayid, 'name')Credits to Vashidu for SQL Query