[LUA] Portal Creation menu

User Tag List

Results 1 to 7 of 7
  1. #1
    brue's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [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.7 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:
    [YT]<object width="445" height="364"><param name="movie" value="http://www.youtube.com/v/FrWOf_8bRtw&hl=nl&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/FrWOf_8bRtw&hl=nl&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="445" height="364"></embed></object>[/YT]

    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 06:11 PM.

    [LUA] Portal Creation
  2. #2
    brue's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First post registered

  3. #3
    ttitty77's Avatar Member
    Reputation
    1
    Join Date
    Sep 2007
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    not bad thanks man

  4. #4
    colincancer's Avatar Active Member
    Reputation
    63
    Join Date
    Dec 2007
    Posts
    509
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very nice guide! It's been a while, this was a well needed refresher
    #JODYS'WATCHiN

  5. #5
    brue's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm happy you like it :P

  6. #6
    Lews's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 08:14 PM.

  7. #7
    brue's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

Similar Threads

  1. [Guide] LUA Portals
    By Gastricpenguin in forum WoW EMU Guides & Tutorials
    Replies: 83
    Last Post: 08-27-2008, 11:17 PM
  2. [Help] One stop shop, Lua portal shop :)
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 13
    Last Post: 02-06-2008, 03:49 PM
  3. help .lua portal
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 01-26-2008, 11:14 AM
  4. help .lua portal help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 01-24-2008, 03:21 PM
  5. .Lua portal problem
    By Kiev in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-12-2008, 10:49 AM
All times are GMT -5. The time now is 04:09 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search