How to determine if im in group or not
Hi, I've recently created an addon but I only want it to work if the user is in a party because it sends message to /p.
I need something to the effect of.. Code:
if(playerisinparty) then |
Code:
if GetNumPartyMembers() > 0 then |
Thanks, I tried that but doesn't work.
This is what I tried. Code:
local noParty = GetNumPartyMembers() |
When are you calling the above segment of code?
|
Code:
local enabled = "YES"; Code:
local enabled = "YES"; |
The code is ran only once, hence at login (unless you are in a group at that point) will not set the script thus it will never run later on. Instead you should do this: ...
*Edit* I noticed you noticed, hehe. ;) |
All times are GMT -6. The time now is 01:18 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI