Ascent Portal Tutorial menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Synthio's Avatar Member
    Reputation
    10
    Join Date
    May 2008
    Posts
    81
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ascent Portal Tutorial

    Basics of what you need
    1. A Custom Portal Added to the DB, with a Unique entry.
    2. Basic knowledge of how to use the LUA script and how to add them to your server.

    Lets Get Started
    We're going to make a portal to the STV arena as the example.

    Anytime you see a + in the code boxes, that mean that that line was added on that step. It won't be in your actual script, it's just there to help you keep track.

    First off, open up a Blank Document ( I recommend notepad, as it doesn't add any custom headers or other junk to the file ).
    Lets Create a Function we can use to make the Portal.
    CODE


    Code:
    function STV_Arena(pGameObject, event, pMisc)

    What we are doing here is creating a basic function. This won't do anything until we add more stuff to it, so moving on...
    We need to add the script to move the player to the location, this is done by the pMisc:Teleport command.
    CODE


    Code:
    function STV_Arena(pGameObject, event, pMisc)
    +      pMisc:Teleport(0, -13232.7, 219.565, 31.9761)
    +end
    A breakdown of the pMisc:Teleport() command
    pMisc:Teleport(mapid, x co-ord, y co-ord, z co-ord)

    For the Gurubashi arena, the co-ords are as follows:
    MapID: 0
    X: -13232.7
    Y:219.565
    Z: 31.9761

    This script still will not work, as we've not yet defined the GameObject Event to run the function, we'll do that now.
    CODE


    Code:
    function STV_Arena(pGameObject, event, pMisc)
          pMisc:Teleport(0, -13232.7, 219.565, 31.9761)
    end
    +RegisterGameObjectEvent(GO_ID, 2, "STV_Arena")


    You must replace GO_ID with the portal ID in your DB ( SQL is at the bottom ).
    What this does, is when the portal is clicked, tells the server to run the TELE_GURUBASHI function, or the teleport player function.

    This script is now operational. Now save it as .LUA, such as ArenaTele.LUA and add it to the "scripts" folder on your server. If there is not a scripts folder, create one. Then add the GO to the game, and click on it!


    Me, and my friend made this post.
    Owner/Developer of WoW Rising

    Ascent Portal Tutorial

Similar Threads

  1. How To Make A Custom Portal easy Newb Friendy Tutorial pWd By Winckler
    By winckler in forum WoW EMU Guides & Tutorials
    Replies: 34
    Last Post: 10-05-2008, 10:50 PM
  2. [Tutorial] How to compile Ascent with VS 2005
    By Promthian in forum Programming
    Replies: 0
    Last Post: 08-31-2008, 12:46 PM
  3. [ASCENT] Attunement on portal
    By lwellewn in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 06-05-2008, 12:54 PM
  4. Spartansp Repack V4 ascent 3940 (Mall Portal Fixes)
    By Laveciar in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 04-23-2008, 10:02 PM
  5. [GUIDE]The Ultiamte Ascent Tutorial
    By evilchickenkiller555 in forum WoW EMU Guides & Tutorials
    Replies: 5
    Last Post: 03-01-2008, 12:57 PM
All times are GMT -5. The time now is 03:51 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