Custom flight path problem. menu

User Tag List

Results 1 to 3 of 3
  1. #1
    DaynNight's Avatar Private
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom flight path problem.

    Hi there I recently decided to make some custom flight path's since a teleporter npc is used in amost every private server. So far I have this:

    Code:
    local GetDisplay = 17699
    local NPCID = 210000
     
    function Flight_Master_OnGossipTalk(pUnit, event, player, pMisc)
    pUnit:GossipCreateMenu(50, player, 0)
    pUnit:GossipMenuAddItem(9, "Get me to the excavation site!", 1, 0)
    pUnit:GossipMenuAddItem(9, "Leave.", 2, 0)
    pUnit:GossipSendMenu(player)
    end
     
    function Flight_Master_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if (intid == intid) then
    		CustomFlightPath = LuaTaxi:CreateTaxi()
    		CustomFlightPath:AddPathNode(MapID, X, Y, Z)
                    CustomFlightPath:AddPathNode(603, -0.916, 331.3, 464.8)
                    CustomFlightPath:AddPathNode(603, 32.37, 234.0, 481.6)
                    CustomFlightPath:AddPathNode(603, 88.66, 135.0, 487.5)
                    CustomFlightPath:AddPathNode(603, 142.8, 57.08, 440.4)
    				CustomFlightPath:AddPathNode(603, 374.5, -5.453, 442.3)
    				CustomFlightPath:AddPathNode(603, 567.3, -9.881, 435.9)
    				CustomFlightPath:AddPathNode(603, 585.8, 157.4, 395.9)
    				CustomFlightPath:AddPathNode(603, 621.7, 255.4, 360.8)
    		player:StartTaxi(CustomFlightPath, GetDisplay)
    		player:GossipComplete()
    end
    end
     
    if (intid == 2) then
    player:GossipComplete()
    end
     
    RegisterUnitGossipEvent(NPCID, 1, "Flight_Master_OnGossipTalk")
    RegisterUnitGossipEvent(NPCID, 2, "Flight_Master_OnGossipSelect")
    Everytime I click on the npc, -> "Get me to the excavation site!" it will show in ArcEmu-world:

    Code:
    scripts\CampToOtherSideFlightPath.lua:14: calling 'AddPathNode' on bad self (number expected, got nil)
    Any suggestions how I can fix this? Thanks alot in advance.

    Custom flight path problem.
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Here, read my comment also:

    Code:
    local GetDisplay = 17699
    local NPCID = 210000
    
    function Flight_Master_OnGossipTalk(pUnit, event, player, pMisc)
    	pUnit:GossipCreateMenu(50, player, 0)
    	pUnit:GossipMenuAddItem(9, "Get me to the excavation site!", 1, 0)
    	pUnit:GossipMenuAddItem(9, "Leave.", 2, 0)
    	pUnit:GossipSendMenu(player)
    end
    
    function Flight_Master_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    	if (intid == 1) then
    		local CustomFlightPath = LuaTaxi:CreateTaxi()
    		--CustomFlightPath:AddPathNode(MapID, X, Y, Z) -- This line had no numbers, thus the error
    		--   was telling you that a number was expected, but no value was got (it assumed those were
    		--   variables with no value).
    		CustomFlightPath:AddPathNode(603, -0.916, 331.3, 464.8)
    		CustomFlightPath:AddPathNode(603, 32.37, 234.0, 481.6)
    		CustomFlightPath:AddPathNode(603, 88.66, 135.0, 487.5)
    		CustomFlightPath:AddPathNode(603, 142.8, 57.08, 440.4)
    		CustomFlightPath:AddPathNode(603, 374.5, -5.453, 442.3)
    		CustomFlightPath:AddPathNode(603, 567.3, -9.881, 435.9)
    		CustomFlightPath:AddPathNode(603, 585.8, 157.4, 395.9)
    		CustomFlightPath:AddPathNode(603, 621.7, 255.4, 360.8)
    		player:StartTaxi(CustomFlightPath, GetDisplay)
    	end
    	player:GossipComplete()
    end
    
    RegisterUnitGossipEvent(NPCID, 1, "Flight_Master_OnGossipTalk")
    RegisterUnitGossipEvent(NPCID, 2, "Flight_Master_OnGossipSelect")

  3. #3
    DaynNight's Avatar Private
    Reputation
    1
    Join Date
    Jan 2012
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Many many thanks stoneharry +rep

Similar Threads

  1. [Noob Friendly] Custom Flight Paths (Requires client side patch)
    By Nadromar in forum WoW EMU Guides & Tutorials
    Replies: 15
    Last Post: 09-27-2022, 05:19 PM
  2. [Lua Script] [ArcEmu] Custom flight path that requires an item (3.3.5a)
    By Teryaki in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 05-25-2012, 02:03 AM
  3. [Lua Script] What are the commands for the custom flight paths ?
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-27-2010, 12:46 PM
  4. Change flight path easily
    By Matt in forum World of Warcraft Exploits
    Replies: 8
    Last Post: 07-27-2006, 04:59 AM
  5. Alliance and Horde Flight Paths
    By Bossman4 in forum World of Warcraft Guides
    Replies: 6
    Last Post: 05-22-2006, 12:06 PM
All times are GMT -5. The time now is 06:04 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search