[HELP] WarpNPC menu

User Tag List

Results 1 to 11 of 11
  1. #1
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP] WarpNPC

    Hello there!

    As you can see I have an issue regarding my warpNPC, I get this error when it's trying to load up.

    Here's the code.


    function warpNPC_On_Gossip (pUnit, event, player)
    pUnit:GossipCreateMenu(100, player)
    pUnit:GossipMenuAddItem(player, 0, "Horde Capitals", 1, 0)
    pUnit::GossipSendMenu(player)
    end
    function warpNPC_Gossip_Submenus (pUnit, event, player, id, intid, code)
    if(intid == 1) then
    pUnit:GossipGossipMenuAddItem(99, player)
    pUnit:GossipMenuAddItem(player, 5, "Orgrimmar", 10, 0)
    pUnit:GossipMenuAddItem(player, 5, "Undercity", 11, 0)
    pUnit:GossipMenuAddItem(player, 5, "Thunder Bluff", 12, 0)
    pUnit:GossipMenuAddItem(player, 5, "Silvermoon", 13, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 10) then
    player:Teleport(1, 1484, -4417, 25)
    end
    if(intid == 11) then
    player:Teleport(0, 1831, 238, 60)
    end
    if(intid == 12) then
    player:Teleport(1, -1277, 118, 131)
    end
    if(intid == 13) then
    player:Teleport(530, 9413, -7277, 14)
    end
    RegisterGossipEvent(9999997 , 1, "warpNPC_On_Gossip")(9999997 , 2,"warpNPC_Gossip_Submenus")
    Would appriciate some help!

    Thanks in advance!
    /Babbaa

    [HELP] WarpNPC
  2. #2
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have you compiiled a newer lua engine?

  3. #3
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Power of Illuminati View Post
    Have you compiiled a newer lua engine?
    No, I have not.
    I'm using a quite new repack.
    Possibly that's the problem?

  4. #4
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Depends what the error is telling

  5. #5
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Power of Illuminati View Post
    Depends what the error is telling
    Here's what it says: (could not load)scripts\WARP_Porter.lua:4: '<name>' expected near ':' .

    There.

  6. #6
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just saw one thing, you missed a "end" to end the function. You only got a end in the end to end the if! :P

  7. #7
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Power of Illuminati View Post
    I just saw one thing, you missed a "end" to end the function. You only got a end in the end to end the if! :P
    Hm. I added an "end" at the end.
    But still no luck, still get the same error. =/

    :: I really appriciate your help man. : )

  8. #8
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    pUnit::GossipSendMenu(player)
    should that be 2x : ? shouldn't it be 1x : like this:

    Code:
     pUnit:GossipSendMenu(player)

  9. #9
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It worked!

    Altough, Now I can't talk to the NPC,
    I think I created the NPC the right way.
    =/

  10. #10
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check so the NPC flag is 1.

  11. #11
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Power of Illuminati View Post
    Check so the NPC flag is 1.
    Changed it, now it's possible to talk to him.
    But now enters a new problem, the Menu doesn't show up
    from my lua script.

    Any ideas? :P

Similar Threads

  1. WarpNPC help
    By Moaradin in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 08-12-2008, 09:37 AM
  2. [HELP] WarpNPC
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-16-2008, 07:03 PM
  3. WarpNPC help RQ
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-14-2008, 08:47 AM
  4. [HELP] c++ WarpNPC
    By lol88998 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 04-27-2008, 08:24 AM
  5. [help] about warpnpc.dll for new ascent rev
    By ion564 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 02-13-2008, 07:18 PM
All times are GMT -5. The time now is 01:15 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