LUA Tele NPC. menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    Ickybad's Avatar Contributor
    Reputation
    214
    Join Date
    Apr 2008
    Posts
    904
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Tele NPC.

    Yes i was making an LUA Tele NPC and i was wondering whats wrong with this:


    Code:
    unction warp_on_gossip_talk (unit, event, player)
    unit:GossipCreateMenu(3543, player)
    unit:GossipMenuAddItem(player, 0, "HordeMall", 1, 0)
    unit:GossipMenuAddItem(player, 0, "AllyMall", 2, 0)
    unit:GossipMenuAddItem(player, 0, "BootyBay", 3, 0)
    unit:GossipSendMenu(player)
    end
    
    function warp_on_gossip_select(unit, event, player, id, intid, code)
    
    if(intid == 1) then
    player:Teleport(1, -5808.933105, -3912.571777, -92.093262)
    end
    
    if(intid == 2) then
    player:Teleport(1, -5808.933105, -3912.571777, -92.093262)
    end
    
    if(intid == 3) then
    player:Teleport(0, -14406.599609, 419.352997, 22.388063)
    end
    
    intid = 0
    end
    
    RegisterGossipEvent(11325 , 1, "warp_on_gossip_talk")
    RegisterGossipEvent(11325 , 2, "warp_on_gossip_select")

    LUA Tele NPC.
  2. #2
    ChaotiXhot's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    unction warp_on_gossip_talk (unit, event, player)

    Should most likely be Function?

  3. #3
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tested it as with the added 'f' as ChaotiXhot pointed on..

    And it works perfect for me.

    So there could be the 'f', check that, or you has forgotten to set the flag guider on your NPC. Check that too (atleast I think it should be guider, the NPC I tested on was guider and quest giver (3) )

Similar Threads

  1. Lua Warp Npc , but it wont load -.-
    By mafiaboy in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-28-2008, 02:58 AM
  2. Tele Npc
    By delldude1989 in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 03-31-2008, 03:28 PM
  3. [HELP] How to make a tele npc +rep to helpers!
    By cooper101 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-24-2008, 01:41 PM
  4. Tele Npc and trainer question
    By Anarchy in forum World of Warcraft Emulator Servers
    Replies: 13
    Last Post: 02-24-2008, 02:17 PM
  5. Tele NPC
    By delldude1989 in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 02-20-2008, 12:29 PM
All times are GMT -5. The time now is 07:44 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