Hello Guys and Welcome to my Guide on how to make custom portals without replacing spells!
If This is a Repost then Comment and place the link in it. I will remove the threath if so.
UPDATE: PICTURES!
I will show u step by step. Ok Let's Start!
Step 1:
Go into your Database with HeidiSQL, Navicat or any program u use.
Step 2:
Go to the table named: Gameobject_names.
Step 3:
Make a new row by clicking on the "+" sign and start filling out:
Code:Entry - EntryID of the Gameobject/ Spawn ID Type - This will be the Type of the Object. Since it's gonna be a portal use value "22" Displayid - This will be the display of the Portal. A list of Displayids of portals will be added underneath. Name - This is the name of your portal. Use whatever u want. example: Portal to Shopping Mall spellfocus - leave at 0 Sound1 to Sound9 - Leave at 0 Unknown1 to Unknown14 - Leave at 0.
Click on the little Check mark to save the new object.
Now for the Displayid List of portal displays:
Code:~~~~~Neutral + Special~~~~~ Shattrath - 7146 Inner Maurdon - 5231 Karazhan - 6831 Exodar - 6955 Dalaran - 8111 Sholazar Basin - 5231 Archeus/Death Knight - 8046 Lake Wintergrasp - 8506 Upper Naxxanar - 1327 Temple City - 1327 The Purple Parlor - 8111 The Violet Citadel - 8111 ~~~~~Horde Cities~~~~~ Silvermoon - 6956 Undercity - 4398 Thunder Bluff - 4397 Orgrimmar - 4395 ~~~~~Alliance Cities~~~~~ Darnassus - 4393 Ironforge - 4394 Stormwind - 4396
Ok That was the First Part of the Guide.
Now For the LUA.
[SIZE="3"]Step 1:
Open Up Notepad.
Then Write in this little Code.
Step 2:Code:function TELEPORTNAME_onUse (pUnit, Event, pMisc) pMisc:Teleport (MAPID, X, Y, Z) end RegisterGameObjectEvent (EntryID ,4, "TELEPORTNAME_onUse")
Replace the Highlited Text with your info!
To get MapID, X, Y, Z go into ur server and use ,gps where u want the portal to go.
First Replace MapID, X, Y and Z with cordinates from in-game.
Then Change all the TELEPORTNAME with the name of the Teleport like TeleportOrg. You can have whatever u want
Change entryid to the entryid of the Portal. This will mean the spawn ID.
Start up by opening the server, go to the place u want the portal to teleport to. Use the GM command: .gps
Now alot of numbers will pop up. Write them into the LUA and replace the MapID, X-Cordinate, Y-Cordinate and Z-Cordinate with theese numbers.
Then Replace the "EntryID" with ur Object's Spawn/EntryID.
Step 3:
Now your gonna save the file. Follow this step and take a close look!
First save-as.
Then find your destination. DONT CLICK SAVE YET!
First do like i do in the picture: Change the TXT thing on the bottom to "All Files"
Step 4:
DONT CLICK SAVE YET!
First write in more behind the name of the file. Example:
portal.lua
REMEMBER THE .lua
Do it like on the pic.
Step 5:
Save the file.
Now open up ur server folder.
Then find the folder names "scripts"
If u dont have one, then make one.
Now place the LUA file inside the "scripts" folder.
Your Almost Done!
Step 6:
Open Up your world.conf file in Notepad.
Click the Key Combo: CTRL + F
Search for <ScriptBackends LUA=
Now if it looks like this:
<ScriptBackends LUA="0"
Then its wrong.
If its like this:
<ScriptBackends LUA="1"
Then its ok and u dont have to change it.
If u got it with "0" then change 0 to 1.
Like in this pic from my config i have changed to 1.
NOW YOUR ALL DONE!
I hope this works for you and if you need help Comment and i will answer as fast as i can
CYA!
Hope this helped.
Credits:
Snagit - For screenshots
ArcEmu/ascent - For Emulator
HeidiSQL/Navicat/SQLyog/whatever - For Database Editing
Microsoft - For PC and Notepad.
MMowned - FOR AWESOMME FORUM!!!