Teleporter npc help? menu

Shout-Out

User Tag List

Results 1 to 10 of 10
  1. #1
    Maceaxe's Avatar Banned
    Reputation
    2
    Join Date
    Dec 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Teleporter npc help?

    I am using johveds repack (off of youtube) and i havent had any problems really. I wanted to make a teleporter npc so i made the npc that its gonna be no problems with that it spawns in game etc... but when it comes to actually making it a teleporter thats the hard bit btw the entry id for npc i wanna spawn and make a telepeorter is "2" here is my lua script for the teleporter as im only checking atm it only has alliance cities:

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(0,"Alliance Locations", 0, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    if(intid == 0) then
    unit:GossipCreateMenu(101, player, 0)
    unit:GossipMenuAddItem(0,"Darnasuss", 50, 0)
    unit:GossipMenuAddItem(0,"Ironforge", 51, 0)
    unit:GossipMenuAddItem(0,"Stormwind", 52, 0)
    unit:GossipMenuAddItem(0,"Exodar", 53, 0)
    unit:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
    end
    if(intid == 51) then
    player:Teleport(0, -5028.265137, -825.976563, 495.301575)
    end
    if(intid == 52) then
    player:Teleport(0, -9100.480469, 406.950745, 92.594185)
    end
    if(intid == 53) then
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
    end
    end
    
    RegisterUnitGossipEvent(2, 1, "On_Gossip")
    RegisterUnitGossipEvent(2, 2, "Gossip_Submenus")
    I put this file into my scripts folder and i restarted my server. the npc wasnt even able to talk to! it wasnt before either actually. So anyway please can somebody tell me what im doing wrong and how to fix it? Also i think this server is definetely in need of a noobish guide for a teleporter npc including sql and lua setting up XD
    -Mace
    Last edited by Maceaxe; 12-29-2008 at 07:57 AM.

    Teleporter npc help?
  2. #2
    Djfrederick's Avatar Banned
    Reputation
    127
    Join Date
    Sep 2008
    Posts
    380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not lua expert, but i dont think it work when its like this:

    Code:
    unit:GossipMenuAddItem(0,"Alliance Locations", 0, 0)
    ''(0,"Alliance Locations", 0, 0)'' - If im not uncorrect then the first ''0'' should be ''1''?

  3. #3
    Maceaxe's Avatar Banned
    Reputation
    2
    Join Date
    Dec 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Djfrederick View Post
    I am not lua expert, but i dont think it work when its like this:

    Code:
    unit:GossipMenuAddItem(0,"Alliance Locations", 0, 0)
    ''(0,"Alliance Locations", 0, 0)'' - If im not uncorrect then the first ''0'' should be ''1''?
    Thanks for the help but im afraid that didnt work. i have my creature_names but i set his flags as 9 because i read this http://www.mmowned.com/forums/emulat...ery-handy.html and i want a taxi dont i? but i also want gossip i have also done creature_proto and EVERYTHING is ok with the npc mysql because it spawns in game. its just he has no actions at all:S nothing will happen i changed the .lua file like you said dj frederick but it is still not working can anyone help me.

  4. #4
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, you do not want it with the flags of "9", to get this to work you need to change it to the flag of "1" this is a guide, it is the one that is commonly used for Teleporters. Hope this helped

  5. #5
    Maceaxe's Avatar Banned
    Reputation
    2
    Join Date
    Dec 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by kiev View Post
    No, you do not want it with the flags of "9", to get this to work you need to change it to the flag of "1" this is a guide, it is the one that is commonly used for Teleporters. Hope this helped
    I changed that in heidisql and then i tryed it ingame again but it is still not working. i dont think it has anything to do with the sql file because the npc spawns perfectly fine and everything works except i cannot right click the dude and a menu will not come up!!! i have enabled lua in my config and the only thing i can think of is my lua being wrong. please can someone link to a guide or summut that not only shows the lua part but also the sql +Rep to the person who can help me

  6. #6
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, it looks to me like your lua script is right, can you right click the person and does he say anything or?

  7. #7
    Maceaxe's Avatar Banned
    Reputation
    2
    Join Date
    Dec 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no he does not say anything. he breaths -.- thats it XD but i want a menu to pop up and choose locations i made with my lua.

  8. #8
    Maceaxe's Avatar Banned
    Reputation
    2
    Join Date
    Dec 2008
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OOh i did it XD I was messing around with a couple of files and i think it was summut with my sql file with flags being completely wrong XD the names flag was ok but the proto wasnt XD anyway thanks for the help and kiev +rep

  9. #9
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Glad i could help you I am here to help

  10. #10
    Ranik's Avatar Member
    Reputation
    6
    Join Date
    Jan 2007
    Posts
    48
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In regards to this, I have an issue with a teleporter that is scripted the same. He always spawns dead. Any Ideas?

    creature_proto health is set to 100000 500000 flags =1
    creature_spawn flags=524288?

    Some of the creature_spawn flags are set to 524288 and others to 0. On the latest ArcEmu + NCDB is it supposed to be like that? It's the only thing I can think of.

Similar Threads

  1. [help] ascent teleport npc for horde
    By dubi123 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-18-2008, 02:34 PM
  2. (Help) teleporter NPC
    By lol88998 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 04-26-2008, 12:45 PM
  3. [Help] Teleporter NPC SQL
    By Performer in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 12-24-2007, 02:59 PM
  4. Custom teleport npcs question please help
    By friendofdar in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 09-24-2007, 09:35 PM
  5. Teleport NPC help!
    By Daxo in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 09-22-2007, 01:24 PM
All times are GMT -5. The time now is 09:03 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