[Help]Portal Making[Help]

Junior Spellweaver
Joined
May 11, 2007
Messages
175
Reaction score
0
Hey,
there was one tutorial that i got to make portals which i couldnt get to work.. Also i use ascent 2131 and there arnt any vendors on GMISLAND. Any reason why, is there something i can get to fix that?

Please i need ur help!
 
from what ive looked into custom portals are not as easy as they use to be to set up, im reworking a vendors pack that someone abandoned at another forum ill post them here soon
 
Portals are simple to set up.

Simply go into WoW, stand at the spot of where you want your portal, type .gps, write down the exact x, y, z coordinates, place them into a current entry in "teleport_coords", use that entry as the sound1, and create the game object from there.

(If needed I will post a guide how to do this... just short on time right now).
 
OK GUYS!!! ... Here is my wonder full portal guide ...


Ok ... firstly this is how u make a portal with GM scripts ... they are located in ('ascentdir'/scripts/) *NOT SCRIPTS BIN!!! /scripts/*

we will start by making a small file create a file in the scripts folder called teleport.gm *u have to do -> create new file (.txt) then rename it (teleport.gm) u can remove the txt and make a new extension bye checking out tools menu ... folder options ... then untick (hide extensions for know file types) ...

ok next part now ur in the teleport.gm file .... then declare the function ... like this ...

Code:
global tele_sc = function(plr)
{

};

ok now this on its own does nothing its just a function ... tele_sc is the new functions name ... now we'l add a tele point ...

Code:
global tele_sc = function(plr)
{
plr.Teleport(530, -2345.25, 3234.94, 2.98399);
};

That makes that function teleport the player :D ... now u can also make it add text or something like this ... BUT !!! this is still not gonna do anything:P ...

Code:
global tele_sc = function(plr)
 {
 plr.Teleport(530, -2345.25, 3234.94, 2.98399);
 plr.SendSystemMessage("Welcome To The Mall!");
 };


Now as u can see this script is going to port the player to those cords (replace those coords with ur own ...)

Now for the item to teleport we have to link this script to a GameObject ... now after this whole thing just add this ...

Code:
.RegisterGameObjectEvent([COLOR=Red]8000000[/COLOR], 2, [COLOR=Magenta]tele_sc[/COLOR]);


This is the function we daclared just a while back
This is the game object ID ...

Now here is how ur final product should look :D

Code:
global tele_sc = function(plr)
  {
  plr.Teleport(530, -2345.25, 3234.94, 2.98399);
plr.SendSystemMessage("Welcome To The Mall!");
  };

.RegisterGameObjectEvent(8000000, 2, tele_sc);

save it and close ... now here is the sql gameobject import that its been linked to ;D

Code:
insert into `gameobject_names` (`entry`, `Type`, `DisplayID`, `Name`, `spellfocus`, `sound1`, `sound2`, `sound3`, `sound4`, `sound5`, `sound6`, `sound7`, `sound8`, `sound9`, `unknown1`, `unknown2`, `unknown3`, `unknown4`, `unknown5`, `unknown6`, `unknown7`, `unknown8`, `unknown9`, `unknown10`, `unknown11`, `unknown12`, `unknown13`, `unknown14`) values('8000000','4','7213','Shoping Centre','0','0','1','0','0','0','0','0','0','0','0' ,'0','0','0','0','0','0','0','0','0','0','0','0',' 0');

<--- Just import this restart ur server, spawn the gameobject and VOILA! U should be able to make ur own portal now using this ...Its fairly easy :D ...

Hope this helps some ppl :D


~MIZUKI~

P.S. ---> I'l be bringing out a guide soon on how to make a warper npc :D (bit more complicated as u have to compile it with ascent xD)
 
<--- Just tested on the newest rev there and in the newest stable ... Still works ... But they will be removing it some or other time ... whether its sooner or later I dont know :P
 
the .gm thingy goes o\into c:/*server path*/scripts/teleport.gm ... and u just import the mysql :D ... Grr ... im MAD!!!! Its 4 am and my damn dog just woke me coz she's desperet for attention !!! I have problems sleeping !! AND JUST FELL ASLEEP!!!
 
OK guys it is removed from ascent ... I was @ latest stable which still includes scripts :( ... but its gone theyr going to replace it with LUA scripts and il make a guide when that comes out :D
 
Back