A little bit of lua help. menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    skrubz's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A little bit of lua help.

    I'm running a server, and I'm attempting to write an lua file that fuctions as an addon, all I want it to do is, if you type something like /idcommands it would just read off all of the text in the lua file into the in-game chatbox, but not like saying it outloud, like in the prompt thing. The thing is, I don't know the first thing about lua files D: maybe someone could help me?
    Last edited by skrubz; 11-29-2008 at 07:20 PM.

    A little bit of lua help.
  2. #2
    Saiket's Avatar Contributor
    Reputation
    146
    Join Date
    Jul 2007
    Posts
    176
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I doubt this is possible without having your users install a real addon to interpret the slash command. The problem is that when you type "/somecommand", the client interprets it and never tells the server that it was typed. That's why private server chat commands don't start with forward slashes.

    I've never toyed with private server code before (addons only), but try searching for ".help" in the existing Lua code, since that private server command functions just like what you described. Of course, your command would have to look like ".idcommands" if you copied the help handler.
    AddOn developer and long time explorer.

  3. #3
    blind999's Avatar Member
    Reputation
    4
    Join Date
    Jan 2008
    Posts
    46
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can be done in C++.

  4. #4
    Gamer's Avatar Active Member
    Reputation
    239
    Join Date
    Jan 2007
    Posts
    198
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure about the /command part, but for displaying it in the chatbox without saying it outloud you can use:

    Code:
    ChatFrame1:AddMessage("LOLOL some text");

Similar Threads

  1. New and need a little bit of help
    By Rez in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 07-01-2009, 07:14 AM
  2. Need A Bit of Lua Help
    By Dr. Livingstone in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 04-05-2009, 06:23 AM
  3. [HELP] Little Bit of Confusion
    By Hardball in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 08-06-2008, 08:51 AM
All times are GMT -5. The time now is 11:00 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