[ArcEmu]/[Lua] menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    SirRFI's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [ArcEmu]/[Lua]

    [ArcEmu]/[Lua] NPC Chat message edit

    Hello dear MMOwned users.

    I have a litte question connected (probally) to Lua. Look at this picture:

    I would like to change the message "Hey there, SirRFI (playername). How can I help you?", but wonder how to? I can see there is table called npc_text that has similar things.
    But I want to change the "welcome message" that I just quoted and do some others in sub-menus like "Help" or "About" and put there some informations. Anyone know how to do this? I have seen some NPCs long time ago on fun servers like that and they had even coloured text. I tried search tool but found nothing...
    So, anyone can explain how to do text like on the screenshot for first-page (npc chat window) and sub-menus? With colors.
    Thanks in advice.

    EDIT: Lol, forgot to write rest of the thread name. Sorry a bit >.>

    [ArcEmu]/[Lua]
  2. #2
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when you use the function CreateGossipMenu, you send a npc_text entry to the player. That npc_text entry holds the "Hello there...". You will have to change that number to a npc_text entry you have made.

  3. #3
    Sorayazlawl's Avatar Active Member
    Reputation
    30
    Join Date
    May 2008
    Posts
    178
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe that's the default text for an NPC without an entry in the npc_text table.
    Go into that table and make a new column with your NPC's id and what you want it to say

    Also, I believe this may help you with your color problem.
    I'm not sure if it works on with Gossip Menus, but this is the only way I can think.
    Pulled this right from arcemu, so take the value between the quotation marks for the color you want.

    Code:
    #define MSG_COLOR_LIGHTRED       "|cffff6060"
    #define MSG_COLOR_LIGHTBLUE      "|cff00ccff"
    #define MSG_COLOR_BLUE           "|cff0000ff"
    #define MSG_COLOR_GREEN	         "|cff00ff00"
    #define MSG_COLOR_RED            "|cffff0000"
    #define MSG_COLOR_GOLD           "|cffffcc00"
    #define MSG_COLOR_GREY           "|cff888888"
    #define MSG_COLOR_WHITE          "|cffffffff"
    #define MSG_COLOR_SUBWHITE       "|cffbbbbbb"
    #define MSG_COLOR_MAGENTA        "|cffff00ff"
    #define MSG_COLOR_YELLOW         "|cffffff00"
    #define MSG_COLOR_CYAN           "|cff00ffff"
    Feel free to contact me if you need help or would like to assist me in one of my many projects.

  4. #4
    SirRFI's Avatar Member
    Reputation
    1
    Join Date
    Jan 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gastricpenguin View Post
    You will have to change that number to a npc_text entry you have made.
    This way I will have new message, but same in each sub-menu aswell. I would like to do other message in main menu and for an example in help sub-menu. Is there way to do it like this?

    Originally Posted by Sorayazlawl View Post
    I believe that's the default text for an NPC without an entry in the npc_text table.
    Yes, it is standart one with id 1 on the table. (My NPC doesn't has his own text there)
    About colors - one thing: isn't it C++ ? Well, for now my NPC is in LUA and I'm not sure if defining colors this way going to work

    Anyway, thanks for both of you for help.

  5. #5
    Link_S's Avatar Member
    Reputation
    125
    Join Date
    Dec 2008
    Posts
    293
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Colours isn't C++, it's about adding a bit of text before the message and |r after.. And it appear in the right colour. Example

    pUnit:GossipMenuAddItem(2, "|cffff6060I'm in Light Red!|r", 1, 0)
    Why do I need a signature?

Similar Threads

  1. arcemu [Lua] quest spawning?
    By Altogasal in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 08-22-2009, 09:33 AM
  2. ArcEmu Lua Library
    By TheZaronz in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 05-29-2009, 09:02 AM
  3. ArcEmu Lua
    By B14d3r11 in forum WoW EMU Questions & Requests
    Replies: 9
    Last Post: 05-29-2009, 08:47 AM
  4. Hirering a (professional) arcemu/lua scripter/debugger
    By theory18 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 05-11-2009, 05:48 AM
  5. {ArcEmu} LUA help!
    By ariax1 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 12-29-2008, 03:44 PM
All times are GMT -5. The time now is 05:26 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