[Taxi] Importing this into an NPC? menu

User Tag List

Results 1 to 2 of 2
  1. #1
    davidknag's Avatar Active Member
    Reputation
    49
    Join Date
    Nov 2009
    Posts
    201
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Taxi] Importing this into an NPC?

    Code:
    local id = 4
    function Taxi_Talk(unit, event, player)
    	unit:GossipCreateMenu(50, player, 0)
    	unit:GossipMenuAddItem(0, "Take me on a flight!", 1, 1)
    	unit:GossipMenuAddItem(0, "[Exit]", 2, 0)
    	unit:GossipSendMenu(player)
    end
    function Taxi_Select (unit, event, player, id, intid, code)
    	if (intid == 1) then  
    		function flight_path_reality_system(event, plr, message, type, language) 
            	local Taxi = LuaTaxi:CreateTaxi()
            	Taxi:AddPathNode(1, 16201, 16210, 4)
            	Taxi:AddPathNode(1, 16247, 16161, 83)
            	Taxi:AddPathNode(1, 16375, 16159, 66)
            	Taxi:AddPathNode(1, 16376, 16337, 16)
            	Taxi:AddPathNode(1, 16267, 16311, 46)
           		Taxi:AddPathNode(1, 16249, 16304, 44)
            	plr:StartTaxi(Taxi, 17697)
    		player:GossipComplete()
    	end
    
    	if (intid == 2) then
    		player:GossipComplete()
    	end
        end
    end
    
    RegisterServerHook(16, "flight_path_reality_system")
    RegisterUnitGossipEvent(id, 1, "Taxi_Talk")
    RegisterUnitGossipEvent(id, 2, "Taxi_Select")
    current code.


    i get an error: "scripts/taxi.lua:29: Refrence creation failed! (flight_path_reality_system) is not a valid Lua function."

    yes this works with stoneharry's demo of saying #taxi.

    [Taxi] Importing this into an NPC?
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Remove these lines:
    function flight_path_reality_system(event, plr, message, type, language)
    RegisterServerHook(16, "flight_path_reality_system")

    Then it should work.

Similar Threads

  1. problems with animation after importing .M2 into 3dsMAX.
    By djoscar in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 03-18-2010, 12:04 AM
  2. [Question] Importing M2 into 3ds Max?
    By robbie932 in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 12-06-2008, 08:23 AM
  3. Replies: 3
    Last Post: 08-10-2008, 10:38 AM
  4. How to add this into my folder
    By arthur1265 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 07-10-2008, 10:27 AM
  5. [Model Change] Noggenfogger Skeleton into Human NPCs !
    By Banned in forum World of Warcraft Model Editing
    Replies: 3
    Last Post: 09-03-2007, 11:12 AM
All times are GMT -5. The time now is 11:43 AM. 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