[Lua] npc teleport master not working menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    digger514's Avatar Member
    Reputation
    1
    Join Date
    Jun 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] npc teleport master not working

    I have Ascent Hearthstone and when I try to add the code

    Code:
    local npcid = 0
    function WarpNPC_OnGossipTalk(pUnit, event, player, pMisc)
    if (player:IsInCombat() == true) then
    player:SendAreaTriggerMessage("You are in combat!")
    else
    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(3, "Main Teleplorts", 1, 0)
    pUnit:GossipMenuAddItem(3, "Northrend", 2, 0)
    pUnit:GossipMenuAddItem(3, "Outlands", 3, 0)
    pUnit:GossipSendMenu(player)
    end
    end
    
    function WarpNPC_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 999) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(3, "Main Teleports", 1, 0)
    pUnit:GossipMenuAddItem(3, "Northrend", 2, 0)
    pUnit:GossipMenuAddItem(3, "Outlands", 3, 0)
    pUnit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(3, "Leveling Road", 4, 0)
    pUnit:GossipMenuAddItem(3, "Mall", 5, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    
    if(intid == 2) then
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(3, "Leveling Road", 4, 0)
    pUnit:GossipMenuAddItem(3, "Mall", 5, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    
    if(intid == 4) then
    player:Teleport(0, -6963.200195, 299.438995, 170.516006)
    pUnit:GossipComplete(player)
    end
    end
    
    intid = 0
    end
    
    RegisterUnitGossipEvent(26000000, 1, "WarpNPC_OnGossipTalk")
    RegisterUnitGossipEvent(26000000, 2, "WarpNPC_OnGossipSelect")
    to get an npc teleporter, it doesn't work. I have already made sure Lua is turned on in hearthstone-world and i was reading around mmowned and I had been putting the code in script-bin and it said not to so i made a new folder called "Scripts" and put it in there. Both folders it didn't work in. I was wondering if anyone might know the problem. Thanks

    [Lua] npc teleport master not working
  2. #2
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lua was broken in Hearthstone(don't know if they fixed it yet)

    So your lua scripts probably can't work.

  3. #3
    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)
    Just compile Hearthstone with GuaEngine then. Works perfectly.

  4. #4
    digger514's Avatar Member
    Reputation
    1
    Join Date
    Jun 2009
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    about the gua engine

    if i compile my hearthstone with the gua engine will it delete anything in the server because i already have alot done. Also were could i find the gua engine?

Similar Threads

  1. .NPC spawn <ENTRYID> not working
    By Bloodthunder1 in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 06-22-2014, 07:13 PM
  2. [Lua] teleport NPC ,teleport to mall wont work
    By thim99 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 04-19-2010, 10:09 AM
  3. Teleporter stone not working
    By alwise17 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-27-2009, 09:17 PM
  4. Portable Teleporter SQL not working
    By roguesownu in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-12-2008, 08:54 AM
  5. npc spawn command not working
    By Ganoran in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 11-01-2007, 09:06 PM
All times are GMT -5. The time now is 12:37 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