PDA

View Full Version : Portals



*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

Vashidu
05-08-08, 09:18 PM
heres the code for a queiry of the portal


INSERT INTO gameobject_names (entry, Type, DisplayID, Name) VALUES (id, 22, displayid, 'name')


that should work if it dosent tell me and ill fix it

StickyIcky
05-08-08, 10:45 PM
very nice +rep for both

Apple
06-08-08, 12:43 AM
Nice +Rep b0th ; )

*Alexz*
06-08-08, 12:20 PM
heres the code for a queiry of the portal


INSERT INTO gameobject_names (entry, Type, DisplayID, Name) VALUES (id, 22, displayid, 'name')
that should work if it dosent tell me and ill fix it
thx ill edit the min post

Vashidu
14-08-08, 08:46 AM
i messed up on that code i just realized that it needs to be like this


INSERT INTO gameobject_names (entry, Type, DisplayID, Name) VALUES (id, 2, displayid, 'name')

i changed the type from 22 which uses teleportspells or sum stuff but type 2 dosent so change ur portals to type 2 which dosent need spells

Synthetic
31-08-08, 09:13 AM
Very nice !!! +rep for u vashidu and Alexz ;)

Coldmrn
05-09-08, 10:40 AM
Very simple and old

But thanks again.