Making portals in LUA menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Skatee's Avatar Member
    Reputation
    12
    Join Date
    May 2009
    Posts
    40
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Making portals in LUA

    There is several ways to make portals. They are mostly all about editing an old Teleport to your gameobject. Then, when you press it, you get teleported. The only problem about that is, that since you editted an old spell, that name comes up while teleporting IE: Goldshire:
    Another problem is, that you can run out of old teleports.

    You can fix that !
    All you gotta do, is to script your gameobjects, and it ain't really hard:

    1. Open up your database(HeidiSQL, Navicat ect.)

    2. Go to the Gameobject_Names and create an gameobject
    EntryID: Any high number
    Type: 22
    DisplayID: 1327 is Summoning Portal, but you can use like everything else. It could be a skull, a tree or whatever you wish
    Spell Focus: 0

    O.k.
    Now you got the gameobject fixed.

    3. Log into your private server, with a GM account
    4. Write GPS. That information will be needed in the script.
    You will need MapID, X-Coord, Y-Coord, Z-Coord.
    (Xcoordinate is North[+] and South[-] -
    Ycoordinate is East[>] and West[<] -
    Z is Height)

    Now The Scripting Part

    5. Open up an empty Notepad.
    6. Write this in:
    function ScriptName(pUnit, Event, pMisc)
    pMisc:Teleport(MapID, X-Coord, Y-Coord, Z-Coord)
    end
    RegisterGameobjectEvent(GameObjectsENTRYID, 2, "ScriptName")
    Breaken Into Parts:
    function ScriptName(pUnit, Event, pMisc)
    That is the name of the function. Ascent Console will identify this, and match it with an "Register". Make sure this Name is U-N-I-Q-U-E

    pMisc:Teleport(MapID, X-Coord, Y-Coord, Z-Coord)
    After your script has been recognized, This tells it what to do. In this case it tells to Teleport("pMisc:Teleport")
    After that it needs to know where to teleport to, and that is the coordinates
    end
    Tells the script to end here(IE. no more commands. You could also make it cast a spell, but the end tells it not to do anything else )

    RegisterGameObjectEvent(GameObjectsEntryID, 2, "ScriptName"(
    Tells it to Register the script. In this case as a GameObject.
    RegisterGameobjectEvent(GameObjectsEntryID, 2, "ScriptName")
    GameObjectsEntryID is the EntryID you created the Gameobject with. This tells the script what GameObject should teleport u.

    2. Means that it is on use(IE: Click)
    It could also be 1, which means on spawn

    ScriptName is the script name(That you wrote at start)


    What the script could look like:
    function CustomMallPortal(pUnit, Event, pMisc)
    pMisc:Teleport(530, 1000, 100, 200)
    end
    RegisterGameobjectEvent(881222, 2, "CustomMallPortal")
    7. Reload Server(Ascent.exe or Ascent-World.exe)
    8.Go into game and spawn your gameobject
    9. Right click it. IF it ports you to your location, You're completed. Congratulations.

    Making portals in LUA
  2. #2
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Either you use this, or you use a portal generator.

  3. #3
    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)
    or you just follow my guide wich i posted 2 weeks ago wich is auctually exaclty the same

    ow btw: LINK TO MY GUIDE

  4. #4
    Skatee's Avatar Member
    Reputation
    12
    Join Date
    May 2009
    Posts
    40
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what the hell? Its not the exact same, We both use LUA, But we both have our own guides on it.

Similar Threads

  1. [Guide] Making Portals to anywhere and spawn them! easy for beginners!
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 17
    Last Post: 07-12-2008, 10:11 AM
  2. [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
  3. Making portal in Lua
    By sk8 punk 2.5 in forum WoW EMU Guides & Tutorials
    Replies: 7
    Last Post: 06-13-2008, 01:31 AM
  4. Quick question on how to make portals.
    By asskandi in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-26-2008, 10:53 AM
  5. How to make portals require an item! (C++)
    By sassafrass686 in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 01-01-2008, 04:54 AM
All times are GMT -5. The time now is 04:16 PM. 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