| | Emulator Server Guides Guides for working with World of Warcraft Emulator servers. Learn how to create a WoW Server here.
[NO QUESTIONS HERE] |  | 
06-25-2009
| | New User | | | Join Date: Jul 2008
Posts: 32
Reputation: 1 Level up: 99%, 2 Points needed | | | [LUA] Portal Creation I hear a lot people asking what the command is to create a lua portal and how to create a custum portal, here is a guide:
1. The SQL. Code: INSERT INTO `gameobject_names` VALUES (ID1,22,Displayid,'Name1',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
ID1: The ID of your object, this means, what do you want if you type .go spawn [ID1]. In the guide I will use 123451. 22: Do not edit this! Or your portal will not work. Displayid: The look/display of the Object. Below a little list, I'll use 8196 Name1: The name of your portal, you will see this if you mouse over the portal. I'll use Mall
DisplayIDs: Code: 4393 = Darnassus
4396 = Stormwind
4394 = Ironforge
4398 = Undercity
4395 = Orgrimmar
4397 = Thunder Bluff
6956 = Silvermoon
6955 = Exodar
7146 = Shattrath
8111 = Dalaran
1327 = Summoning portal(summoning stone/ritual of summoning)
8196 = Outland portal
So now I have Code: INSERT INTO `gameobject_names` VALUES (123451,22,8196 ,'Mall',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
I think you should directly save this in the database or save it in notepad as .sql and export into database later.
Lua: Code: function TELENAME1_onUse (pUnit, Event, pMisc)
pMisc:Teleport (MAPID, X, Y, Z)
end
RegisterGameObjectEvent (ID1 , 4, "TELENAME1_onUse")
We start with this script above. TELENAME1: Nothing to explane just that, if you might create a 2nd one that you set the 1 to a 2 etc.
Now, go inside wow and typ .gps, something will pop insie your text log, like this: 
Now fill MAPID in with the Map: (in this case 0), Fill X in with the X: (in this case -639.66). The Y with Y: (in this case -4717.78) and Z with the info listed after the Z: (in this case 5.43) ID1: At this ID fill in the ID you chooce while creating the portal, the same ID You should paste here or you're portal will not work
For me the code will look like this: Code: function TELENAME1_onUse (pUnit, Event, pMisc)
pMisc:Teleport (0, -639.66, -4717.78, 5.43)
end
RegisterGameObjectEvent (12345, 4, "TELENAME1_onUse")
Copy the code to your notepad and save it as a .lua, and copy it to your scripts map
--------------------------------------------------------------------------
At the end I had 2 sort of scripts: Code: INSERT INTO `gameobject_names` VALUES (123451,22,8196 ,'Mall',0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
Code: function TELENAME1_onUse (pUnit, Event, pMisc)
pMisc:Teleport (0, -639.66, -4717.78, 5.43)
end
RegisterGameObjectEvent (12345, 4, "TELENAME1_onUse")
The first one(wich you saved as a .sql) you should open with heidi sql, navicat or any other database editing programme, The seccond you should add to your servers script folder. Restart your server so you're script will load and you can summon your portal, for me it looked like this:
Thanks for reading my guide, if you have any questions please post them below Thanks
Kind Regards(and have fun with the guide) Brue
Last edited by brue; 06-30-2009 at 08:11 PM.
| Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx. 
06-25-2009
| | New User | | | Join Date: Jul 2008
Posts: 32
Reputation: 1 Level up: 99%, 2 Points needed | | | | First post registered | 
06-26-2009
| | Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep) | | | Join Date: Sep 2007
Posts: 3
Reputation: 1 | | not bad thanks man | 
06-27-2009
|  | Knight-Captain | | | Join Date: Dec 2007
Posts: 406
Reputation: 55 Level up: 81%, 134 Points needed |    | | very nice guide! It's been a while, this was a well needed refresher
__________________ 
The Stool Is Impressed.... | 
06-30-2009
| | New User | | | Join Date: Jul 2008
Posts: 32
Reputation: 1 Level up: 99%, 2 Points needed | | | | I'm happy you like it :P | 
07-09-2009
| | New User | | | Join Date: Apr 2009
Posts: 2
Reputation: 1 Level up: 24%, 305 Points needed | | | Hmm this was weird, i did this, and when i tried to use the spawned portal, the caracter started to channel a spell for like 10sec, and when the spell was done, my rogue said "i have not enough mana". I'm using SQL server, and i need help  plz respond soon
(EDIT: When i use the portal, the cast bar that shows says: WORD OF RECALL (OLD) if that helps anything  )
Last edited by Lews; 07-09-2009 at 10:14 PM.
| 
07-13-2009
| | New User | | | Join Date: Jul 2008
Posts: 32
Reputation: 1 Level up: 99%, 2 Points needed | | | | Well it seems that it depends on the server/repack you are using, such as my repack at this moment(johved) it won't work but the official arcemu.org database it works so auctually i can't help you with that
also you maybe can fix this, but since I'm new to running a server etc. (since i only have been a Dev on some server never auctually had one myself) i won't know how to fix. Since it worked on my last server i was a dev on(when i made this guide)(server was a 3.0.9 arcemu.org erver) and now i created my own with johveds repack(also 3.0.9) and it doesnt work. |  |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -4. The time now is 09:51 AM. |