[lua]chat commands help and ideas menu

Shout-Out

User Tag List

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

    [lua]chat commands help and ideas

    ok i have 2 questions for you guys. first of all if i am making a chat commands script that need to check for the players level before it executes the teleport/add item/whatever would i use this snipit of script:

    Code:
    local mallmessage = "#mall"
    local mall = "x, y, z"
    local requiredlevel = "80"
    
    function blahblah_OnChat(
    local level = player:GetLevel
    local LCM = message:lower()
          if (LCM == mallmessage) then
                if (level == requiredlevel) then
                      player:Teleport(mall)
                else
                      player:SendAreaTriggerMessage("You are not the required level to use this command")
                end
          end
    end
    would that be accurate?

    and my second question is what would the people of mmowned like to see in a chat script? add items? add sets of items? teach you spells? teach you weaponskills? etc if it can be done with lua then i will try my best to add it into the script i am going to make for you guys so any ideas would be helpful

    --trujillo
    Last edited by trujillo; 03-14-2010 at 07:40 PM.

    [lua]chat commands help and ideas
  2. #2
    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)
    I dont think you need to wrap your locals in "" tags, they should be fine without them. And yes that should be fine.




  3. #3
    trujillo's Avatar Member
    Reputation
    4
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i know the #mall part has to be wrapped but idk about the rest would it hurt if i did it anyway?

    edit: and another question i had what is there a way to a open a gossip window through the server hooks? without having a npc or item?

Similar Threads

  1. Lua Script Help and tips needed
    By digger514 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-05-2009, 08:41 AM
  2. LUA command help
    By myil in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-22-2009, 09:43 AM
  3. [Help]DLL or LUA problem i have no idea
    By bfwlegend in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 01-31-2009, 01:58 AM
  4. LUA Command help
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-06-2008, 05:38 PM
  5. Lua script help and general questions from beginner
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-23-2008, 04:38 AM
All times are GMT -5. The time now is 12:16 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