[Help] Problem mit lua script menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    Zerodead's Avatar Member
    Reputation
    1
    Join Date
    Jul 2008
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Problem mit lua script

    Ich habe einen Lua Script geschrieben dieser soll nach ansprechen eines NPC einen Spieler x zum Ort Y fliegen so weit so gut man klickt ihn an das Menu kommt man wählt das erste aus wird br brav af auf ein mount gesetzt und fliegt mit dem auch zu dem Ort Y nur das man dann auf dem mount bleibt -.- jemand ne idea wie man das problem beheben kann?


    local ConquerorFlightMasterEntryID = 99999
    local xcord = -7466
    local ycord = -1080.288574
    local zcord = 925.754524
    local ocord = 0

    function ConquerorFlight_OnGossip(pUnit, Event, player)
    pUnit:GossipCreateMenu(80000, player, 0)
    pUnit:GossipMenuAddItem(1, "I want to fly on the Mountain!", 1, 0)
    pUnit:GossipMenuAddItem(1, "I was looking for something else!", 2, 0)
    pUnit:GossipSendMenu(player)
    end

    function ConquerorFlight_GossipSelect(pUnit, Event, player, id, intid, code)
    if (intid == 1) then
    player:SetMount(2468
    player:MovePlayerTo(xcord, ycord, zcord, ocord, 12288, 100)
    pUnit:RegisterEvent("dismount_1", 27000, 1)

    end
    if (intid == 2) then
    player:GossipComplete(player)
    end
    end


    function dismount_1(pUnit, player)
    player:SetMount(0)
    player:GossipComplete(player)
    end



    RegisterUnitGossipEvent(ConquerorFlightMasterEntryID, 1, "ConquerorFlight_OnGossip")
    RegisterUnitGossipEvent(ConquerorFlightMasterEntryID, 2, "ConquerorFlight_GossipSelect")

    [Help] Problem mit lua script

Similar Threads

  1. Problem with lua script :/ please help!
    By robinelitenn in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 10-24-2009, 05:10 PM
  2. [Help] problem with Lua
    By Edude in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 08-05-2008, 11:15 AM
  3. [HELP] Ending a lua script
    By Ezikielth in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 07-28-2008, 11:01 AM
  4. [Help] Fairly large Lua script problem
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-16-2008, 09:03 PM
  5. Help with this LUA script
    By jordash in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 03-08-2008, 04:19 PM
All times are GMT -5. The time now is 07:14 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