Creating own Portals

02/17/2006 09:50 seth0815#1
For people who want to have their own teleport-portals with custom locations:

How to make your own portal


to create your own portal is very easy just follow these steps:

1 decide where you want you're portal to take you

2 when you have decided this go to that place and type .where

3 write down all the information you get

4 make with notepad a new file called gameobjects_custom.scp (make sure you save it like this gameobjects_custom.scp by selecting save as, then save as type: all files) something like that. And place it in the SCRIPTS/EXTRA folder.

5 make with notepad a new file called portals.tcl (make sure you save it like this portals.tcl by selecting save as, then save as type: all files) something like that. And place it in the SCRIPTS/LX folder.

6 in the gameobjects.scp script add the line #include scripts/extra/gameobjects_custom.scp

OK EXAMPLE

i will make a portal that will lead me to Gurubashi Arena PVP Battle Ring

on Gurubashi Arena PVP Battle Ring type .where for the coordinates
i get these:

Quote:
map=0 zone=33 [33] location=2177
x,y,z,h= -13215.157227,275.559784,21.857084,5.944946

now in the gameobjects_custom.scp i will add these lines

Quote:
[gameobj 888025] <----- take a number thats available
flags=040
model=4396
name=Portal to Gurubashi Arena PVP <------ you can use everyname you want
sound1=75
sound2=1
type=2
questscript=GurubashiPVPdestination <----- you will need this in the next step

save the gameobjects_custom.scp

in the portals.tcl we will have to add the following

Quote:
namespace eval GurubashiPVPdestination {
proc QueryQuest { npc player questid } {
Teleport &#036;player map x y z#Gurubashi Arena PVP
}
}

to complete the teleport you need :
map
x
y
z
lets have a look at coordinates again

Quote:
map=0 zone=33 [33] location=2177
x,y,z,h= -13215.157227,275.559784,21.857084,5.944946

map=0
x=-13215.157227
y=275.559784
z=21.857084

i only use 6 digits from every x,y,z coordinate

x=-13215.1|57227 seventh digit its a 5 so the sixth will be 2 so x=-13215.2
y=275.559|784 seventh digit its a 7 so the sixth will be 0 and fifth a 6 so y=275.560
z=21.8570|84 seventh digit its a 8 so the sixth will be 1 so z=21.8571

so the portals.tcl should like this

Quote:
namespace eval GurubashiPVPdestination {
proc QueryQuest { npc player questid } {
Teleport &#036;player 0 -13215.2 275.560 21.8571#Gurubashi Arena PVP
}
}

save the file

ingame press .retcl and .rescp after its done reloading the scripts place the portal by .addgo 888025 and the portal is done thats it

************************************************** ***************************
Cheers seth
02/18/2006 21:54 Scholzebub#2
und auf deutsch xD
02/18/2006 22:40 gangsta#3
ctrl+C/ctrl+V?^^
02/18/2006 22:46 Strike-#4
Quote:
Originally posted by gangsta@Feb 18 2006, 22:40
ctrl+C/ctrl+V?^^
Das tut? Joa^^
02/18/2006 22:47 gangsta#5
löl naja war klar^^

/edit juhuu ich hab seien Quelle herausgefunden GENAU dieser Post is hier:
[Only registered and activated users can see links. Click Here To Register...]

jaja 0815 stimmt schon;)
02/19/2006 13:19 seth0815#6
Na wenn das nich die Errungenschafft deines Lebens ist....
Mir wirds zu blöd hier, werd mir mal ein anderes Forum zum helfen suchen.... *kopfschüttel*