[GUIDE] LUA Portals Updated for 3.0.3 menu

User Tag List

Results 1 to 12 of 12
  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] LUA Portals Updated for 3.0.3

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

    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.)

    MapID: get this by doing .gps where you want your portal to take people to.

    X/Y/Z: get these by doing .gps where you want your portal to take people to.

    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, 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
    (ENTRY, 22, DISPLAYID, "NAME", 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.

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

    "NAME": Name your gameobject eg. "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 or what ever program you use, and execute the sql file you just made and saved.

    11) Go on your server, spawn your gameobject by typing .go spawn ##### (your GameObjectID) and putting a 1 after it. [.go spawn ##### 1]

    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.

    [GUIDE] LUA Portals Updated for 3.0.3
  2. #2
    mihai007's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have a question the number 4 from registers are the game object event no? ... you have any list with game object events?

  3. #3
    Djfrederick's Avatar Banned
    Reputation
    127
    Join Date
    Sep 2008
    Posts
    380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good guide mate.

    I can see you toke your time to make the guide. +rep

    EDIT: Argh.. I am at my max right now. If i forget to give you +rep later today, PM me

  4. #4
    NitroMan's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    61
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice guide thankz ... +rep

  5. #5
    Chorn2011's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good and easy

  6. #6
    svedin's Avatar Contributor
    Reputation
    124
    Join Date
    Jun 2008
    Posts
    557
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice guide it works ^^ i have test all the other things and they fail!

    +Rep to you for a good Guide

  7. #7
    NocaCow's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My portal just says "Word of Recall - OLD" when I use it, what did I do wrong? I'm using 3.0.9, could that be it?

  8. #8
    NocaCow's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's my script:

    Code:
    function PortaltoFarm_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (1, -1428.970581, 459.262512, 142.353836)
    end
    
    RegisterGameObjectEvent (50000 ,4, "PortaltoFarm_onUse")

  9. #9
    NWeaver's Avatar Member
    Reputation
    4
    Join Date
    Nov 2007
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NocaCow View Post
    My portal just says "Word of Recall - OLD" when I use it, what did I do wrong? I'm using 3.0.9, could that be it?
    Same is happening here, going to maybe see whats going on wrong here, maybe restart the server, im jsut about to try that, if i find a fix ill edit this with it.

  10. #10
    kingofrock's Avatar Member
    Reputation
    21
    Join Date
    Dec 2007
    Posts
    333
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NocaCow View Post
    Here's my script:

    Code:
    function PortaltoFarm_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (1, -1428.970581, 459.262512, 142.353836)
    end
    
    RegisterGameObjectEvent (50000 ,4, "PortaltoFarm_onUse")
    Post your SQL, I am using 3.0.9 and I have it working just fine.

  11. #11
    NocaCow's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm assuming you mean the gameobject.

    Here is it: (From Gameobject_Names)

    Entry: 50000
    Type: 22
    Displayid: 7146
    Name: Portal to the Farm

    Everything else at 0.

  12. #12
    NocaCow's Avatar Member
    Reputation
    1
    Join Date
    Jan 2008
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, got it working, just needed to change the name to whatever was in the script. It teleported me, but I still had that Word of Recall - OLD cast bar. Oh well.

Similar Threads

  1. [Guide] Create portals - Updated guide
    By Dythzer in forum WoW EMU Guides & Tutorials
    Replies: 70
    Last Post: 08-02-2009, 09:38 PM
  2. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  3. [Guide] LUA Portals
    By Gastricpenguin in forum WoW EMU Guides & Tutorials
    Replies: 83
    Last Post: 08-27-2008, 11:17 PM
  4. [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
All times are GMT -5. The time now is 03:47 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