[Guide] LUA Portals menu

User Tag List

Page 1 of 6 12345 ... LastLast
Results 1 to 15 of 84
  1. #1
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] LUA Portals

    Creating a Portal using LUA
    By Gastricpenguin

    Since we know making portals straight from the DB is only so limited, we can begin to take an easier approach and use LUA to make portals instead of wasting spells.

    Step 1, Getting the coordinates
    Very simple, go ingame and find the place you want the portal to lead to. Once there use the .gps command, and copy down: The map #, X, Y, and Z coordinates.

    Step 2, Creating the LUA script
    Open up any text editor (like notepad), then copy and paste the following code:
    Code:
    function Teleporting_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (MAPID, X, Y, Z)
    end
    RegisterGameObjectEvent (ENTRY, 2, "Teleporting_onUse")
    NOTE: Anything highlighted in green, such as Teleporting_onUse MUST be different for every portal!

    You can change "Teleporting_onUse" on the top line to anything you want, but make sure it says the same thing in the bottom line. Entering the coordinates into the script should be self explanitory. Just note that "ENTRY" must be the same value as the ENTRY in your gameobject. Save this as a .lua and put it in your scripts folder

    Step 3, Creating the Gameobject
    Here is a simple template to create your gameobject:
    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, 4, 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);
    Just change ENTRY to the number you used to fill in for ENTRY in the Lua script. You can rename the portal to anything you want to aswell.

    If you have any errors or problems, show me your script and Gameobject and i will fix them
    Last edited by Gastricpenguin; 04-07-2008 at 03:35 PM.
    Life Puzzler WoW - Website | Forums

    [Guide] LUA Portals
  2. #2
    Hellgawd's Avatar Account not activated by Email
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GASTRIC, I LOVE YOU! <3 +Rep
    Edit: I gotta spread it around. =[

  3. #3
    Chargar's Avatar Member
    Reputation
    10
    Join Date
    Nov 2007
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is very simple lol. Thanks for posting it
    +Rep!

  4. #4
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im becoming a LUA major :P
    There is no end to my reign of awesome
    Life Puzzler WoW - Website | Forums

  5. #5
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL gastric you are one of the dew people here that i admire continue with all your hard working

  6. #6
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have only a question in type it is not 22 or 27 or something like that?

  7. #7
    Hellgawd's Avatar Account not activated by Email
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Gastric, you will be legendary soon enough.

  8. #8
    Rouslan's Avatar Active Member
    Reputation
    30
    Join Date
    Nov 2007
    Posts
    164
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hi

    Yes i agree with others you are a great help and wihtout your posts i dont know what i would do.

    I have one favour to ask,

    Can you please make 2 portals for me that lead to gurubashi and nagrand arenas?> iam hosting my owns erver but thats the only think i am having problems with,, is anyway you can premake this for me so i can jsut Querriie.. if you can i would love you and worship you!

    +4 rep

    thank you

  9. #9
    The Kingofbeast's Avatar Active Member
    Reputation
    38
    Join Date
    Oct 2007
    Posts
    306
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For the guy above, how can you +4 rep if you only have 1 rep power?

    XD, nice Gastric, +Rep

    EDIT: Must spread the rep first >.>
    Got a question about your server? Message me!

    Don't forget +Rep when someone helps you

  10. #10
    secretdragon008's Avatar Member
    Reputation
    43
    Join Date
    Sep 2007
    Posts
    217
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awsome,ty for saving my spells gastric.
    i want to rep you,but i need to spread some around first.

    to spartansp,yes i think its 22.it was that before on the teleport spells.
    But i dont know if it has changed.

  11. #11
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also i dont know i have done everything i needed now where fo i put the .lua things just in my \ascent\trunk\src\scripts folder o where i have to put that???

  12. #12
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, Lua scripts go in the scripts folder, but your core needs to have LUA enabled (All of my compiles do)
    Life Puzzler WoW - Website | Forums

  13. #13
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how can i enable lua i use a guide http://www.mmowned.com/forums/ascent...lf-photos.html to compile ascent but how do i enable lua scripts..??

  14. #14
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could just download my newest core :d
    but if you insist, you need to go in "AscentConfig.h" and remove the "//" in front of: #define ENABLE_LUA_SCRIPTING 1
    Life Puzzler WoW - Website | Forums

  15. #15
    Spartansp's Avatar Account not activated by Email
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok ill try thanks for your help

Page 1 of 6 12345 ... LastLast

Similar Threads

  1. [Guide] How to create Lua Portals [3.3.3a]
    By bulletzaredeadly in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 04-14-2010, 01:11 AM
  2. [GUIDE] LUA Portals Updated for 3.0.3
    By bulletzaredeadly in forum WoW EMU Guides & Tutorials
    Replies: 11
    Last Post: 04-06-2009, 05:35 PM
  3. [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
  4. [Guide] Making portals that stay forever using LUA.
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 06-21-2008, 07:42 AM
  5. [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 02:00 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search