[ArcEmu Help] LUA Weird Problem menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    KaMakaZe's Avatar Member
    Reputation
    22
    Join Date
    Sep 2007
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [ArcEmu Help] LUA Weird Problem

    I have a strange problem with my LUA script. None of my Eastern Kingdoms teleport scripts work.
    Kalimdor teleports all work, but Eastern Kingdoms teleports do nothing.
    Ive tried both my scripts (NPC & Item), since i updated from ArcEmu 1008 to ArcEmu 1119 ive noticed this problem.

    Im baffled, ive gone over the script and i cant see anything wrong with it.
    This is just a cut from the main script:
    Code:
    function NPC_OnGossip_select(pUnit, event, player, id, intid, code)
    if(intid == 12) then
        pUnit:GossipCreateMenu(3543, player, 0) --Alliance Main City Menu
        pUnit:GossipMenuAddItem(10, "Stormwind", 34, 0)
        pUnit:GossipMenuAddItem(10, "Ironforge", 35, 0)
        pUnit:GossipMenuAddItem(10, "Darnassus", 36, 0)
        pUnit:GossipMenuAddItem(10, "The Exodar", 37, 0)
        pUnit:GossipMenuAddItem(5, "(Back to Teleport Menu)", 3, 0)
        pUnit:GossipSendMenu(player)
    end
    
    if(intid == 34) then
        player:Teleport(0, -8828.898438, 627.545898, 94.035286)
    end
    if(intid == 35) then
        player:Teleport(0, -4977.095215, -888.452942, 501.621216)
    end
    if(intid == 36) then
        player:Teleport(1, 9943.809570, 2275.350098, 1341.390015)
    end
    if(intid == 37) then
        player:Teleport(530, -3792.557861, -11691.3, -105.241)
    end
    end
    The Darnassus and Exodar teleports work, yet the Stormwind and Ironforge ones do not. Any solution to this would be great!

    Thank you.

    [ArcEmu Help] LUA Weird Problem
  2. #2
    Ellenor's Avatar Active Member
    Reputation
    18
    Join Date
    Jan 2008
    Posts
    281
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    u forgot to register events

    and also try this



    function NPC_main_menu(pUnit, player)
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Teleport Locations", 6, 0)
    pUnit:GossipSendMenu(player)
    end
    function NPC_on_gossip_talk(pUnit, event, player)
    NPC_main_menu(pUnit, player)
    end
    function NPC_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 6) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "LOCATION NAME", 100, 0)
    pUnit:GossipMenuAddItem(1, "LOCATION NAME", 101, 0)
    pUnit:GossipMenuAddItem(1, "LOCATION NAME", 102, 0)
    pUnit:GossipMenuAddItem(1, "LOCATION NAME", 103, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 100) then
    player:Teleport(MAP,X,Y,Z)
    end
    if(intid == 101) then
    player:Teleport(MAP,X,Y,Z)
    end
    if(intid == 102) then
    player:Teleport(MAP,X,Y,Z)
    end
    if(intid == 103) then
    player:Teleport(MAP,X,Y,Z)
    end
    intid = 0
    end
    RegisterUnitGossipEvent(17, 1, "NPC_on_gossip_talk")
    RegisterUnitGossipEvent(17, 2, "NPC_on_gossip_select")


    JUST EDIT UR DETAILS AND U ARE GOOD
    Last edited by Ellenor; 10-03-2008 at 10:14 PM.

  3. #3
    KaMakaZe's Avatar Member
    Reputation
    22
    Join Date
    Sep 2007
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As i said, it was only a cut from the main script. All the other parts are in apart from the intid = 0 at the end. Ill put that in and see if it changes anything at all. xD

    EDIT: Still no joy, Eastern Kingdoms teleports were working before the update...
    Last edited by KaMakaZe; 10-03-2008 at 10:23 PM.

  4. #4
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you get to the maps regularly? Like without a porter?

    I live in a shoe

  5. #5
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had same problem and eventually resorted to using the actual portal to then places as i couldnt fix it either.. Im guessing it has something to do with the Map ids for boht places using 0 or something but their supposed to so i dont really see a way around it.

  6. #6
    KaMakaZe's Avatar Member
    Reputation
    22
    Join Date
    Sep 2007
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All the maps were working fine, if i tried to portal to Stormwind using the NPC, i couldnt get there, but if i did .recall port stormwind i could.
    I updated my ArcEmu to 1141 now and the Eastern Kingdoms teleport scripts are working again.

    Must have been a core issue. :S
    Last edited by KaMakaZe; 10-04-2008 at 07:19 AM.

  7. #7
    xeross155's Avatar Member
    Reputation
    4
    Join Date
    Aug 2008
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if i recall it's a bug with the number zero, there is a check in the source that checks if map number is false, and 0 gets interpeted as false.

Similar Threads

  1. [HELP] LUA problem
    By Strupantwn in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-06-2008, 01:47 AM
  2. [Help] Lua problem
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-23-2008, 04:34 AM
  3. [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
  4. [Help]Weird Problem
    By Knife in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 02-25-2008, 11:13 AM
  5. Help with weird database problem
    By Xeneth in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 01-15-2008, 01:17 PM
All times are GMT -5. The time now is 10:49 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