[Help] Portal problem menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Portal problem

    The problem is, that when I create multiple portals, all of the portals start porting me to the same place, is there anything wrong with my lua or is it my DB? The lua is:
    Code:
    function Teleporting_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (1,-3761.115479,1154.359741,127.435379)
    end
    
    RegisterGameObjectEvent (8000000, 2, "Teleporting_onUse")
    
    function Teleporting_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (169,-1704.764160,1058.401001,92.007797)
    end
    
    RegisterGameObjectEvent (9000000, 2, "Teleporting_onUse")
    Anyone know what I should do?
    Last edited by Lich King; 03-14-2008 at 09:46 PM.

    [Help] Portal problem
  2. #2
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No responses?

  3. #3
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone know what I should do?

  4. #4
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, no one knows what I can do?

  5. #5
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I answered you before the wipe :P

    It's caused since both functions share the same name. Change one of them to Teleport1_onUse or something else

  6. #6
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, ok ty +Rep for you after 24 hours

  7. #7
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ultra Spidey, what should I have the spell focus be in the DB? Because I changed the name, and now it just makes a skill learning glow appear

  8. #8
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I changed it to
    Code:
    function teleporting_onUse1 (pUnit, Event, pMisc)
    pMisc:Teleport (1,-3761.115479,1154.359741,127.435379)
    end
    
    RegisterGameObjectEvent (8000000, 2, "Teleporting_onUse1")
    
    function teleporting_onUse2 (pUnit, Event, pMisc)
    pMisc:Teleport (169,-1704.764160,1058.401001,92.007797)
    end
    
    RegisterGameObjectEvent (9000000, 2, "Teleporting_onUse2")

  9. #9
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Should be 0 if I remember correctly
    Make sure it loads the LUA without errors - check the console.

  10. #10
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Ultra Spidey View Post
    Should be 0 if I remember correctly
    Make sure it loads the LUA without errors - check the console.
    Ok, I'll try it

  11. #11
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried it, it didn't work.. I set the spell focus to 0, but it still does the same things. After editing my lua, its this now:
    Code:
    function teleporting_onUse1 (pUnit, Event, pMisc)
    pMisc:Teleport (1,-3761.115479,1154.359741,127.435379)
    end
    
    RegisterGameObjectEvent (6000000, 2, "Teleporting_onUse1")
    
    function teleporting_onUse2 (pUnit, Event, pMisc)
    pMisc:Teleport (169,-1704.764160,1058.401001,92.007797)
    end
    
    RegisterGameObjectEvent (6000001, 2, "Teleporting_onUse2")
    There was no error loading the luas, but both of the ports keep porting me to the same place

  12. #12
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function teleporting_onUse2 (pUnit, Event, pMisc)

    RegisterGameObjectEvent (6000001, 2, "Teleporting_onUse2")

  13. #13
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Huh? What do you mean by that? That's what I already have

  14. #14
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function teleporting_onUse2 (pUnit, Event, pMisc)

    RegisterGameObjectEvent (6000001, 2, "Teleporting_onUse2")

    Decide which name you'll use and stick to it. Teleporting != teleporting

  15. #15
    Lich King's Avatar Contributor
    Reputation
    100
    Join Date
    May 2007
    Posts
    911
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So change
    function teleporting_onUse1 (pUnit, Event, pMisc)

    to

    function teleporting_onUse (pUnit, Event, pMisc)?

Page 1 of 2 12 LastLast

Similar Threads

  1. Need help! got problem with Ascent.exe will +rep :P
    By Anthraxx in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 01-26-2008, 10:12 AM
  2. .Lua portal problem
    By Kiev in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-12-2008, 10:49 AM
  3. [HELP] Interesting Problem.
    By Rhynix in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 01-06-2008, 03:06 AM
  4. [request] +rep for your help... Ascent problem
    By iccy in forum World of Warcraft Emulator Servers
    Replies: 50
    Last Post: 12-30-2007, 03:41 AM
  5. [HELP] Ascent problem - mount don't work
    By movious in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-17-2007, 05:55 AM
All times are GMT -5. The time now is 04:20 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