toxic11b
11-17-2007, 03:06 PM
Ok Im not really good at this so hang in there with me. This was the best way for me to create my own portals and I thought of it to be easy. If you want to give it a try by all means.
Ok first go ingame to the location that you want your visitors to spawn in at and type .gps
http://img164.imageshack.us/img164/6156/gpsix7.jpg
2nd. Create a new document on your desktop copy and paste the code below into it.
global YOURNAME=function(plr)
{
plr.Teleport(MAP,X,Y,Z);
};
.RegisterGameObjectEvent(YOURNUMBER, 2, YOURNAME);
Edit the script where it says YOURNAME to fit the name of your portal " The Mall " Something like that.
Then you edit Map, X,Y,Z Go back to step 1 where you did .gps enter the coords there.
And the last line edit YOURNUMBER and YOURNAME. YOURNUMBER has to match the same NUMBER that you use for your entry ID of your Portal. YOURNAME just name it as you named it in line 1. If it is a 2 word name make sure that you put it like this The_Mall if you do not it will not work.
Ok after that is done save the file as Mall.gm or whatever you want to name it.
Ok I find doing this easier than just going in and making changes or making new lines so hang in there with me.
The SQL Query below will create everything for you . All you have to do is copy and paste it in a text file and edit it to fit your portal.
Step 1. See where it says 35550? Edit that number to what you want just make sure it is available in your DB.
Step 2. The Mall ? Name that what your named it in the GM Script
Step 3. 1 = Map , -18649.228516 = X, 1965.398560 = Y, 103.975739 = Z, 0= Leave it alone. Just enter in your Coords to replace them.
Step 4. The 3rd line where it says 600500 That is the entry ID, Name it to fit your DB or use mine if it helps.
Step 5. The Mall Name it to fit your name.
Step 6 Put the same number that you put in Step 1
INSERT INTO teleport_coords VALUES(35550,'The Mall',1,-8649.228516,1965.398560,103.975739,0);
INSERT INTO gameobject_names VALUES('600500','22','1327','The Mall','35550','0','0','0','0','0','0','0','0','0', '0','0','0','0','0','0','0','0','0','0','0','0','0 ','0');
Now just open HeidiSQL locate the Ascent table . On the right side you will see tabs. One of them will say Query. Paste the code that you edited in there and push the execute SQL arrow on the top right.
Now you are done . Restart your server and spawn the portal with
.go spawn 600500 1 " If you used my numbers " If not then spawn it the same way but with the Entry ID that you created. NOTE!! Make sure you place a 1 at the end of the line. If you do the portal will stay there if not it will go away after a restart.
I hope this helped lol I found this way easy for me.
Ok first go ingame to the location that you want your visitors to spawn in at and type .gps
http://img164.imageshack.us/img164/6156/gpsix7.jpg
2nd. Create a new document on your desktop copy and paste the code below into it.
global YOURNAME=function(plr)
{
plr.Teleport(MAP,X,Y,Z);
};
.RegisterGameObjectEvent(YOURNUMBER, 2, YOURNAME);
Edit the script where it says YOURNAME to fit the name of your portal " The Mall " Something like that.
Then you edit Map, X,Y,Z Go back to step 1 where you did .gps enter the coords there.
And the last line edit YOURNUMBER and YOURNAME. YOURNUMBER has to match the same NUMBER that you use for your entry ID of your Portal. YOURNAME just name it as you named it in line 1. If it is a 2 word name make sure that you put it like this The_Mall if you do not it will not work.
Ok after that is done save the file as Mall.gm or whatever you want to name it.
Ok I find doing this easier than just going in and making changes or making new lines so hang in there with me.
The SQL Query below will create everything for you . All you have to do is copy and paste it in a text file and edit it to fit your portal.
Step 1. See where it says 35550? Edit that number to what you want just make sure it is available in your DB.
Step 2. The Mall ? Name that what your named it in the GM Script
Step 3. 1 = Map , -18649.228516 = X, 1965.398560 = Y, 103.975739 = Z, 0= Leave it alone. Just enter in your Coords to replace them.
Step 4. The 3rd line where it says 600500 That is the entry ID, Name it to fit your DB or use mine if it helps.
Step 5. The Mall Name it to fit your name.
Step 6 Put the same number that you put in Step 1
INSERT INTO teleport_coords VALUES(35550,'The Mall',1,-8649.228516,1965.398560,103.975739,0);
INSERT INTO gameobject_names VALUES('600500','22','1327','The Mall','35550','0','0','0','0','0','0','0','0','0', '0','0','0','0','0','0','0','0','0','0','0','0','0 ','0');
Now just open HeidiSQL locate the Ascent table . On the right side you will see tabs. One of them will say Query. Paste the code that you edited in there and push the execute SQL arrow on the top right.
Now you are done . Restart your server and spawn the portal with
.go spawn 600500 1 " If you used my numbers " If not then spawn it the same way but with the Entry ID that you created. NOTE!! Make sure you place a 1 at the end of the line. If you do the portal will stay there if not it will go away after a restart.
I hope this helped lol I found this way easy for me.