Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 2 of 2
  1. #1
    Sergeant

    Join Date
    Feb 2011
    Posts
    61
    Post Thanks / Like
    Rep Power
    14
    Reputation
    19

    LUA problem, with guide npc. Check here.


    Register to remove this ad
    Hello guys, i have just downloaded " Broxxys guide npc "

    i have some problem with it.

    Here is the script:

    ---Made by noobcraft----

    local npcid = 400009

    function NPC_main_menu(pUnit, player)
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(0, "What do i do in this server?", 4, 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)
    if(intid == 4) then
    pUnit:SendChatMessage(12, 0, "Messege")
    player:GossipComplete()
    end
    end

    RegisterUnitGossipEvent(npcid, 1, "NPC_on_gossip_talk")
    RegisterUnitGossipEvent(npcid, 2, "NPC_on_gossip_select"
    Anyway, it's working when i only got 1 thing in the menu, but
    if i am going to add another thing in menu, example " Donation Support "
    then " Donation Support " working, & the old one stops working.

    Anyone as can help me ?


    › See More: LUA problem, with guide npc. Check here.

  2. #2
    Beginner

    Join Date
    Feb 2011
    Posts
    14
    Post Thanks / Like
    Rep Power
    14
    Reputation
    1

    Register to remove this ad
    Sounds like the npcid is already being used or if there's a conflict between the script and data found elsewhere. Try running a search in your database. If it's being used, maybe you can just add in another character.




  3. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

 

 

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!
SEO Blog

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 10:01 PM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org