MMOCoin

Likes Likes:  0
Results 1 to 9 of 9

Thread: Guide Npc

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Contributor
    Boxxy's Avatar
    Join Date
    Aug 2008
    Location
    Florida
    Posts
    351
    Post Thanks / Like
    Rep Power
    19
    Reputation
    136

    Guide Npc

    Code:
     
    ---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")


    Last edited by Boxxy; 03-08-08 at 11:30 PM.
    your mother



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

 

 

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
  •