Portal.lua Script menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Greeko's Avatar Banned
    Reputation
    47
    Join Date
    Feb 2008
    Posts
    366
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Portal.lua Script

    Lets start with the question: Does it work to have 2 portals scripts in one .lua file? Like this:
    Code:
    function Teleporting_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (1, 4615.02, -3858.68, 944.155)
    end
    RegisterGameObjectEvent (2000000, 2, "Teleporting_onUse")
    
    function Teleporting_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (1, 3629.01, -2148.68, 199.178)
    end
    RegisterGameObjectEvent (2000001, 2, "Teleporting_onUse")

    Portal.lua Script
  2. #2
    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 and No
    Yes they can be in one file, but change the function name of the second one.
    Last edited by Gastricpenguin; 04-07-2008 at 03:40 PM.
    Life Puzzler WoW - Website | Forums

  3. #3
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gastricpenguin View Post
    Yes and No
    Yes they can be in one files, but change the function name of the second one.
    that is your answer...

Similar Threads

  1. [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
  2. Writing an LUA script for portals
    By ledz14 in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 08-10-2008, 12:05 PM
  3. How to make lua scripted portals
    By *Alexz* in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 02-18-2008, 06:05 PM
  4. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  5. [Release] Complete Azeroth Portals (gm scripts)
    By knaur in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 11-22-2007, 08:10 AM
All times are GMT -5. The time now is 09:19 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