[Lua] Combo NPC menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Combo NPC

    -=[Combo NPC]=-


    Description
    Hi all. I maked this small Lua script.So what it does?? Hmm, Well its small "Combo NPC" He can teleport you to Mall,Lvling Road And he has some special Fuctions...
    How menu looks?
    Like this:
    --Mall
    --Leveling Area
    --------------------
    -NPC Windows
    --Trainer
    --InnKeeper
    --Bank Window
    --Auction Window
    Nevermind
    ----------------
    -Player Tools
    --Player Speed (25)
    --Sex Changer
    Nevermind
    --Show My Honor
    --Show My Arena Points
    Nevermind.


    How to work
    Copy this code down and read first lines before " --Do not touch after this comment-- " put it in scripts save as Itembank.lua and restart the server
    Remember you need to make NPC..


    Code:
    -=[Combo NPC]=-
    -=[LunarScriptors- Onlykl]=-
    
    -- Change this down --
    local NPC_ID = -- Npc ID here! You can make it with www.wow-v.com
    
    local MallMapId = -- Enter Mall map id here
    local MallMapX = -- Enter Mall X coords here
    local MallMapY =  -- Enter Mall Y coords here
    local MallMapZ =  -- Enter Mall Z coords here
    
    local LevMapId = -- Enter LvlRoad map id here
    local LevMapX = -- Enter LvlRoad leveling x coord here
    local LevMapY = -- Enter LvlRoad leveling y coord here
    local LevMapZ = -- Enter LvlRoad leveling z coord here 
    
    --Do not touch after this comment--
    
    function Lunar_OnGossipTalk(pUnit, event, player)
        pUnit:GossipCreateMenu(1, player, 0)
        pUnit:GossipMenuAddItem(1,"Mall", 1, 0)
        pUnit:GossipMenuAddItem(1,"Leveling Area", 2, 0)
        pUnit:GossipMenuAddItem(0,"NPC Windows", 3,0)
        pUnit:GossipMenuAddItem(0,"Player Tools", 4,0)
        pUnit:GossipMenuAddItem(0,"Show My Honor", 5,0)
        pUnit:GossipMenuAddItem(0,"Show My Arena Points", 6,0)
        pUnit:GossipMenuAddItem(1,"Nevermind.", 999, 0)
        pUnit:GossipSendMenu(player)
    end
    
    function Lunar_OnGossipSelect(pUnit, Event, player, id, intid, code, pMisc)
    
    if(intid == 1) then
        player:Teleport(MallMapId, MallMapX, MallMapY, MallMapZ)
        player:GossipComplete()
    end
    
    if(intid == 2) then
        player:Teleport(LevMapId, LevMapX, LevMapY, LevMapZ)
        player:GossipComplete()
    end
    
    if(intid == 3) then
    	pUnit:GossipCreateMenu(3545, player, 0)
    	pUnit:GossipMenuAddItem(0,"Trainer", 7,0)
    	pUnit:GossipMenuAddItem(0,"InnKeeper", 8,0)
    	pUnit:GossipMenuAddItem(0,"Bank Window", 9,0)
    	pUnit:GossipMenuAddItem(0,"Auction Window", 10,0)
    	pUnit:GossipMenuAddItem(0,"Nevermind", 999,0)
    	pUnit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    	pUnit:GossipCreateMenu(3546, player, 0)
    	pUnit:GossipMenuAddItem(0,"Player Speed (25)", 11,0)
    	pUnit:GossipMenuAddItem(0,"Sex Changer", 12,0)
    	pUnit:GossipMenuAddItem(0,"Nevermind", 999,0)
    	pUnit:GossipSendMenu(player)
    end
    
    
    if (intid == 5) then
    player:GetTotalHonor()
    player:GossipComplete()
    end
    
    if (intid == 6) then
    player:GetArenaPoints()
    player:GossipComplete()
    end
    
    if (intid == 7) then
    player:SendTrainerWindow(unit)
    player:GossipComplete()
    end
    
    if (intid == 8) then
    player:SendInnkeeperWindow(unit)
    player:GossipComplete()
    end
    
    if (intid == 9) then
    player:SendBankWindow(unit)
    player:GossipComplete()
    end
    
    if (intid == 10) then
    player:SendAuctionWindow(unit)
    player:GossipComplete()
    end
    
    if (intid == 11) then
    player:SetPlayerSpeed(25)
    player:GossipComplete()
    end
    
    if (intid == 12 and Player:GetGender() == 0) then
    	player:SendBroadcastMessage("Your gender has been changed!")
    	Player:SetGender(1)
    elseif (Player:GetGender() == 1) then
    	Player:SendBroadcastMessage("Your gender has been changed!")
    	Player:SetGender(0)
    end
    
    if(intid == 999) then
        player:GossipComplete()
    end
    end
    
    RegisterUnitGossipEvent(NPC_ID, 1, "Lunar_OnGossipTalk")
    RegisterUnitGossipEvent(NPC_ID, 2, "Lunar_OnGossipSelect")


    [Lua] Combo NPC
  2. #2
    Found's Avatar Banned
    Reputation
    239
    Join Date
    Mar 2009
    Posts
    642
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice release.. good to be part of a team that knows WTF to do +Rep my friend.

Similar Threads

  1. [Guide] LUA teleporter NPC template and guide!!
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 34
    Last Post: 04-07-2009, 03:36 PM
  2. [Template] LUA Teleporter NPC and Mini guide!!
    By Jackie Moon in forum WoW EMU General Releases
    Replies: 13
    Last Post: 03-15-2009, 04:07 PM
  3. [LUA]Music NPC
    By Edude in forum WoW EMU General Releases
    Replies: 19
    Last Post: 11-08-2008, 06:59 AM
  4. Lua Warp Npc , but it wont load -.-
    By mafiaboy in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-28-2008, 02:58 AM
  5. LUA Tele NPC.
    By Ickybad in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-08-2008, 06:08 AM
All times are GMT -5. The time now is 05:38 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