Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

GetFriendInfo - Documentation by IonDefender

retVal1, retVal2, retVal3, retVal4 = func(arg1)

Returns info about your friends.


Arguments

   (Int arg1)
   arg1 
       Int - Index of friend (Does not appear to be the exact order they appear in the friends list as online friends are sorted to the top but always have the same index)

Returns


   retVal1, retVal2, retVal3, retVal4
   retVal1 
       String - Friends name.
   retVal2 
       String - Friends level. If unknown returns 0, but sometimes 1 (can someone else test this)
   retVal3 
       String - Friends class. If unknown returns "Unknown"
   retval4
       String - Friends current location. If unknown returns "Unknown"

Example


local num1, num2, num3, num4 = GetFriendInfo(1); DEFAULT_CHAT_FRAME:AddMessage("Your friend "..num1.." (The level "..num2.." "..num3..") is in "..num4..".");


Result

Your friend Bill (The level 99 Leprechaun) is in Neverland.

Advertisement