Quantcast
Channel: OwnedCore - World of Warcraft Exploits, Hacks, Bots and Guides.
Viewing all articles
Browse latest Browse all 280060

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

$
0
0
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.

Viewing all articles
Browse latest Browse all 280060

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>