realid aiv
hey all i wanted to add a auto freind invite that supports realid. but with no luck, this is what i have. thanks for your time
Code:
eventHandlers['PARTY_INVITE_REQUEST'] = function(name) |
Might be wrong here, but it seems like you're matching the realm name of your BN friend, rather than his actual char name, against the inviter's name.
|
Quote:
Code:
if not accept then |
weasoug, I think you need to bookmark wowpedia.org and wowprogramming.org, and refer to them frequently for information about WoW API functions. This is at least the third thread I've seen today where you posted code that just made me go :confused:.
Quote:
BNGetFriendToonInfo requires two arguments, one of which you don't have without calling some other functions. BNGetFriendInfo is the function you want. Try this: Code:
if not accept then |
i have been trying to cut it down. and this is what i have. no errors. but not tested.
any help would be good. Code:
local function IsFriend(name) |
The code you just posted still contains all of the errors I corrected in my last post. Did you even read what I wrote? >_<
Here is the code I've been successfully using for years to auto-accept party invites from friends and guildmates. Note that I just added the Battle.net friend support, and haven't actively tested it since I don't use Real ID, but the basic syntax and API usage is at least error-free. Code:
local function IsFriend(name) On a side note, putting everything on one line is not a good way to "cut it down". It makes your code a pain in the ass to read, and does not improve runtime performance at all. |
oh ok. it was just a moment thing., i will stay with the one i had. and had help with . thanks again for your time.
ps i like te /who. i will use that if ok. |
All times are GMT -6. The time now is 08:53 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI