[Guide] How to create Lua Portals [3.3.3a] menu

User Tag List

Results 1 to 5 of 5
  1. #1
    bulletzaredeadly's Avatar Active Member
    Reputation
    24
    Join Date
    Nov 2007
    Posts
    132
    Thanks G/R
    0/1
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] How to create Lua Portals [3.3.3a]

    Hey everyone, I made a guide a while back for the same thing but for 3.0.3, so I figured I would update it for 3.3.3a.

    This guide will tell you how to make LUA scripted portals.
    This is updated for 3.3.3a.

    1) Open Notepad or Notepad++

    2) Copy this LUA code into Notepad

    Code:
    function TELENAME_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (MapID, X,  Y, Z)
    end
    
    RegisterGameObjectEvent (GameObjectID ,4, "TELENAME_onUse")
    3) The parts highlighted in red, are the parts you change.

    TELENAME: name your portal, no spaces, underscores are allowed. (Note: Everywhere where it says TELENAME, must be exactly the same for this to work.) ie. Portal_Dalaran

    MapID: go in-game and go to where you want the portal to go. Type .gps and this will show.

    X/Y/Z: go in-game and go to where you want the portal to go. Type .gps and this will show.


    GameObjectID: This is the ID of the gameobject for your portal

    4) Save the file as: "yourportalname.lua" [make sure it's .lua]

    5) Put the LUA file in the "scripts" folder in your server's core

    6) Open a new Notepad document.

    7) Paste this code into it
    Code:
    INSERT INTO gameobject_names
    (entry, Type, DisplayID, Name, Category, CastBarText, Unkstr, 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
    (900000, 22, 7849, "Mall Portal", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
    The parts in red are the parts you change.

    ENTRY: this is your GameObjectID (Note: This must be the same as the ID you put in your LUA file. ie. 99990 etc..

    DISPLAYID: this is the display ID of your portal. [This can be any gameobject's displayId]

    "NAME": Name your gameobject. ie. "Portal to Mall" (Note: Make sure you leave the "Quotation" marks around the name)

    9) Save the file as "yourportalnameGO.sql" [Make sure it is .sql]

    10) Open your database in Navicat, SQLYog, etc. Double click your connection to open it, then double click world to open the database. Right click world and click execute sql file, then point to the directory of yourportalnameGO.sql.

    11) Go on your server, spawn your gameobject by typing .go spawn ##### (your GameObjectID) and putting a 1 after it. [.go spawn ##### 1] you must put the 1 after or it will not stay after a restart.

    12) Restart your server

    13) Congratulations you have made a new LUA portal!



    If you find anything wrong with this guide or need any help feel free to reply to this or send me a PM. I will not help on MSN.
    Last edited by bulletzaredeadly; 04-01-2010 at 05:21 PM. Reason: Fixed SQL file.

    [Guide] How to create Lua Portals [3.3.3a]
  2. #2
    jlidden's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hey thanks for the Guide. um i have one problem tho... ive made it on my 3.3.2 server.. it works and all but i cannot enter through the Portal any Suggestions if so i will +rep

  3. #3
    Ascelyn's Avatar Member
    Reputation
    22
    Join Date
    Jul 2009
    Posts
    129
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jlidden View Post
    it works and all but i cannot enter through the Portal any Suggestions if so i will +rep
    Then it doesnt work? And what doesnt it do/does it do?


  4. #4
    bulletzaredeadly's Avatar Active Member
    Reputation
    24
    Join Date
    Nov 2007
    Posts
    132
    Thanks G/R
    0/1
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It sounds to me like you have the 2 gameobject ID's wrong (they dont match), or your coordinates are linked to a non existant place.

    Have you tried restarting your server?

  5. #5
    cudavilan's Avatar Member
    Reputation
    1
    Join Date
    Mar 2007
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works great! +rep

Similar Threads

  1. [Guide] How to create a monster, + Lua guide
    By Meiya Stormsinger in forum WoW EMU Guides & Tutorials
    Replies: 11
    Last Post: 08-12-2009, 08:02 AM
  2. [GUIDE][NOOB-FRIENDLY]No Spell Replace: How to Make LUA Portals!
    By sasoritail in forum WoW EMU Guides & Tutorials
    Replies: 19
    Last Post: 03-15-2009, 09:31 AM
  3. [Guide] How to make LUA portals easy and noobie too!
    By Ellenor in forum WoW EMU Guides & Tutorials
    Replies: 15
    Last Post: 03-05-2008, 09:10 PM
  4. Replies: 6
    Last Post: 12-22-2007, 07:59 PM
  5. [Guide] How to create a weapon/item. Easy. PICS INSIDE, +2 other quick guides.
    By Wheeze201 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 12-15-2007, 05:03 PM
All times are GMT -5. The time now is 01:32 AM. 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