LUA Teleporter Help menu

User Tag List

Results 1 to 9 of 9
  1. #1
    brayden's Avatar Member
    Reputation
    11
    Join Date
    Apr 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Teleporter Help

    -- Variables

    local NPC_ID = 23375


    -- On Triggers

    function exampleGossipOnTalk(Unit, Event, player)
    Unit:GossipCreateMenu(100, player, 0)
    Unit:GossipMenuAddItem(0, "Teleport me to the mall!", 1, 0)
    Unit:GossipMenuAddItem(0, "Teleport me to the Arena!", 2, 0)
    Unit:GossipMenuAddItem(0, "Teleport me to a custom boss!", 3, 0)
    Unit:GossipMenuAddItem(0, "Can you make me level 80?", 8, 0)
    Unit:GossipMenuAddItem(0, "Can you give me the starter book?", 9, 0)
    Unit:GossipMenuAddItem(0, "Nevermind". 4, 0)
    Unit:GossipSendMenu(Player)
    end

    function exampleGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
    if (intid = 1) then
    Unit:GossipCreateMenu(100, player, 0)
    Unit:GossipMenuAddItem(0, "Horde", 5, 0)
    Unit:GossipMenuAddItem(0, "Alliance", 6, 0)
    Unit:GossipSendMenu(Player)
    end
    if (intid = 2) then
    player:Teleport(0, -13253.832031, 181.906693, 32.238724)
    player:GossipComplete
    end
    if (intid = 3) then
    Uniit:GossipCreateMenu(100, player, 0)
    Unit:GossipMenuAddItem(0, "Melcoal", 7, 0)
    Unit:GossipSendMenu(Player)
    end
    if (intid = 4) then
    player:GossipComplete
    end
    if (intid = 5) then
    player:Teleport(1, -11887, -4668.984375, 7.273964)
    player:GossipComplete
    end
    if (intid = 6) then
    player:Teleport(1, -11833.375977, -4790.217285, 6.032765)
    player:GossipComplete
    end
    if (intid = 7) then
    player:Teleport(1, -11543.254883, -4649.109863, 0.530466)
    player:GossipComplete
    end
    if (intid = then
    player:SetPlayerLevel(80)
    player:GossipComplete
    end
    if (intid = 9) then
    player:AddItem(99999, 1)
    player:GossipComplete
    end
    end


    -- RegisterUnitEvents
    RegisterUnitGossipEvent(NPC_ID, 1, "exampleGossipOnTalk")
    RegisterUnitGossipEvent(NPC_ID, 2, "exampleGossipOnSelect")

    _________________________________________________________________

    Yet when I click on the npc in-game all he says is Hi, how are you.

    Please help.

    LUA Teleporter Help
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    See NPC_ID at the bottom? Change that to 23375 and it should work.

  3. #3
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    NPC_ID is already defined at the top.

    Thats the use of having it like that, to allow you to change only one part for it to apply.

    Make sure there is no errors in the console when you launch, if so, show the error here, and make sure that lua is enabled..(By default i think)

  4. #4
    brayden's Avatar Member
    Reputation
    11
    Join Date
    Apr 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    failed. <could not load>
    /scripts.Teleporters.lua:29: fuction arguments expected near 'end'
    Last edited by brayden; 12-20-2009 at 12:04 PM.

  5. #5
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try adding or taking away a end, keep doing this till you get the error fixed.

  6. #6
    brayden's Avatar Member
    Reputation
    11
    Join Date
    Apr 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when i take it away it says it needs 1 and when i add one it says\

    failed. <could not load>
    /scripts.Teleporters.lua:29: fuction arguments expected near 'end'

  7. #7
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you take one away, what error does it give?

  8. #8
    Dynashock's Avatar Contributor

    Reputation
    176
    Join Date
    Nov 2007
    Posts
    203
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use player:GossipComplete() instead of player:GossipComplete.

  9. #9
    brayden's Avatar Member
    Reputation
    11
    Join Date
    Apr 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Dynashock View Post
    Use player:GossipComplete() instead of player:GossipComplete.
    Thanks man +rep

Similar Threads

  1. [Help] Error in LUA teleport file
    By Mildan in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 04-05-2009, 10:10 AM
  2. Need lua teleport help
    By Summer in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-26-2008, 06:16 AM
  3. [help] Lua Teleporter Error!!
    By Hyldran0 in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 12-16-2008, 01:06 PM
  4. +Rep for Help with Universal Lua Teleporter
    By Lytle69 in forum WoW EMU Questions & Requests
    Replies: 16
    Last Post: 12-12-2008, 07:30 AM
  5. Help with lua teleporter
    By Arugos in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 09-17-2008, 09:09 AM
All times are GMT -5. The time now is 06: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