Please Modify This Teleporter Script! menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    ProphetWoW's Avatar Corporal
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much for the sample, Project Anthrax.

    Meiya, I really appreciate the time you're putting into this script. By no means do I mean to rush you, please take all the time you need. As for the spell ID's, just put random numbers in the script- I'll fill them in later on.

    Thanks again,
    ProphetWoW

    Please Modify This Teleporter Script!
  2. #17
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Code:
    local LOCATION_HORDE_MALL = "0, 0, 0, 0" -- mapid, x, y, z
    local LOCATION_ALLIANCE_MALL = "0,0,0,0" -- mapid,x,y,z
    
    local Buffs = {11, 11, 11, 11, 11} -- Put the buff ID's in here, spellid 11 is used 5 times so far... Add and remove as neccessary
    
    function On_Gossip(unit, event, player)
        unit:GossipCreateMenu(555050, player, 0)
        local race = player:GetPlayerRace()
        if race == 1 or race == 3 or race == 4 or race == 7 or race == 11 then -- Alliance
        unit:GossipMenuAddItem(2, "Alliance Mall", 2, 0)
        unit:GossipMenuAddItem(9, "Alliance Cities", 4, 0)
        else
        unit:GossipMenuAddItem(2, "Horde Mall", 1, 0)
        unit:GossipMenuAddItem(9, "Horde Cities", 3, 0)
        end
        unit:GossipMenuAddItem(9, "Gurubashi Arena", 45,  0)
        unit:GossipMenuAddItem(4, "Remove Ressurection Sickness", 900, 0)
        unit:GossipMenuAddItem(4, "Buff Me", 901, 0)
        unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
        if(intid == 50) then
        unit:GossipCreateMenu(555050, player, 0)
        local race = player:GetPlayerRace()
        if race == 1 or race == 3 or race == 4 or race == 7 or race == 11 then -- Alliance
        unit:GossipMenuAddItem(2, "Alliance Mall", 2, 0)
        unit:GossipMenuAddItem(9, "Alliance Cities", 4, 0)
        else
        unit:GossipMenuAddItem(2, "Horde Mall", 1, 0)
        unit:GossipMenuAddItem(9, "Horde Cities", 3, 0)
        end
        unit:GossipMenuAddItem(9, "Gurubashi Arena", 45,  0)
        unit:GossipMenuAddItem(4, "Remove Ressurection Sickness", 900, 0)
        unit:GossipMenuAddItem(4, "Buff Me", 901, 0)
         unit:GossipSendMenu(player)
        end
        
        if (intid == 901) then
        player:CancelSpell()
            for i=1, #Buffs do
            player:CastSpell(Buffs[i])
            end
        end
        
        if(intid == 1) then
        player:Teleport(LOCATION_HORDE_MALL)
        player:GossipComplete()
        end
    
        if(intid == 2) then
        player:Teleport(LOCATION_ALLIANCE_MALL)
        end
    
        if(intid == 3) then
        unit:GossipCreateMenu(555050, player, 0)
        unit:GossipMenuAddItem(9, "Orgrimmar", 10, 0)
        unit:GossipMenuAddItem(9, "Undercity", 11, 0)
        unit:GossipMenuAddItem(9, "Thunder Bluff", 12, 0)
        unit:GossipMenuAddItem(9, "Silvermoon", 13, 0)
        unit:GossipMenuAddItem(0, "[Back]", 50, 0)
        unit:GossipSendMenu(player)
        end
    
        if(intid == 4) then
        unit:GossipCreateMenu(555050, player, 0)
        unit:GossipMenuAddItem(9, "Stormwind", 14, 0)
        unit:GossipMenuAddItem(9, "Ironforge", 15, 0)
        unit:GossipMenuAddItem(9, "Darnassus", 16, 0)
        unit:GossipMenuAddItem(9, "Exodar", 17, 0)
        unit:GossipMenuAddItem(0, "[Back]", 50, 0)
        unit:GossipSendMenu(player)
        end
    
        if(intid == 8) then
        unit:GossipCreateMenu(50, player, 0)
        unit:GossipMenuAddItem(1, "The Great Arena", 38, 0)
        unit:GossipSendMenu(player)
        end
    
        if(intid == 900) then
        player:LearnSpell(15007)
        player:UnlearnSpell(15007)
        end
    
        if(intid == 10) then
        player:Teleport(1, 1374.44, -4371.12, 26.03)
        end
    
        if(intid == 11) then
        player:Teleport(0, 1881, 237.57, 59.04)
        end
    
        if(intid == 12) then
        player:Teleport(1, -1264.37, 212.11, 59.56)
        end
    
        if(intid == 13) then
        player:Teleport(530, 9344.70, -7277.72, 14.33)
        end
    
        if(intid == 14) then
        player:Teleport(0, -9112.70, 398.54, 92.51)
        end
    
        if(intid == 15) then
        player:Teleport(0, -5039.30, -813.25, 495.13)
        end
    
        if(intid == 16) then
        player:Teleport(1, 9985.28, 1950.22, 1325.44)
        end
    
        if(intid == 17) then
        player:Teleport(530, -4072.44, -12017.14, -1.34)
        end
    
        if(intid == 19) then
        player:Teleport(571, 8194.35, -1963.53, 1738.48)
        end
    
        if(intid == 20) then
        player:Teleport(571, 7865.57, -1397.5, 1534.06)
        end
    
        if(intid == 45) then
        player:Teleport(0, -13226.41, 231.95, 33.28)
        end
    end
    
    RegisterUnitGossipEvent(70500, 1, "On_Gossip")
    RegisterUnitGossipEvent(70500, 2, "Gossip_Submenus")
    Finished.

    To get the message displaying how you want (welcome to x):

    NPC_Text table, create an ID of 555050, fill in details, save, restart server, may need to clear cache to take affect.

    Or you can use my query to make it for you:

    Code:
    insert into `npc_text` (`entry`, `prob0`, `text0_0`, `text0_1`, `lang0`, `em0_0`, `em0_1`, `em0_2`, `em0_3`, `em0_4`, `em0_5`, `prob1`, `text1_0`, `text1_1`, `lang1`, `em1_0`, `em1_1`, `em1_2`, `em1_3`, `em1_4`, `em1_5`, `prob2`, `text2_0`, `text2_1`, `lang2`, `em2_0`, `em2_1`, `em2_2`, `em2_3`, `em2_4`, `em2_5`, `prob3`, `text3_0`, `text3_1`, `lang3`, `em3_0`, `em3_1`, `em3_2`, `em3_3`, `em3_4`, `em3_5`, `prob4`, `text4_0`, `text4_1`, `lang4`, `em4_0`, `em4_1`, `em4_2`, `em4_3`, `em4_4`, `em4_5`, `prob5`, `text5_0`, `text5_1`, `lang5`, `em5_0`, `em5_1`, `em5_2`, `em5_3`, `em5_4`, `em5_5`, `prob6`, `text6_0`, `text6_1`, `lang6`, `em6_0`, `em6_1`, `em6_2`, `em6_3`, `em6_4`, `em6_5`, `prob7`, `text7_0`, `text7_1`, `lang7`, `em7_0`, `em7_1`, `em7_2`, `em7_3`, `em7_4`, `em7_5`) values('555050','1','Welcome to X.','','0','0','0','0','0','0','0','0','','','0','0','0','0','0','0','0','0','','','0','0','0','0','0','0','0','0','','','0','0','0','0','0','0','0','0','','','0','0','0','0','0','0','0','0','','','0','0','0','0','0','0','0','0','','','0','0','0','0','0','0','0','0','0','','0','0','0','0','0','0','0');
    Then to change the message:

    Code:
    UPDATE `npc_text` SET `text0_0` = "Welcome to X." WHERE `entry` = '555050';
    Took all of 2mins, don't know why people are struggling with this...

    Last edited by stoneharry; 10-21-2010 at 12:13 PM.

  3. #18
    ProphetWoW's Avatar Corporal
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for setting time aside to do that for me, Stoneharry. I really appreciate it.

    I'd like to thank Meiya once again as well, thank you for your time.

    Regards,
    ProphetWoW

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Need help with this LUA script, please.
    By Eliteplague in forum WoW Bots Questions & Requests
    Replies: 6
    Last Post: 11-18-2011, 01:27 PM
  2. Will this teleporter npc lua script work?
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 05-22-2008, 11:50 AM
  3. Can Somebody Post me a File please for this exact Blood Elf Male Model?
    By Enix in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 08-02-2007, 09:47 AM
  4. Please Do This For Me ( - Uber Rep - )
    By EthanLopez in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 02-16-2007, 12:58 AM
  5. Matt please read this
    By Defalcator in forum Community Chat
    Replies: 2
    Last Post: 07-14-2006, 07:51 PM
All times are GMT -5. The time now is 03:00 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