[LUA, SQL] Teleporter menu

User Tag List

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 37
  1. #16
    karlan91's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice, simple and easy

    [LUA, SQL] Teleporter
  2. #17
    Evilbuffy's Avatar Member
    Reputation
    38
    Join Date
    Mar 2009
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function On_Gossip(pUnit, event, player)
    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls", 4, 0)
    pUnit:GossipSendMenu(player)
    end

    function Gossip_Submenus(pUnit, event, player, id, intid, code)
    if(intid == 999) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(2, "Nutral Cities", 1, 0)
    pUnit:GossipMenuAddItem(2, "Alliance", 2, 0)
    pUnit:GossipMenuAddItem(2, "Horde", 3, 0)
    pUnit:GossipMenuAddItem(2, "Malls And PvP", 4, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 1) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Dalaran", 300, 0)
    pUnit:GossipMenuAddItem(1, "Shattrath", 309, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 2) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Stormwind", 301, 0)
    pUnit:GossipMenuAddItem(1, "Ironforge", 302, 0)
    pUnit:GossipMenuAddItem(1, "Darnassus", 303, 0)
    pUnit:GossipMenuAddItem(1, "Exodar", 304, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 3) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
    pUnit:GossipMenuAddItem(1, "Undercity", 306, 0)
    pUnit:GossipMenuAddItem(1, "Thunder_Bluff", 307, 0)
    pUnit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 4) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Horde Mall", 310, 0)
    pUnit:GossipMenuAddItem(1, "Alliance Mall", 311, 0)
    pUnit:GossipMenuAddItem(1, "Gurubashi Arena", 312, 0)
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if(intid == 300) then
    player:Teleport(571, 5807.821289, 587.875366, 660.938782)
    unit:GossipComplete(player)
    end

    if(intid == 301) then
    player:Teleport(0, -8932.045898, 538.432983, 94.355003)
    unit:GossipComplete(player)
    end

    if(intid == 302) then
    player:Teleport(0, -4910.066406, -954.944641, 501.485260)
    unit:GossipComplete(player)
    end

    if(intid == 303) then
    player:Teleport(1, 9946.203125, 2614.886230, 1316.321777)
    unit:GossipComplete(player)
    end

    if(intid == 304) then
    player:Teleport(530, -4044.313477, -11908.476563, -2.44724
    unit:GossipComplete(player)
    end

    if(intid == 305) then
    player:Teleport(1, 1492.897095, -4415.085449, 23.071123)
    unit:GossipComplete(player)
    end

    if(intid == 306) then
    player:Teleport(0, 1735.158936, 238.984070, 62.853424)
    unit:GossipComplete(player)
    end

    if(intid == 307) then
    player:Teleport(1, -1290.126099, 148.322083, 129.706223)
    unit:GossipComplete(player)
    end

    if(intid == 30 then
    player:Teleport(530, 9483.235352, -7290.837891, 14.293912)
    unit:GossipComplete(player)
    end

    if(intid == 309) then
    player:Teleport(530, -1866.214478, 5410.462402, -12.427251)
    unit:GossipComplete(player)
    end

    if(intid == 310) then
    player:Teleport(1, 2177.929199, -4765.253418, 54.911053)
    unit:GossipComplete(player)
    end

    if(intid == 311) then
    player:Teleport(0, -8856.007813, 599.473816, 92.058683)
    unit:GossipComplete(player)
    end

    if(intid == 312) then
    player:Teleport(0, -13204.020508, 274.802765, 21.857243)
    unit:GossipComplete(player)
    end
    end

    RegisterUnitGossipEvent(222334, 1, "On_Gossip")
    RegisterUnitGossipEvent(222334, 2,"Gossip_Submenus")

    Try it now, you forgot to add GossipCreateMenu and GossipSendMenu., the red line. Tell me if it works. =)
    Last edited by Evilbuffy; 03-29-2009 at 11:09 AM.

  3. #18
    tutfw's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @evilbuffy you send me a pm, but i can't write back yet, because i need 10 posts.
    i hope it is allright to post it here for you.

    i found the script on darkwow[dot]de , a german emulation community.

    greetz

  4. #19
    fastelf's Avatar Active Member
    Reputation
    44
    Join Date
    Apr 2007
    Posts
    279
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dam.. i looked at this thinking "Oooh! an LUA that actually hooks into the SQL db, interesting!"

    I was deeply disapointed, lol.

  5. #20
    Evilbuffy's Avatar Member
    Reputation
    38
    Join Date
    Mar 2009
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, I'm afraid I'm not too experienced with lua, and I don't have enough experience yet. I started with lua and sql for a month ago, but I will continue working on it, and I will keep on posting new scripts I make.

    And thanks for telling me here tutfw. I'm thankful for it.


    - Buffy

  6. #21
    imjustbackup's Avatar Member
    Reputation
    10
    Join Date
    Jul 2008
    Posts
    23
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lol

    LOL this is a dumb question but i forgot how to get my chords in the game how would i do that...what the command for it ty

  7. #22
    TheZaronz's Avatar Active Member
    Reputation
    97
    Join Date
    Dec 2007
    Posts
    567
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the new "Release Section Rule" this is restricted. And DON'T ask for +Rep

  8. #23
    Evilbuffy's Avatar Member
    Reputation
    38
    Join Date
    Mar 2009
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    imjustbackup; To answer you're question - Use the command .gps ingame, at the point you want the cords, and you get them. MAPID, X, Y, Z. =)

    TheZaronz - I didn't know, Sorry.

  9. #24
    djen11's Avatar Member
    Reputation
    1
    Join Date
    Nov 2008
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe it is a stupid question, but is it for mangos? and if yes where do i put the script file?

  10. #25
    craigy109's Avatar Active Member
    Reputation
    72
    Join Date
    Feb 2009
    Posts
    79
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank's been looking for a good teleporter npc =-)

  11. #26
    sopolivec's Avatar Member
    Reputation
    2
    Join Date
    Mar 2009
    Posts
    6
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i can say-Very well!
    +REP

  12. #27
    Evilbuffy's Avatar Member
    Reputation
    38
    Join Date
    Mar 2009
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the +Rep guys. =) And this lua is for ArcEmu, not mangos.

  13. #28
    kalle51's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    are you suppose to put the notepad file in the scripts folder?

  14. #29
    Evilbuffy's Avatar Member
    Reputation
    38
    Join Date
    Mar 2009
    Posts
    185
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, Lua scripts go straight into the scripts folder. Just remember to save it as a .lua file, and not a .txt file. =)

  15. #30
    DuDeY 016's Avatar Member
    Reputation
    16
    Join Date
    Jun 2008
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good Work +Rep

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. [LUA][SQL] Kil'jaeden Script
    By BrantX in forum World of Warcraft Emulator Servers
    Replies: 47
    Last Post: 06-21-2008, 10:51 AM
  2. [Lua, SQL] Kil'tazoor, The Kobold Lord. (My first try at LUA!)
    By Zordin in forum World of Warcraft Emulator Servers
    Replies: 23
    Last Post: 06-11-2008, 03:19 PM
  3. [LUA][SQL] Angel Script
    By BrantX in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 06-11-2008, 02:21 PM
  4. SQL Teleporter
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 22
    Last Post: 06-01-2008, 12:02 PM
  5. [Release][LUA][SQL] Selin Fireheart
    By sheepking in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 05-11-2008, 11:40 AM
All times are GMT -5. The time now is 06:36 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