LUA Macro Assistance - Check if user is in guild otherwise ginvite menu

User Tag List

Results 1 to 3 of 3
  1. #1
    ev0's Avatar ★ Elder ★ murlocs.com

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1850
    Join Date
    Jul 2012
    Posts
    2,737
    Thanks G/R
    313/377
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    7 Thread(s)

    LUA Macro Assistance - Check if user is in guild otherwise ginvite

    If CharName is in my guild
    // do nothing
    else
    // ginvite
    end


    What I have so far:

    Code:
    /run GuildRoster();
    /run for i=1,GetNumGuildMembers(true) do local n = string.lower(GetGuildRosterInfo(i,name)) if n == "testwhochar-mal'ganis" then print("done") else if n ~= "testwhochar-mal'ganis" then GuildInvite("Testwhochar-Mal'ganis") end end end


    It works by sending the ginvite and checking if they're in guild, however it sends the ginvite regardless. Almost as if it's ignoring the doesn't equal statement

    Any assistance is appreciated.
    Need a guild in the US? Visit murlocs.com

    LUA Macro Assistance - Check if user is in guild otherwise ginvite
  2. #2
    Smitten's Avatar i want to believe who even plays wow anymore 🤔
    CoreCoins Purchaser Authenticator enabled
    Reputation
    3044
    Join Date
    Apr 2012
    Posts
    2,308
    Thanks G/R
    909/1036
    Trade Feedback
    5 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    /run GuildRoster()ngm,_,_=GetNumGuildMembers()for a=1,ngm do local b=string.lower(GetGuildRosterInfo(a))print(b)if b=="name-realm"then return elseif b~="name-realm"then GuildInvite("name-realm")end end

  3. #3
    ev0's Avatar ★ Elder ★ murlocs.com

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1850
    Join Date
    Jul 2012
    Posts
    2,737
    Thanks G/R
    313/377
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    7 Thread(s)
    Originally Posted by Smitten View Post
    Code:
    /run GuildRoster()ngm,_,_=GetNumGuildMembers()for a=1,ngm do local b=string.lower(GetGuildRosterInfo(a))print(b)if b=="name-realm"then return elseif b~="name-realm"then GuildInvite("name-realm")end end

    Worked swimmingly. Thanks a ton.
    Need a guild in the US? Visit murlocs.com

Similar Threads

  1. [LUA/Macro] Holy Power?
    By themipband in forum WoW UI, Macros and Talent Specs
    Replies: 3
    Last Post: 12-11-2010, 05:40 PM
  2. [LUA/macro] Another "need help" thread, easy rep.
    By Ssateneth in forum WoW UI, Macros and Talent Specs
    Replies: 15
    Last Post: 11-26-2010, 06:04 AM
  3. [Lua][HowTo] Nil Checks, Local, and "And"
    By BrantX in forum WoW EMU Guides & Tutorials
    Replies: 11
    Last Post: 03-25-2009, 06:31 PM
  4. [Lua] Need Assistance on Lua script
    By shadowslayer133 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 03-21-2009, 04:36 PM
  5. [LUA] will rep <-check real quick
    By Strupantwn in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 06-18-2008, 03:07 AM
All times are GMT -5. The time now is 05:38 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search